Re: [patch] oom: prevent livelock when oom_kill_allocating_task isset

From: David Rientjes
Date: Thu Apr 30 2009 - 18:58:37 EST


On Thu, 30 Apr 2009, Andrew Morton wrote:

> > When /proc/sys/vm/oom_kill_allocating_task is set for large systems that
> > want to avoid the lengthy tasklist scan, it's possible to livelock if
> > current is ineligible for oom kill. This normally happens when it is set
> > to OOM_DISABLE, but is also possible if any threads are sharing the same
> > ->mm with a different tgid.
>
> OK... And how does the patch address this problem?
>
> <reads the code>
>
> Seems that if we were unable to kill `current', we'll ignore the
> oom_kill_allocating_task setting and will fall back the slow tasklist
> scan?
>

Yes, sorry. The annotated changelog you have added to -mm is correct,
thanks.
--
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/