Re: [RFC PATCH] mm: memcg: Do not count memory.low reclaim if it does not happen

From: Michal Koutný
Date: Thu Mar 24 2022 - 05:52:06 EST


On Wed, Mar 23, 2022 at 02:44:24PM -0700, Roman Gushchin <roman.gushchin@xxxxxxxxx> wrote:
> Does it mean that in the following configuration:
> `parent .low=50M
> ` s1 .low=0M .current=50M
> ` s2 .low=0M .current=50M
> there will be no memory.events::low at all? (assuming the recursive thing is on)

True, no memory.events:low among siblings.
Number of memory.events:low in the parent depends on how much has to be
reclaimed (>50M means carving into parent's protection, hence it'll be
counted).

This is a quantitative change in the events reporting (point 1 of
RFCness), my understanding is that the potential events due to recursive
surplus protection carry no new information regarding configured
memory.low.


Michal