Load average and the USE method
What Linux's load average really counts, including tasks stuck on disk, why it is not CPU usage, and how the USE method turns 'slow' into a checklist.
Processes through /procScheduling, priorities and niceMemory, page cache and swap
Load average and the USE method
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- Linux's load average counts tasks that are running, waiting for a CPU, or in uninterruptible sleep (D state), usually waiting on disk. It measures demand on the whole system, not CPU use.
- The three numbers are exponentially damped averages with 1, 5 and 15 minute time constants. Comparing them shows the trend: a 1-minute value above the 15-minute value means load is rising.
- Compare load to the number of CPUs, but remember it can be high with idle CPUs when many tasks are blocked on I/O. Check `vmstat 1` to tell CPU demand (`r`) from blocked tasks (`b`).
- The USE method: for every resource, check utilisation (how busy), saturation (how much work is queued) and errors. It stops you guessing and ensures you do not skip a resource.
- Pressure stall information in `/proc/pressure/` reports the share of time tasks were stalled on CPU, memory or I/O. It is a direct saturation measure that load average only hints at.
“The server is slow”
Someone says the server is slow. You log in and the first thing almost everyone checks is uptime, because it prints three numbers that look like an answer. They are useful, but only once you know what they count, and on Linux that is not what most people assume.
You met top and ps in processes, ps and top, and process states in processes through /proc. This lesson connects them to a method for finding the bottleneck.
What load average counts
Think of a supermarket. The load average is not how busy the cashiers are. It is the number of people in the checkout area: those being served, those queuing, and on Linux also those standing at the counter waiting for a price check that will not come back. Two shops with the same number could have very different problems.
In kernel terms, Linux counts tasks that are running, runnable (waiting for a CPU), and in uninterruptible sleep, the D state, usually waiting for disk or a network filesystem. Brendan Gregg’s 2017 investigation traced the D-state part to a 1993 patch by Matthias Urlichs, who noticed that load dropped when he moved swap to a slower disk. That was obviously wrong as a measure of how loaded the machine felt. Gregg’s conclusion is that Linux reports “system load averages”, not CPU load averages. Most other Unix systems count only the CPU part.
So a 4-CPU machine with a load of 12 might be CPU-starved, or it might have nine processes stuck on a dead NFS mount and nearly idle CPUs. The number alone cannot tell you which.
Reading the three numbers
The values are labelled 1, 5 and 15 minutes, but they are not plain averages over those windows. The kernel updates exponentially damped moving averages every five seconds. Gregg measured that one busy thread on an idle machine pushes the “one-minute” value to only about 0.62 after a minute. The continuous form of that formula gives the same shape. This I ran in Python on the Mac I wrote this on:
$ python3 -c "import math; ..." # abbreviated: prints 1 - exp(-t/T) for T = 60, 300, 900 s
5s 1-min 0.08 5-min 0.02 15-min 0.01
30s 1-min 0.39 5-min 0.10 15-min 0.03
60s 1-min 0.63 5-min 0.18 15-min 0.06
120s 1-min 0.86 5-min 0.33 15-min 0.12
300s 1-min 0.99 5-min 0.63 15-min 0.28
The useful reading is the trend. If the 1-minute value is well above the 15-minute value, load is building. If it is well below, the spike is passing. Compare the level to the CPU count from nproc, keeping the D-state caveat in mind. For scale, the Mac this was written on, with 10 CPUs, read load averages: 1.51 1.56 1.82 in uptime. That is a macOS figure, which does not include tasks blocked on disk.
To split CPU demand from blocked tasks on Linux, vmstat 1 shows r (runnable) and b (blocked in uninterruptible sleep) side by side. ps -eo state,pid,cmd | grep '^D' lists the stuck processes. These are written from the procps man pages, not run here.
The USE method
Load average gives one blurry number. Gregg’s USE method gives a procedure. His one-line version: “For every resource, check utilization, saturation, and errors.”
- Utilisation: “the average time that the resource was busy servicing work”.
- Saturation: “the degree to which the resource has extra work which it can’t service, often queued”.
- Errors: “the count of error events”.
The resources are the physical ones: CPUs, memory, storage devices, network interfaces, and software limits such as file descriptors from resource limits. For each, you ask the same three questions. A rough Linux mapping:
| Resource | Utilisation | Saturation | Errors |
|---|---|---|---|
| CPU | mpstat busy % |
vmstat r above CPU count |
rare; dmesg |
| Memory | free used vs available |
swapping (vmstat si/so), OOM kills |
failed allocations in dmesg |
| Disk | iostat -x %util |
aqu-sz, rising await |
I/O errors in dmesg |
| Network | throughput vs link speed | drops, retransmits | interface error counters |
The value is completeness. Most slow-server investigations go wrong by fixating on the first thing that looks odd. USE makes you look at every resource before deciding.
Pressure stall information
Modern kernels report saturation directly. The kernel’s PSI documentation describes /proc/pressure/cpu, memory and io. The some line is the share of time at least one task was stalled on the resource. The full line is the share of time all non-idle tasks were stalled at once. Each has 10, 60 and 300 second averages. full memory pressure that stays high is the kernel telling you the machine is thrashing. The same files exist per cgroup, which ties into cgroups v2.
About the video
The embed is Learn Linux TV’s “How to Interpret Load Average in Linux (Linux Crash Course Series)”, August 2022, from 2:20 to the end, which skips the sponsor segment. Its chapters cover where to find the load average, what the three values represent, finding the CPU count, what counts as high and which period to watch. Going by its chapters it treats load mainly as CPU load, so the D-state behaviour, the damping and the USE method are this lesson’s additions. Gregg’s own talk introducing the USE method is in deeper, along with his load-average article. I judged the video from its chapters and description, and English from its English caption track. The other facts come from Gregg’s articles and the kernel’s PSI document, read on 2026-11-28.
Where this fits
USE tells you what to look at. Next is a fixed sequence of ten commands that covers most of it in a minute: the first sixty seconds on a slow server.
Check yourself
A 4-CPU server shows a load average of 12 while `top` shows the CPUs 90% idle. What is the most likely explanation?
Many tasks are in uninterruptible sleep, usually waiting on slow storage or an unresponsive NFS server. Linux counts them in the load average even though they use no CPU. Look for D-state processes and check disk latency.
The load averages read `0.50 2.10 4.80`. Is the problem getting better or worse?
Better. The 1-minute value is far below the 15-minute value, so recent load is lower than it was earlier.
What are utilisation, saturation and errors for a disk?
Utilisation is the share of time the device was busy. Saturation is work waiting for it, such as the request queue length. Errors are failed I/Os, reported by the kernel log or device counters.
Why is a single CPU-bound process not reflected as 1.0 in the one-minute load average after 60 seconds?
The average is exponentially damped, not a plain average over the last minute. After 60 seconds a constant load of 1 has only pushed it to about 0.63.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.