Re: [PATCH v4 3/4] mm: memcg: let non-unified root stats flushes help unified flushes

From: Michal Koutný
Date: Tue Sep 05 2023 - 13:10:22 EST


On Tue, Sep 05, 2023 at 08:54:46AM -0700, Yosry Ahmed <yosryahmed@xxxxxxxxxx> wrote:
> How would that create a userspace visible behavior that a dependency
> can be formed on?

A userspace process reading out root memory.stat more frequently than
in-kernel periodic flusher.

> Users expecting reclaim to be faster right after reading root stats?

Yes, that is what I had in mind.

> I would guess that would be too flaky to cause a behavior that people
> can depend on tbh.

I agree it's a weird dependency. As I wrote, nothing that would be hard
to take away.


Michal

Attachment: signature.asc
Description: PGP signature