Re: [RFC] mm: memory.low heirarchical behavior

2018-04-05 Thread Johannes Weiner
On Thu, Apr 05, 2018 at 02:54:57PM +0100, Roman Gushchin wrote: > On Wed, Apr 04, 2018 at 01:07:00PM -0400, Johannes Weiner wrote: > > @@ -9,8 +9,13 @@ > > struct page_counter { > > atomic_long_t count; > > unsigned long limit; > > + unsigned long protected; > > struct page_counter *

Re: [RFC] mm: memory.low heirarchical behavior

2018-04-05 Thread Roman Gushchin
On Wed, Apr 04, 2018 at 01:07:00PM -0400, Johannes Weiner wrote: > On Wed, Mar 21, 2018 at 07:08:06PM +, Roman Gushchin wrote: > > > On Tue, Mar 20, 2018 at 10:33:53PM +, Roman Gushchin wrote: > > > > This patch aims to address an issue in current memory.low semantics, > > > > which makes i

Re: [RFC] mm: memory.low heirarchical behavior

2018-04-04 Thread Johannes Weiner
On Wed, Mar 21, 2018 at 07:08:06PM +, Roman Gushchin wrote: > > On Tue, Mar 20, 2018 at 10:33:53PM +, Roman Gushchin wrote: > > > This patch aims to address an issue in current memory.low semantics, > > > which makes it hard to use it in a hierarchy, where some leaf memory > > > cgroups are

Re: [RFC] mm: memory.low heirarchical behavior

2018-03-21 Thread Roman Gushchin
Hi Johannes! Thank you for review! I've answered most important questions below. What about all other stylistic/naming/cosmetic issues, I've no objections, I'll address them in v2. > Hi Roman, > > On Tue, Mar 20, 2018 at 10:33:53PM +, Roman Gushchin wrote: > > This patch aims to address an

Re: [RFC] mm: memory.low heirarchical behavior

2018-03-21 Thread Johannes Weiner
Hi Roman, On Tue, Mar 20, 2018 at 10:33:53PM +, Roman Gushchin wrote: > This patch aims to address an issue in current memory.low semantics, > which makes it hard to use it in a hierarchy, where some leaf memory > cgroups are more valuable than others. > > For example, there are memcgs A, A/B

[RFC] mm: memory.low heirarchical behavior

2018-03-20 Thread Roman Gushchin
This patch aims to address an issue in current memory.low semantics, which makes it hard to use it in a hierarchy, where some leaf memory cgroups are more valuable than others. For example, there are memcgs A, A/B, A/C, A/D and A/E: A A/memory.low = 2G, A/memory.current = 6G //\\ BC DE