runqlen(8) | System Manager's Manual | runqlen(8) |
runqlen.bt - CPU scheduler run queue length as a histogram. Uses bpftrace/eBPF.
runqlen.bt
This program summarizes scheduler queue length as a histogram, and can also show run queue occupancy. It works by sampling the run queue length on all CPUs at 99 Hertz.
This tool can be used to identify imbalances, eg, when processes are bound to CPUs causing queueing, or interrupt mappings causing the same.
Since this uses BPF, only the root user can use this tool.
CONFIG_BPF and bpftrace.
This samples scheduler structs at 99 Hertz across all CPUs. Relatively, this is a low rate of events, and the overhead of this tool is expected to be near zero.
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.
This is a bpftrace version of the bcc tool of the same name. The bcc tool may provide more options and customizations.
Linux
Unstable - in development.
Brendan Gregg
2018-10-07 | USER COMMANDS |