Re: [PATCH] mm/memcontrol: expose anon and file reclaim statistics in memory.stat

From: Shakeel Butt

Date: Thu Nov 26 2026 - 10:27:18 EST


On Tue, Nov 24, 2026 at 03:51:27PM +0800, Xueyuan Chen wrote:
> The aggregate reclaim counters in memory.stat do not show how reclaim
> is split between the anonymous and file LRUs of a cgroup.
>
> Expose the existing per-memcg scan and steal counters by LRU type so
> userspace can measure reclaim balance and efficiency when evaluating
> reclaim policy. Report the same counters per node in memory.numa_stat.
> Both files report the counters in base pages.
>
> Signed-off-by: Xueyuan Chen <xueyuan.chen21@xxxxxxxxx>

Acked-by: Shakeel Butt <shakeel.butt@xxxxxxxxx>