[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <wwuzmneum26ddbf43kquy6u5rynbtwsphkp7xlp4ktnznxmn54@dmxb54xxhgah>
Date: Sat, 15 Nov 2025 11:27:00 -0800
From: Shakeel Butt <shakeel.butt@...ux.dev>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Johannes Weiner <hannes@...xchg.org>, Michal Hocko <mhocko@...nel.org>,
Roman Gushchin <roman.gushchin@...ux.dev>, Muchun Song <muchun.song@...ux.dev>,
Harry Yoo <harry.yoo@...cle.com>, Qi Zheng <qi.zheng@...ux.dev>, Vlastimil Babka <vbabka@...e.cz>,
linux-mm@...ck.org, cgroups@...r.kernel.org, linux-kernel@...r.kernel.org,
Meta kernel team <kernel-team@...a.com>
Subject: Re: [PATCH 0/4] memcg: cleanup the memcg stats interfaces
Hi Andrew, can you please pick this series as it is ready for wider
testing.
thanks,
Shakeel
On Mon, Nov 10, 2025 at 03:20:04PM -0800, Shakeel Butt wrote:
> The memcg stats are safe against irq (and nmi) context and thus does not
> require disabling irqs. However for some stats which are also maintained
> at node level, it is using irq unsafe interface and thus requiring the
> users to still disables irqs or use interfaces which explicitly disables
> irqs. Let's move memcg code to use irq safe node level stats function
> which is already optimized for architectures with HAVE_CMPXCHG_LOCAL
> (all major ones), so there will not be any performance penalty for its
> usage.
>
> Shakeel Butt (4):
> memcg: use mod_node_page_state to update stats
> memcg: remove __mod_lruvec_kmem_state
> memcg: remove __mod_lruvec_state
> memcg: remove __lruvec_stat_mod_folio
>
> include/linux/memcontrol.h | 28 ++++------------------
> include/linux/mm_inline.h | 2 +-
> include/linux/vmstat.h | 48 ++------------------------------------
> mm/filemap.c | 20 ++++++++--------
> mm/huge_memory.c | 4 ++--
> mm/khugepaged.c | 8 +++----
> mm/memcontrol.c | 20 ++++++++--------
> mm/migrate.c | 20 ++++++++--------
> mm/page-writeback.c | 2 +-
> mm/rmap.c | 4 ++--
> mm/shmem.c | 6 ++---
> mm/vmscan.c | 4 ++--
> mm/workingset.c | 2 +-
> 13 files changed, 53 insertions(+), 115 deletions(-)
>
> --
> 2.47.3
>
Powered by blists - more mailing lists