High load average — runnable and blocked work
Linux load averages reflect runnable and uninterruptible tasks over time, not CPU utilization percentages. Compare the 1/5/15-minute values with CPU availability and cgroup/affinity limits, then inspect CPU busy time, runnable and blocked task counts, I/O latency and pressure metrics. A high load with idle CPU can reflect blocked tasks; a high load with sustained busy CPU can indicate compute contention. Investigate the workload before changing priorities or killing processes. For CPU saturation reduce unnecessary work or increase approved capacity; for I/O blocking address the storage/service dependency. Verify with representative throughput, latency and resource trends rather than a single load reading. Roll back scheduling or workload changes if performance worsens. Prevent with baseline metrics and capacity alerts. The fixture compares two fictional snapshots with equal load and different CPU and blocked-task signals; it does not generate load. Example prerequisites: Linux, Bash, Python 3. Run as a non-root user in a private temporary working directory. Example scope: synthetic model. Expected output: equal modeled load: blocking versus CPU contention. No system configuration changes.
Formal Syntax & Structure
uptime; vmstat 1 3; ps -eo pid,stat,comm (authorized scope)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| load average | diagnostic evidence | Smoothed runnable/uninterruptible workload. |
| vmstat r/b | diagnostic evidence | Runnable and blocked task observations. |
| CPU idle | diagnostic evidence | Complementary CPU usage evidence. |
Return Value
Expected normalized laboratory result: equal modeled load: blocking versus CPU contention. A passing fixture does not prove that a live incident has the same cause.
Working Example
python3 - <<'PY'def hypothesis(r,b,idle): if b>r and idle>=50:return 'investigate blocking' if r>b and idle<10:return 'investigate CPU contention' return 'collect more evidence'assert hypothesis(1,7,80)=='investigate blocking'assert hypothesis(8,0,2)=='investigate CPU contention'assert hypothesis(2,2,35)=='collect more evidence'print('equal modeled load: blocking versus CPU contention')PY