Re: [take3] OOM documentation update [was: Linux killed Kenny, bastard!]

From: Evgeniy Polyakov
Date: Thu Jan 15 2009 - 03:51:56 EST


On Wed, Jan 14, 2009 at 04:58:41PM -0800, David Rientjes (rientjes@xxxxxxxxxx) wrote:
> > +
> > +The task with the highest badness score is then killed.
> > +
>
> Not quite, even after a task is selected for oom kill, the oom killer
> still prefers to kill one of its children first if any have a different
> mm. See oom_kill_process().

Ok, if it was not clear from the description.

> You also don't mention the exception of OOM_DISABLE (oom_adj score of -17)
> in your formula for how oom_adj impacts the points value. Although its
> already explained earlier, it should be mentioned here since a oom_adj is
> an int and a right shift of 17 does not guarantee `points' will be 0.

It is written several lines above.

--
Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/