This tool samples CPUs at 99 Hertz, then prints a histogram showing which CPUs were active. 99 Hertz is used to avoid lockstep sampling that would skew results. This tool can help identify if your application's workload is evenly using the CPUs, or if there is an imbalance problem.
Since this uses BPF, only the root user can use this tool.
CONFIG_BPF and bpftrace.
- Sample CPUs and print a summary on Ctrl-C:
- 1st, 2nd
The CPU is shown in the first field, after the "[". Disregard the second field.
A column showing the number of samples for this CPU.
This is an ASCII histogram representing the count column.
This should be negligible.
This is from bpftrace.
Also look in the bpftrace distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool.
Unstable - in development.