lkml.org 
[lkml]   [2021]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v4 2/4] mm/oom: handle remote ooms
    On Fri, Nov 19, 2021 at 08:50:08PM -0800, Mina Almasry wrote:
    > On remote ooms (OOMs due to remote charging), the oom-killer will attempt
    > to find a task to kill in the memcg under oom. The oom-killer may be
    > unable to find a process to kill if there are no killable processes in
    > the remote memcg. In this case, the oom-killer (out_of_memory()) will return
    > false, and depending on the gfp, that will generally get bubbled up to
    > mem_cgroup_charge_mapping() as an ENOMEM.

    Why doesn't it try to run the shrinkers to get back some page cache /
    slab cache memory from this memcg? I understand it might not be able
    to (eg if the memory is mlocked), but surely that's rare.

    \
     
     \ /
      Last update: 2021-11-20 06:08    [W:3.941 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site