lkml.org 
[lkml]   [2009]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 13/12] ksm: fix munlock during exit_mmap deadlock
On Wed, 26 Aug 2009, Andrea Arcangeli wrote:

> In oom deadlock terms madvise(UNMERGEABLE) is the only place that is
> 100% fine at breaking KSM pages, because it runs with right tsk->mm
> and page allocation will notice TIF_MEMDIE set on tsk.
>

Be aware that the page allocator in Linus' git will not notice TIF_MEMDIE
for current if that task is chosen for oom kill since alloc_flags are not
updated for that particular allocation. My patch in -mm,
mm-update-alloc_flags-after-oom-killer-has-been-called.patch, fixes that
but is not yet merged (I assume it's on hold for 2.6.32?).

I'd hate for you to run into this in testing and spend time debugging it
when the problem already has a fix.


\
 
 \ /
  Last update: 2009-08-27 00:03    [W:0.108 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site