oomkill.bt(8)
π oomkill.bt β bestie edition
okay so real quick: this is the manual page for oomkill.bt from the System Manager's Manual section 8 (that's the system-admin-y section, iykyk). Let's get into it π
β¨ NAME β¨
oomkill.bt β Trace OOM killer. Uses bpftrace/eBPF.
π SYNOPSIS π
oomkill.bt
that's it. that's the whole thing. no flags, no args, just vibes β¨
π¦ DESCRIPTION π¦
So what this little icon does is trace the kernel out-of-memory killer, and it prints out the basic details β including the system load averages at the exact moment of the OOM kill. Why do we care? Because it gives you context on what the system was doing at that time: was it getting busier, or was it just steady? The load averages tell you. πΈ
This tool is also lowkey perfect for customizing for your own investigations. Like, for example, you could add other task_struct details at the time of the OOM, or add other commands to run at the shell. Make it yours bestie π
Since this uses BPF, only the root user can use this tool. Not negotiable, sorry π
π REQUIREMENTS π
CONFIG_BPFbpftrace
π EXAMPLES π
Trace OOM kill events:
# oomkill.bt
π FIELDS π
- Triggered by ... β The process ID and process name of the task that was running when another task was OOM killed.
- OOM kill of ... β The process ID and name of the target process that was OOM killed.
- loadavg β Contents of
/proc/loadavg. The first three numbers are 1, 5, and 15 minute load averages (where the average is an exponentially damped moving sum, and those numbers are constants in the equation); then there is the number of running tasks, a slash, and the total number of tasks; and then the last number is the last PID to be created.
π§ OVERHEAD π§
Negligible. Like, basically nothing. She's lightweight, she's polite, she's not gonna tank your box π«Ά
π₯ SOURCE π₯
This is from bpftrace.
https://github.com/iovisor/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.
https://github.com/iovisor/bcc
β OS β
Linux
π STABILITY π
Unstable β in development. (she's growing, she's evolving, be gentle π)
π AUTHOR π
Brendan Gregg
π SEE ALSO π
and that's the whole page, bestie π this one's a USER COMMANDS situation, dated 2018-09-07, and it's oomkill.bt(8) β go forth and catch those OOM kills, you got this, periodt π
β¨
π¦ where this page comes from
- debian bookworm: bpftrace 0.17.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms