aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMengEn Sun <[email protected]>2024-11-01 12:06:38 +0800
committerAndrew Morton <[email protected]>2024-11-14 22:49:19 -0800
commit2ea80b039b9af0b71c00378523b71c254fb99c23 (patch)
tree595a63bff410f556f4606ee2f3d9aecebb8b8e33 /tools/perf/scripts/python
parent9b5c87d47949292ff21ee2fadd1e83820662a430 (diff)
vmstat: call fold_vm_zone_numa_events() before show per zone NUMA event
Since 5.14-rc1, NUMA events will only be folded from per-CPU statistics to per zone and global statistics when the user actually needs it. Currently, the kernel has performs the fold operation when reading /proc/vmstat, but does not perform the fold operation in /proc/zoneinfo. This can lead to inaccuracies in the following statistics in zoneinfo: - numa_hit - numa_miss - numa_foreign - numa_interleave - numa_local - numa_other Therefore, before printing per-zone vm_numa_event when reading /proc/zoneinfo, we should also perform the fold operation. Link: https://lkml.kernel.org/r/[email protected] Fixes: f19298b9516c ("mm/vmstat: convert NUMA statistics to basic NUMA counters") Signed-off-by: MengEn Sun <[email protected]> Reviewed-by: JinLiang Zheng <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions