diff options
| author | Ren Tamura <ren.tamura.oss@gmail.com> | 2026-09-30 15:03:17 +0900 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-10-08 23:06:22 -0700 |
| commit | 615d37afb43a58897384019a0fa67810c9eaef3d (patch) | |
| tree | eb1be028bdb2c41e3532b3ab52fd1fcee654b616 /tools/lib/python/kdoc/python_version.py | |
| parent | 60ae5b59946110c366910cf97f531de136f6f534 (diff) | |
| download | linux-next-615d37afb43a58897384019a0fa67810c9eaef3d.tar.gz linux-next-615d37afb43a58897384019a0fa67810c9eaef3d.zip | |
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/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
