Re: [PATCH v3 6/8] mm: memcontrol: switch to rstat

2021-02-18 Thread Michal Koutný
On Tue, Feb 09, 2021 at 11:33:02AM -0500, Johannes Weiner wrote: > Rstat combines the best of both worlds: from the write side, it > cheaply maintains a queue of cgroups that have pending changes, so > that the read side can do selective tree aggregation. This way the > reported stats will

[PATCH v3 6/8] mm: memcontrol: switch to rstat

2021-02-09 Thread Johannes Weiner
Replace the memory controller's custom hierarchical stats code with the generic rstat infrastructure provided by the cgroup core. The current implementation does batched upward propagation from the write side (i.e. as stats change). The per-cpu batches introduce an error, which is multiplied by