Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-19 Thread Vladimir Davydov
On Tue, Mar 15, 2016 at 10:41:57PM -0700, Johannes Weiner wrote: > On Fri, Mar 11, 2016 at 11:34:40AM +0300, Vladimir Davydov wrote: > > On Thu, Mar 10, 2016 at 03:50:13PM -0500, Johannes Weiner wrote: > > > When setting memory.high below usage, nothing happens until the next > > > charge comes alo

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-15 Thread Johannes Weiner
On Fri, Mar 11, 2016 at 11:34:40AM +0300, Vladimir Davydov wrote: > On Thu, Mar 10, 2016 at 03:50:13PM -0500, Johannes Weiner wrote: > > When setting memory.high below usage, nothing happens until the next > > charge comes along, and then it will only reclaim its own charge and > > not the now pote

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Vladimir Davydov
On Fri, Mar 11, 2016 at 03:22:27PM +0100, Michal Hocko wrote: > On Fri 11-03-16 17:01:46, Vladimir Davydov wrote: > > On Fri, Mar 11, 2016 at 02:39:36PM +0100, Michal Hocko wrote: > > > On Fri 11-03-16 14:49:34, Vladimir Davydov wrote: > > > > On Fri, Mar 11, 2016 at 10:53:09AM +0100, Michal Hocko

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Michal Hocko
On Fri 11-03-16 17:01:46, Vladimir Davydov wrote: > On Fri, Mar 11, 2016 at 02:39:36PM +0100, Michal Hocko wrote: > > On Fri 11-03-16 14:49:34, Vladimir Davydov wrote: > > > On Fri, Mar 11, 2016 at 10:53:09AM +0100, Michal Hocko wrote: > > > > > OTOH memory.low and memory.high are perfect to be cha

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Vladimir Davydov
On Fri, Mar 11, 2016 at 02:39:36PM +0100, Michal Hocko wrote: > On Fri 11-03-16 14:49:34, Vladimir Davydov wrote: > > On Fri, Mar 11, 2016 at 10:53:09AM +0100, Michal Hocko wrote: > > > > OTOH memory.low and memory.high are perfect to be changed dynamically, > > > > basing on containers' memory dem

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Michal Hocko
On Fri 11-03-16 14:49:34, Vladimir Davydov wrote: > On Fri, Mar 11, 2016 at 10:53:09AM +0100, Michal Hocko wrote: > > > OTOH memory.low and memory.high are perfect to be changed dynamically, > > > basing on containers' memory demand/pressure. A load manager might want > > > to reconfigure these kno

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Vladimir Davydov
On Fri, Mar 11, 2016 at 10:53:09AM +0100, Michal Hocko wrote: > > OTOH memory.low and memory.high are perfect to be changed dynamically, > > basing on containers' memory demand/pressure. A load manager might want > > to reconfigure these knobs say every 5 seconds. Spawning a thread per > > each con

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Michal Hocko
On Fri 11-03-16 12:13:04, Vladimir Davydov wrote: > On Fri, Mar 11, 2016 at 09:42:39AM +0100, Michal Hocko wrote: > > On Fri 11-03-16 11:34:40, Vladimir Davydov wrote: > > > On Thu, Mar 10, 2016 at 03:50:13PM -0500, Johannes Weiner wrote: > > > > When setting memory.high below usage, nothing happen

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Vladimir Davydov
On Fri, Mar 11, 2016 at 09:42:39AM +0100, Michal Hocko wrote: > On Fri 11-03-16 11:34:40, Vladimir Davydov wrote: > > On Thu, Mar 10, 2016 at 03:50:13PM -0500, Johannes Weiner wrote: > > > When setting memory.high below usage, nothing happens until the next > > > charge comes along, and then it wil

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Michal Hocko
On Fri 11-03-16 11:34:40, Vladimir Davydov wrote: > On Thu, Mar 10, 2016 at 03:50:13PM -0500, Johannes Weiner wrote: > > When setting memory.high below usage, nothing happens until the next > > charge comes along, and then it will only reclaim its own charge and > > not the now potentially huge exc

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Vladimir Davydov
On Thu, Mar 10, 2016 at 03:50:13PM -0500, Johannes Weiner wrote: > When setting memory.high below usage, nothing happens until the next > charge comes along, and then it will only reclaim its own charge and > not the now potentially huge excess of the new memory.high. This can > cause groups to sta

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-10 Thread Michal Hocko
On Thu 10-03-16 15:50:13, Johannes Weiner wrote: > When setting memory.high below usage, nothing happens until the next > charge comes along, and then it will only reclaim its own charge and > not the now potentially huge excess of the new memory.high. This can > cause groups to stay in excess of t

[PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-10 Thread Johannes Weiner
When setting memory.high below usage, nothing happens until the next charge comes along, and then it will only reclaim its own charge and not the now potentially huge excess of the new memory.high. This can cause groups to stay in excess of their memory.high indefinitely. To fix that, when shrinki