lkml.org 
[lkml]   [2011]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] oom: do not live lock on frozen tasks
On Tue, 27 Sep 2011, Michal Hocko wrote:

> I guess you mean a situation when select_bad_process picks up a process
> which is not marked as frozen yet but we send SIGKILL right before
> schedule is called in refrigerator.
> In that case either schedule should catch it by signal_pending_state
> check or we will pick it up next OOM round when we pick up the same
> process (if nothing else is eligible). Or am I missing something?
>

That doesn't close the race, the oom killer will see the presence of an
eligible TIF_MEMDIE thread in select_bad_process() and simply return to
the page allocator. You'd need to thaw it there as well and hope that
nothing now or in the future will get into an endless thaw-freeze-thaw
loop in the exit path.


\
 
 \ /
  Last update: 2011-09-27 20:33    [W:0.065 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site