lkml.org 
[lkml]   [2013]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] mm, memcg: add oom killer delay
    On Wed 29-05-13 18:18:10, David Rientjes wrote:
    > Completely disabling the oom killer for a memcg is problematic if
    > userspace is unable to address the condition itself, usually because it
    > is unresponsive.

    Isn't this a bug in the userspace oom handler? Why is it unresponsive? It
    shouldn't allocated any memory so nothing should prevent it from running (if
    other tasks are preempting it permanently then the priority of the handler
    should be increased).

    > This scenario creates a memcg deadlock: tasks are
    > sitting in TASK_KILLABLE waiting for the limit to be increased, a task to
    > exit or move, or the oom killer reenabled and userspace is unable to do
    > so.
    >
    > An additional possible use case is to defer oom killing within a memcg
    > for a set period of time, probably to prevent unnecessary kills due to
    > temporary memory spikes, before allowing the kernel to handle the
    > condition.

    I am not sure I like the idea. How does an admin decide what is the right value
    of the timeout? And why he cannot use userspace oom handler to do the same
    thing?

    [...]
    --
    Michal Hocko
    SUSE Labs


    \
     
     \ /
      Last update: 2013-05-30 17:42    [W:3.877 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site