[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YppSUNH31v6IdPUM@carbon>
Date: Fri, 3 Jun 2022 11:26:24 -0700
From: Roman Gushchin <roman.gushchin@...ux.dev>
To: Qi Zheng <zhengqi.arch@...edance.com>
Cc: mhocko@...nel.org, hannes@...xchg.org, shakeelb@...gle.com,
songmuchun@...edance.com, akpm@...ux-foundation.org,
corbet@....net, linux-mm@...ck.org, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org
Subject: Re: [PATCH] mm: memcontrol: separate
{pgscan,pgsteal}_{kswapd,direct} items in memory.stat of cgroup v2
On Fri, Jun 03, 2022 at 03:04:23PM +0800, Qi Zheng wrote:
> There are already statistics of {pgscan,pgsteal}_kswapd and
> {pgscan,pgsteal}_direct of memcg event here, but now the sum
> of the two is displayed in memory.stat of cgroup v2.
>
> In order to obtain more accurate information during monitoring
> and debugging, and to align with the display in /proc/vmstat,
> it better to display {pgscan,pgsteal}_kswapd and
> {pgscan,pgsteal}_direct separately.
>
> Moreover, after this modification, all memcg events can be
> printed with a combination of vm_event_name() and memcg_events().
> This allows us to create an array to traverse and print, which
> reduces redundant seq_buf_printf() codes.
>
> Signed-off-by: Qi Zheng <zhengqi.arch@...edance.com>
Acked-by: Roman Gushchin <roman.gushchin@...ux.dev>
Thanks!
Powered by blists - more mailing lists