8. Performance triage
One-liner. Find the saturated resource with USE, then prove it with a profile.
Memorize
- USE: for every resource — Utilization, Saturation, Errors.
- Load average counts runnable and uninterruptible (D) tasks — high load with idle CPU usually means I/O.
vmstat 1:rrunnable,bblocked,si/soswap,waI/O wait.iostat -xz 1:awaitlatency,%util, queue depth.- PSI (
/proc/pressure/{cpu,io,memory}) measures stall time — the best single signal for "is this host hurting". perf top/perf record -gfor CPU;bpftracefor kernel paths.- Cgroup limits (
memory.max,cpu.max) matter more than host totals inside containers.
Trap. Reading load average as "CPU queue" — D-state tasks (NFS, disk) inflate it without CPU work. Do this. Compare load with vmstat r/b and PSI before concluding.
Check
Load average is 40 on an 8-core host, but CPU utilization is 15%. What does that suggest?
Why
Linux load counts runnable and uninterruptible tasks; high load with low CPU points at I/O stalls.