On Wed, 25 Sep 2013, Ming Liu wrote:Yes, that make sense, I will send the V1 patch.
We never want to select a process where task->mm == init_mm because if weWe shouldn't be selecting a process where mm == init_mm in the firstBut if we add a control point for "mm == init_mm" in the first place(ie. in
place, so this wouldn't fix the issue entirely.
oom_unkillable_task), that would forbid the processes sharing mm with init to
be selected, is that reasonable? Actually my fix is just to protect init
process to be killed for its vfork child being selected and I think it's the
only place where there is the risk. If my understanding is wrong, pls correct
me.
kill it we won't free any memory, regardless of vfork(). The goal of the
oom killer is solely to free memory, so it always tries to avoid needless
killing.