Where to See the Three Numbers
uptime
cat /proc/loadavg
uptime ends with something like load average: 1.84, 1.20, 0.95. The same three numbers are on the first line of top and in the header of htop. In order, they cover the last minute, the last 5 minutes, and the last 15 minutes. They are moving averages that weight recent values more, so the 1-minute value reacts fast and the 15-minute value shows the longer trend.
What Counts as Load on Linux
Linux counts two kinds of tasks:
- Runnable tasks: running on a CPU or waiting in the queue for one.
- Tasks in uninterruptible sleep (state D): usually waiting for the disk or for network storage.
The second point is specific to Linux and explains most confusion: a server can show a load of 8 while the CPUs are mostly idle, because many processes are waiting on a slow disk. Load is a measure of demand, not of CPU use.
Compare the Load with the Number of CPUs
nproc
A load of 4 is very different on 1 CPU and on 8. Divide the load by the output of nproc:
| Load per CPU | Reading |
|---|---|
| Below 0.7 | Room to spare |
| Around 1.0 | Fully busy, no queue yet |
| Above 1.0 | Work is waiting |
| Above 2.0 for long | Overloaded; users notice |
Example: with 4 CPUs, a load of 3.2 is 0.8 per CPU, which is busy but fine. Treat these as rules of thumb, not limits. A short spike is normal; a high 15-minute value is what needs attention.
Read the Trend
- 1-minute value above the 15-minute value: load is rising right now.
- 1-minute value below the 15-minute value: a peak is passing.
- All three high and close together: the server has been overloaded for a while.
Where to Look Next
Open top and read the %Cpu(s) line. High us or sy points to CPU work, high wa to the disk, and high st on a virtual server to CPU steal time. Then watch the server for a few seconds:
vmstat 1
Column r is the number of runnable tasks; if it stays above nproc, the CPUs are the limit. Column b is the number of tasks blocked on I/O, and wa the share of time spent waiting for it. For disks, run iostat -x 1 from the sysstat package; how to check disk I/O explains its columns. To list the processes in state D:
ps -eo state,pid,cmd | awk '$1 == "D"'
A High-Load Checklist
- Compare the 15-minute load with
nproc. - Check the CPU split in
top: us and sy, wa, or st. - Sort
topby CPU (P) and by memory (M) to find the main process. - Check memory with
free -h: swapping turns a memory problem into a disk problem. - Check disk activity with
iostat -x 1oriotop. - Look for scheduled work at that time, such as backups or cron jobs; see how to list cron jobs.
- For a past event, read recorded history with atop.
Load Average and CPU Usage Are Not the Same
CPU usage says how busy the processors were. Load average says how many tasks wanted to run or were stuck waiting. A server at 100% CPU with a load equal to its CPU count is busy but keeping up; a server with idle CPUs and a high load is usually waiting for its disk.