Systems study
Offline — showing the cached copy.
Home / Linux / 8. Performance triage

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: r runnable, b blocked, si/so swap, wa I/O wait.
  • iostat -xz 1: await latency, %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 -g for CPU; bpftrace for kernel paths.
  • Cgroup limits (memory.max, cpu.max) matter more than host totals inside containers.
TRIAGE ORDER Symptom USE per resource CPU memory disk network PSI stall profile fix re-measure
Triage order

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?