Re: [PATCH 2/2] mm: memcontrol: try harder to set a new memory.high

2019-10-23 Thread Johannes Weiner
On Wed, Oct 23, 2019 at 08:59:49AM +0200, Michal Hocko wrote: > On Tue 22-10-19 16:15:18, Johannes Weiner wrote: > > Setting a memory.high limit below the usage makes almost no effort to > > shrink the cgroup to the new target size. > > > > While memory.high is a "soft" limit that isn't supposed

Re: [PATCH 2/2] mm: memcontrol: try harder to set a new memory.high

2019-10-23 Thread Michal Hocko
On Tue 22-10-19 16:15:18, Johannes Weiner wrote: > Setting a memory.high limit below the usage makes almost no effort to > shrink the cgroup to the new target size. > > While memory.high is a "soft" limit that isn't supposed to cause OOM > situations, we should still try harder to meet a user

[PATCH 2/2] mm: memcontrol: try harder to set a new memory.high

2019-10-22 Thread Johannes Weiner
Setting a memory.high limit below the usage makes almost no effort to shrink the cgroup to the new target size. While memory.high is a "soft" limit that isn't supposed to cause OOM situations, we should still try harder to meet a user request through persistent reclaim. For example, after