What does the load average mean?
It is the average number of tasks running or waiting to run over the last 1, 5 and 15 minutes. On Linux it also counts tasks waiting on disk I/O in uninterruptible sleep, which is why a box with idle CPUs can still show high load when storage is slow.
uptime # 14:02:11 up 41 days, 3:10, 2 users, load average: 7.12, 6.48, 5.90 nproc # 12
Compare the numbers with the CPU count from nproc. A load of 7 on a machine with 12 threads, such as S1, means a bit over half the capacity is in use. The same load on a 4-thread box would mean work is queueing. The three values also show the trend: here load is slowly rising.
How do I see what the CPU time is spent on?
vmstat splits it into user code, kernel, idle, I/O wait and steal:
vmstat -w 3 5
| Column | Meaning | High value suggests |
|---|---|---|
r | Tasks runnable | CPU queue; compare with thread count |
us | User code | Application work |
sy | Kernel | Many syscalls, networking, context switches |
wa | Waiting on I/O | Disk bottleneck |
st | Stolen by a hypervisor | Always about 0 on bare metal |
The last row is one of the plain benefits of a dedicated machine: no neighbor can steal cycles, so the steal column stays at zero and benchmarks stay repeatable.
Is one core maxed while others idle?
Overall percentages hide that. mpstat, from the sysstat package, shows each CPU:
apt install sysstat # dnf install sysstat on Enterprise Linux mpstat -P ALL 2 3
One CPU at 100 percent and the rest idle means a single-threaded bottleneck: a busy Redis instance, a PHP worker stuck in a loop or a game server's main thread. More cores will not help that; a faster core or splitting the work will. Interrupt-heavy networking also shows up here as high %soft on a few CPUs.
Which process is using the CPU?
ps -eo pid,user,pcpu,etime,comm --sort=-pcpu | head pidstat -u 5 3 top -o %CPU
ps shows average CPU since each process started, which can mislead for long-running daemons. pidstat shows usage during the sample window, which is what you want for a current spike. In top, press 1 to toggle per-CPU lines; details are in The top command.
Is the system actually under pressure?
Pressure stall information measures time tasks spent waiting for CPU, which is closer to user-visible slowness than percentages:
cat /proc/pressure/cpu # some avg10=4.21 avg60=3.80 avg300=2.95 total=8812345
some avg10=4.21 means that over the last 10 seconds, some task was waiting for CPU 4.21 percent of the time. Single digits are mild; sustained values in the tens mean users are feeling it.
How do I keep history?
Enable sysstat's collector, which records every 10 minutes by default:
systemctl enable --now sysstat sar -u -s 09:00:00 -e 12:00:00 sar -q
sar -u replays CPU usage for a time range; sar -q shows load averages and queue lengths. When someone asks "was the server slow yesterday at ten?", this answers in seconds. On Debian and Ubuntu, also set ENABLED="true" in /etc/default/sysstat if your version asks for it.
When is it time for a bigger machine?
- Load stays above the thread count for long periods.
- CPU pressure averages sit in the tens during business hours.
- All cores are busy, not just one, and the work is already parallel.
Then look at the next step up: from S1 to S4 for more cores at the same level, to S11 for faster cores, or to the dual-socket line for many more. If only one core is busy, fix the bottleneck first. Temperature checks are in Check CPU temperature.
Keep Reading
The top command
Read every line of top, use the keys that matter, save a layout and run it in batch mode for logs and scripts.
OpenCheck CPU temperature
Read processor temperatures on a bare metal Linux box with lm-sensors and sysfs, spot throttling and know what the numbers mean.
OpenCPU threads vs cores
What a core is, what a hardware thread adds, how many of each our machines have and how to count them correctly on Linux.
OpenSMT and threads
Simultaneous multithreading lets one core run two threads; here is what that means for the thread counts we list.
OpenFAQ
Quick Answers
Below the number of CPU threads. Compare uptime's values with nproc.
Linux counts tasks waiting on disk I/O in the load average. Check the wa column in vmstat.
Install sysstat and run mpstat -P ALL 2.
CPU time taken by a hypervisor for other guests. On bare metal it stays at zero.
Enable the sysstat collector and use sar -u with a start and end time.