]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/memcontrol: add per-memcg pgpgin/pswpin counter
authorJingxiang Zeng <linuszeng@tencent.com>
Fri, 30 Aug 2024 08:22:44 +0000 (16:22 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:28:41 +0000 (21:28 -0700)
commit824fdb4c4587d3c10087d3ef1000145b5afbdb66
treee00767e60d9779541291cbc34fa1c0be4c84f98f
parent9720fa1d10cbf86fc9ac9e5fb45e3307d749bb01
mm/memcontrol: add per-memcg pgpgin/pswpin counter

In proactive memory reclamation scenarios, it is necessary to estimate the
pswpin and pswpout metrics of the cgroup to determine whether to continue
reclaiming anonymous pages in the current batch.  This patch will collect
these metrics and expose them.

Link: https://lkml.kernel.org/r/20240830082244.156923-1-jingxiangzeng.cas@gmail.com
Signed-off-by: Jingxiang Zeng <linuszeng@tencent.com>
Acked-by: Nhat Pham <nphamcs@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol-v1.c
mm/memcontrol.c
mm/page_io.c