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, }; _