Re: [PATCH V2] mm/memcontrol: add per-memcg pgpgin/pswpin counter
From: Andrew Morton
Date: Mon Sep 16 2024 - 03:41:50 EST
On Fri, 13 Sep 2024 16:44:53 +0800 Jingxiang Zeng <jingxiangzeng.cas@xxxxxxxxx> wrote:
> From: Jingxiang Zeng <linuszeng@xxxxxxxxxxx>
>
> 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.
>
Please explain the differences between v1 and v2:
--- a/mm/memcontrol-v1.c~mm-memcontrol-add-per-memcg-pgpgin-pswpin-counter-v2
+++ a/mm/memcontrol-v1.c
@@ -2729,8 +2729,6 @@ static const char *const memcg1_stat_nam
static const unsigned int memcg1_events[] = {
PGPGIN,
PGPGOUT,
- PSWPIN,
- PSWPOUT,
PGFAULT,
PGMAJFAULT,
};
_