loads.bt(8)
π loads.bt(8) β System Manager's Manual π
Okay bestie, this is the USER COMMANDS page for loads.bt(8) from the System Manager's Manual π (the footer has the full receipts, I'll spill them at the very end π«Ά).
β¨ NAME β¨
loads.bt β Prints load averages. Uses bpftrace/eBPF. β
π§ SYNOPSIS π§
loads.bt
π DESCRIPTION π
okay so these are the exact same load averages that uptime shows you, except three decimal places instead of two π¦ (not that it really matters, but we're here for precision). This tool is really more of a demo of how to grab a kernel structure and process it from bpftrace. it's giving teacher energy and I'm obsessed π
π Heads up: this one uses BPF, so only the root user can run it. no root, no loads.bt. sorry bestie π
π REQUIREMENTS π
You need CONFIG_BPF and bpftrace. no cap, that's the whole list π
π EXAMPLES π
Print system load averages every second:
# loads.bt
π FIELDS π
β° HH:MM:SS
Every output line starts with the time it was printed, in HH:MM:SS format. Very handy, very cute β¨
π load averages
okay this one is a whole thing π These are exponentially-damped moving sum averages of the system loads. Load is a measurement of demand on system resources. That includes CPUs, but also other resources the kernel accesses in an uninterruptible state (TASK_UNINTERRUPTIBLE), like some kinds of disk I/O and lock accesses. Fun fact: Linux load averages originally reflected only CPU demand, the same as other OSes, but that changed in Linux 0.99.14 πΈ. The demand measurement reflects not just the resource being used, but also the queued demand (a saturation measurement) β¨.
Lastly, the three numbers are called the "one-", "five-", and "fifteen-minute" load averages. However, those times are just constants used in the exponentially-damping equation, and the load averages reflect load beyond those times. Were you expecting an accurate description of load averages in the man page of a bpftrace tool? ππ
π OVERHEAD π
Other than bpftrace startup time, it's negligible π¦
π«Ά SOURCE π«Ά
This comes from bpftrace, bestie:
https://github.com/bpftrace/bpftrace
Also go check the bpftrace distribution for a companion _examples.txt file. It has example usage, output, and commentary for this tool, and it's so worth the click π
π REFERENCE π
If you want more on load averages, see:
http://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html
π§ OS π§
Linux π
π§ STABILITY π§
Unstable - in development. it's still cooking, so be gentle π₯Ή
π AUTHOR π
Brendan Gregg, the queen of this whole topic πβ¨
π SEE ALSO π
uptime(1) β go see the original, it's the vibe this tool is copying π
Okay, footer check π«Ά: this is the USER COMMANDS section, dated 2018-09-10, for loads.bt(8). Periodt π πΈ
π¦ where this page comes from
- alpine 3.24: bpftrace-tools-doc 0.26.1-r0 Β· Apache-2.0
- arch rolling: bpftrace 0.27.0-2 Β· Apache-2.0
- centos-stream 10: bpftrace 0.26.1-1.el10 Β· Apache-2.0
- centos-stream 9: bpftrace 0.26.1-1.el9 Β· ASL 2.0
- debian trixie: bpftrace 0.23.2-1 Β· Apache-2.0
- fedora 43: bpftrace 0.24.0-1.fc43 Β· Apache-2.0
- fedora 43: bpftrace 0.24.2-1.fc43 Β· Apache-2.0
- fedora 44: bpftrace 0.24.2-3.fc44 Β· Apache-2.0
- nixos 26.05: bpftrace 0.25.1
- nixpkgs unstable: bpftrace 0.27.1
- opensuse-leap 16.0: bpftrace-tools 0.23.5-160000.1.2 Β· Apache-2.0
- ubuntu questing: bpftrace 0.23.5-1ubuntu1 Β· Apache-2.0
- ubuntu resolute: bpftrace 0.25.0-1ubuntu1 Β· Apache-2.0
- ubuntu stonking: bpftrace 0.25.0-1ubuntu2 Β· Apache-2.0
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms