* [merged mm-stable] tools-cgroup-sum-shrinker-object-counts-across-numa-nodes.patch removed from -mm tree
@ 2026-10-24 9:00 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-10-24 9:00 UTC (permalink / raw)
To: mm-commits, roman.gushchin, ren.tamura.oss, akpm
The quilt patch titled
Subject: tools/cgroup: sum shrinker object counts across NUMA nodes
has been removed from the -mm tree. Its filename was
tools-cgroup-sum-shrinker-object-counts-across-numa-nodes.patch
This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Ren Tamura <ren.tamura.oss@gmail.com>
Subject: tools/cgroup: sum shrinker object counts across NUMA nodes
Date: Wed, 30 Sep 2026 15:03:17 +0900
Each row of a memcg-aware shrinker's debugfs count file contains the
cgroup ID followed by one object count per NUMA node. memcg_shrinker.py
uses only the first count when sorting and displaying entries.
This undercounts objects on NUMA systems. An entry with counts of 0 and
23 is treated as zero and omitted from the output, even though its total
is 23.
Sum all count fields after the cgroup ID so that the displayed totals and
sort order account for every node. Single-node input retains the same
result.
Link: https://lore.kernel.org/179074810112.139422.9274126921568167859@gmail.com
Fixes: d261ea23533b ("tools: add memcg_shrinker.py")
Signed-off-by: Ren Tamura <ren.tamura.oss@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Assisted-by: LLM
Cc: Roman Gushchin <roman.gushchin@linux.dev>
---
tools/cgroup/memcg_shrinker.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/tools/cgroup/memcg_shrinker.py~tools-cgroup-sum-shrinker-object-counts-across-numa-nodes
+++ a/tools/cgroup/memcg_shrinker.py
@@ -31,7 +31,7 @@ def scan_shrinkers(shrinker_debugfs):
items = line.split(' ')
ino = int(items[0])
# (count, shrinker, memcg ino)
- shrinkers.append((int(items[1]), shrinker, ino))
+ shrinkers.append((sum(map(int, items[1:])), shrinker, ino))
return shrinkers
_
Patches currently in -mm which might be from ren.tamura.oss@gmail.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-24 9:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-24 9:00 [merged mm-stable] tools-cgroup-sum-shrinker-object-counts-across-numa-nodes.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.