summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorRen Tamura <ren.tamura.oss@gmail.com>2026-09-30 15:03:17 +0900
committerAndrew Morton <akpm@linux-foundation.org>2026-10-24 01:56:23 -0700
commitae2514c95518b39b36fa463d855c74f29c91d064 (patch)
tree1b9e4c30d6e4296092547fecc1725a8e4b66b12d /tools/perf/scripts/python/bin/stackcollapse-report
parentdc0b17144d62c1e05043bd11ef2bf5c23cc3b500 (diff)
tools/cgroup: sum shrinker object counts across NUMA nodes
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>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions