lkml.org 
[lkml]   [2009]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 7/7] oom: prevent possible OOM_DISABLE livelock
On Tue, 5 May 2009, Nick Piggin wrote:

> On Mon, May 04, 2009 at 05:27:07PM -0700, David Rientjes wrote:
> > It is currently possible to livelock the oom killer if a task is chosen
> > for oom kill and another thread sharing the same memory has an oom_adj
> > value of OOM_DISABLE. This occurs because oom_kill_task() repeatedly
>
> Hmm, but didn't the last patch make it a per-mm value?
>

Yes, but this avoids taking task_lock(p) in select_bad_process() and moves
all locking to badness(). It also introduces new behavior that anything
with a badness score of 0 won't be killed, which wasn't explicit before
(we relied on oom_kill_task() to reject it).


\
 
 \ /
  Last update: 2009-05-05 20:35    [W:0.040 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site