Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1728319

Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware OOM killer

From Christopher Lameter <cl@linux.com>
Newsgroups linux.kernel
Subject Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware OOM killer
Date 2017-09-07 19:10 +0200
Message-ID <un8tr-2XD-5@gated-at.bofh.it> (permalink)
References (6 earlier) <umPAu-6Vc-7@gated-at.bofh.it> <un6hX-1ed-3@gated-at.bofh.it> <un6Bk-1LE-15@gated-at.bofh.it> <un6Bk-1LE-13@gated-at.bofh.it> <un8tr-2XD-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 7 Sep 2017, Roman Gushchin wrote:

> On Thu, Sep 07, 2017 at 10:03:24AM -0500, Christopher Lameter wrote:
> > On Thu, 7 Sep 2017, Roman Gushchin wrote:
> >
> > > > Really? From what I know and worked on way back when: The reason was to be
> > > > able to contain the affected application in a cpuset. Multiple apps may
> > > > have been running in multiple cpusets on a large NUMA machine and the OOM
> > > > condition in one cpuset should not affect the other. It also helped to
> > > > isolate the application behavior causing the oom in numerous cases.
> > > >
> > > > Doesnt this requirement transfer to cgroups in the same way?
> > >
> > > We have per-node memory stats and plan to use them during the OOM victim
> > > selection. Hopefully it can help.
> >
> > One of the OOM causes could be that memory was restricted to a certain
> > node set. Killing the allocating task is (was?) default behavior in that
> > case so that the task that has the restrictions is killed. Not any task
> > that may not have the restrictions and woiuld not experience OOM.
>
> As I can see, it's not the default behavior these days. If we have a way
> to select a victim between memcgs/tasks which are actually using
> the corresponding type of memory, it's much better than to kill
> an allocating task.

Kill the whole set of processes constituting an app in a cgroup or so
sounds good to me.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Michal Hocko <mhocko@kernel.org> - 2017-09-05 15:50 +0200
  Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Michal Hocko <mhocko@kernel.org> - 2017-09-05 17:20 +0200
    Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Michal Hocko <mhocko@kernel.org> - 2017-09-06 10:50 +0200
      Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Michal Hocko <mhocko@kernel.org> - 2017-09-06 20:00 +0200
      Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer David Rientjes <rientjes@google.com> - 2017-09-06 23:00 +0200
        Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Christopher Lameter <cl@linux.com> - 2017-09-07 16:50 +0200
          Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Christopher Lameter <cl@linux.com> - 2017-09-07 17:10 +0200
            Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Christopher Lameter <cl@linux.com> - 2017-09-07 19:10 +0200
          Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer David Rientjes <rientjes@google.com> - 2017-09-08 00:00 +0200
    Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Christopher Lameter <cl@linux.com> - 2017-09-07 18:30 +0200
  Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Johannes Weiner <hannes@cmpxchg.org> - 2017-09-06 00:00 +0200
    Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Michal Hocko <mhocko@kernel.org> - 2017-09-06 10:30 +0200
      Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Johannes Weiner <hannes@cmpxchg.org> - 2017-09-07 18:20 +0200
      Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Christopher Lameter <cl@linux.com> - 2017-09-07 18:30 +0200
        Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer David Rientjes <rientjes@google.com> - 2017-09-08 00:10 +0200
          Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer Christopher Lameter <cl@linux.com> - 2017-09-08 23:10 +0200
            Re: [v7 5/5] mm, oom: cgroup v2 mount option to disable cgroup-aware  OOM killer David Rientjes <rientjes@google.com> - 2017-09-09 10:50 +0200

csiph-web