Re: [v6 3/4] mm, oom: introduce oom_priority for memory cgroups

2017-08-28 Thread David Rientjes
On Thu, 24 Aug 2017, Roman Gushchin wrote: > > > Do you have an example, which can't be effectively handled by an approach > > > I'm suggesting? > > > > No, I do not have any which would be _explicitly_ requested but I do > > envision new requirements will emerge. The most probable one would be

Re: [v6 3/4] mm, oom: introduce oom_priority for memory cgroups

2017-08-24 Thread Michal Hocko
On Thu 24-08-17 13:51:13, Roman Gushchin wrote: > On Thu, Aug 24, 2017 at 02:10:54PM +0200, Michal Hocko wrote: > > On Wed 23-08-17 17:52:00, Roman Gushchin wrote: > > > Introduce a per-memory-cgroup oom_priority setting: an integer number > > > within the [-1, 1] range, which defines the

Re: [v6 3/4] mm, oom: introduce oom_priority for memory cgroups

2017-08-24 Thread Roman Gushchin
On Thu, Aug 24, 2017 at 02:10:54PM +0200, Michal Hocko wrote: > On Wed 23-08-17 17:52:00, Roman Gushchin wrote: > > Introduce a per-memory-cgroup oom_priority setting: an integer number > > within the [-1, 1] range, which defines the order in which > > the OOM killer selects victim memory

Re: [v6 3/4] mm, oom: introduce oom_priority for memory cgroups

2017-08-24 Thread Michal Hocko
On Wed 23-08-17 17:52:00, Roman Gushchin wrote: > Introduce a per-memory-cgroup oom_priority setting: an integer number > within the [-1, 1] range, which defines the order in which > the OOM killer selects victim memory cgroups. Why do we need a range here? > OOM killer prefers memory

[v6 3/4] mm, oom: introduce oom_priority for memory cgroups

2017-08-23 Thread Roman Gushchin
Introduce a per-memory-cgroup oom_priority setting: an integer number within the [-1, 1] range, which defines the order in which the OOM killer selects victim memory cgroups. OOM killer prefers memory cgroups with larger priority if they are populated with eligible tasks. The