On Wed, Sep 29, 2021 at 09:47:11PM -0700, Shakeel Butt wrote: > The memcg stats can be flushed in multiple context and potentially in > parallel too. For example multiple parallel user space readers for memcg > stats will contend on the rstat locks with each other. There is no need > for that. We just need one flusher and everyone else can benefit. In > addition after aa48e47e3906 ("memcg: infrastructure to flush memcg > stats") the kernel periodically flush the memcg stats from the root, so, > the other flushers will potentially have much less work to do. > > Signed-off-by: Shakeel Butt <shakeelb@xxxxxxxxxx> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>