[lkml]   [2009]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [patch -mmotm] oom: only oom kill exiting tasks with attached memory
    On Sun, Jun 7, 2009 at 3:42 AM, David Rientjes<> wrote:
    > When a task is chosen for oom kill and is found to be PF_EXITING,
    > __oom_kill_task() is called to elevate the task's timeslice and give it
    > access to memory reserves so that it may quickly exit.
    > This privilege is unnecessary, however, if the task has already detached
    > its mm.  Although its possible for the mm to become detached later since
    > task_lock() is not held, __oom_kill_task() will simply be a no-op in such
    > circumstances.
    > Subsequently, it is no longer necessary to warn about killing mm-less
    > tasks since it is a no-op.
    > Cc: Rik van Riel <>
    > Signed-off-by: David Rientjes <>

    Seems like a good change to make. Did you encounter this situation on
    a real machine?

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2009-06-07 16:15    [W:0.019 / U:8.808 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site