diff options
author | Justin Ernst <justin.ernst@hpe.com> | 2025-03-19 15:27:31 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2025-04-06 12:14:14 -0400 |
commit | eb187540d13ae260b91dbca7257bc44bd83ca8c6 (patch) | |
tree | 1c944eaf0cbee5ae5b6a0bcd607219d06380bf4e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ed625c61b85c2333324dca43146c4ebabf8b236f (diff) | |
download | linux-eb187540d13ae260b91dbca7257bc44bd83ca8c6.tar.gz linux-eb187540d13ae260b91dbca7257bc44bd83ca8c6.tar.bz2 linux-eb187540d13ae260b91dbca7257bc44bd83ca8c6.zip |
tools/power turbostat: Increase CPU_SUBSET_MAXCPUS to 8192
On systems with >= 1024 cpus (in my case 1152), turbostat fails with the error output:
"turbostat: /sys/fs/cgroup/cpuset.cpus.effective: cpu str malformat 0-1151"
A similar error appears with the use of turbostat --cpu when the inputted cpu
range contains a cpu number >= 1024:
# turbostat -c 1100-1151
"--cpu 1100-1151" malformed
...
Both errors are caused by parse_cpu_str() reaching its limit of CPU_SUBSET_MAXCPUS.
It's a good idea to limit the maximum cpu number being parsed, but 1024 is too low.
For a small increase in compute and allocated memory, increasing CPU_SUBSET_MAXCPUS
brings support for parsing cpu numbers >= 1024.
Increase CPU_SUBSET_MAXCPUS to 8192, a common setting for CONFIG_NR_CPUS on x86_64.
Signed-off-by: Justin Ernst <justin.ernst@hpe.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions