Skip to main content
Diagnosing High Load Average on Linux

Diagnosing High Load Average on Linux

KU
· Founder & Chief Editor
• 8 min read•Updated •64 views

Load average counts more than CPU demand, so a high number needs a diagnostic path before you reach for a fix.

Key takeaways

  • Linux load average counts runnable tasks plus tasks in uninterruptible sleep (D state), so a high load with idle CPU almost always means blocked I/O.
  • Divide the load by nproc, then run vmstat 1 and compare the r and b columns.
  • Tall b means storage; tall r means CPU or thread pressure.

High load average on Linux means too many tasks are runnable or stuck in uninterruptible I/O sleep, not necessarily that the CPU is busy. Divide the load by nproc, then run vmstat 1: a tall b column with high wa points at storage, a tall r column points at CPU. Then list the blocked tasks with ps.

Verified against

Linux man-pages 6.19 (proc_loadavg, uptime), procps-ng vmstat and top man pages, sysstat 12.8.0 (mpstat, pidstat, iostat), against the man7.org manual pages and the kernel.org sysctl documentation. Checked October 2026.

You get paged: a box shows a load average of 40, you SSH in, run top, and the CPU is 85% idle. This is where people stall, because they were taught that load equals CPU. On Linux it does not.

What load average actually counts on Linux

The proc_loadavg(5) man page is explicit: the three numbers are the count of jobs in the run queue (state R) or waiting for disk I/O (state D), averaged over 1, 5 and 15 minutes. Most other Unixes count only the first group. Linux adds the second, which is why a machine with idle processors can carry a load of 30: 30 processes are sitting in D waiting for a NAS to answer.

code
$ uptime
 14:22:07 up 61 days,  3:19,  2 users,  load average: 38.42, 24.17, 11.90
$ cat /proc/loadavg
38.42 24.17 11.90 3/412 88123

Read the trend, not the snapshot. Here the 1-minute figure is far above the 15-minute one, so load is climbing. If the 15-minute number were highest, the spike would already be receding. In /proc/loadavg, 3/412 means 3 tasks runnable right now out of 412 total, a useful hint before you even open top: a load of 38 with only 3 runnable tasks is not a CPU problem.

Normalize by core count first

The uptime(1) man page notes that load averages are not normalized for CPU count: a load of 1 keeps a single-CPU box busy all the time, but leaves a 4-CPU box idle about 75% of the time. So divide:

code
$ nproc
16
$ awk -v n="$(nproc)" '{printf "per-core load: %.2f %.2f %.2f\n", $1/n, $2/n, $3/n}' /proc/loadavg
per-core load: 2.40 1.51 0.74

Per-core load around 1.0 means the machine is fully committed with nothing queued. Well above 1.0 means work is backing up. 2.4 is worth investigating, but it is not yet catastrophic if the excess is I/O wait rather than CPU starvation.

The diagnostic path, in four commands

The outputs below are illustrative, shaped like a real I/O-bound incident.

1. top: read the CPU states line. The field that matters is wa, which top(1) defines as time spent waiting for I/O to complete.

code
%Cpu(s):  6.1 us,  3.4 sy,  0.0 ni, 12.5 id, 77.4 wa,  0.2 hi,  0.4 si,  0.0 st

us plus sy is about 10% and wa is 77%. That is the signature of an I/O-bound machine. If us were near 90% and wa near zero, you would be reading a CPU story instead.

2. vmstat 1: split runnable from blocked. vmstat(8) defines r as processes running or waiting for CPU and b as processes blocked waiting for I/O.

code
$ vmstat 1 3
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 2 36      0 481232  10240 2934112    0    0 40448     8 5120 8241  6  3 13 78  0
 1 34      0 479008  10240 2935200    0    0 39120    16 4998 8033  5  4 12 79  0
 3 38      0 477640  10240 2936880    0    0 41232    24 5310 8477  7  3 11 79  0

High b, modest r: confirmed I/O-bound. bi (blocks in) is huge while bo is tiny, so the pain is on reads. Non-zero si/so would mean swapping, which is a memory problem that shows up as I/O.

3. mpstat -P ALL 1 1: per-core view. Aggregates hide single-threaded bottlenecks. If most cores are buried in %iowait but one sits at 90% %usr, a CPU-bound process is riding along with the I/O storm, and you should look at it separately.

4. Name the blocked tasks and the device.

code
$ ps -eo state,pid,ppid,wchan:32,cmd | awk '$1 ~ /^D/'
D  8842  8801 rpc_wait_bit_killable  /usr/bin/rsync -a /mnt/nfs/backup/ /data/restore/
D  8843  8801 rpc_wait_bit_killable  /usr/bin/rsync -a /mnt/nfs/backup/ /data/restore/
D 12934 12900 io_schedule            postgres: checkpointer
$ pidstat -d 1 3
$ iostat -xz 1 3

The wchan column shows the kernel function each task is sleeping in, and rpc_* names point straight at NFS. pidstat -d gives per-process read and write throughput; iostat -x gives per-device r_await, w_await (milliseconds per request, queue time included) and aqu-sz. Rising await with a growing queue is the saturated device.

Three causes, three fixes

I/O-bound (high b, high wa, tasks in D). Trace the storage backend. For NFS, check nfsstat -c and the server's health; a hung server parks every client process in D. For local disk, watch iostat -x await values. Then throttle the offending job (ionice -c3, rsync --bwlimit), fix or fail over the backend, or move hot data off the saturated volume. Adding CPUs does nothing for I/O wait.

CPU-bound (high r, wa near zero, cores near 100% %usr). The run queue is longer than the core count. Find the busy PIDs with pidstat 1, then profile them; debugging high CPU on Linux covers the perf and strace workflow.

Too many threads (high r, moderate CPU, huge cs). A runaway thread pool shows a long run queue and context switches in the tens of thousands per second. Count threads with ps -eLf | wc -l and cap the pool instead of buying hardware.

Error strings you will meet on the way

Symptom or messageWhat it meansFix
INFO: task rsync:8842 blocked for more than 120 seconds. in dmesgKernel hung-task detector found a D task not scheduled for hung_task_timeout_secsFind what that task waits on (cat /proc/8842/stack as root); it is the backend, not the task
nfs: server nas01 not responding, still tryingHard NFS mount, server unreachable; clients block foreverRestore the server or network; plan umount -f or -l only as a last resort
kill -9 <pid> returns, process still in DUninterruptible sleep ignores signals until the I/O completesFix the I/O; a stuck D task with no backend may need a reboot
Load high, wa 0, st high on a VMHypervisor is starving your vCPUsResize or move the instance
Cannot allocate memory plus si/so in vmstatSwapping turns memory pressure into disk I/OReduce memory use or add RAM, then re-check load

Where this breaks

Load average is a blunt, damped signal. It lags: the 1-minute figure needs a while to catch up, so a short burst can be over before you log in. In containers, /proc/loadavg usually shows the host's load, not your cgroup's, so a pod can look overloaded because of its neighbours. Kernel threads in D state (some filesystem flush workers, for example) can inflate load without hurting users. And on kernels with pressure stall information, /proc/pressure/cpu and /proc/pressure/io answer "is work waiting?" more directly than load does; if they exist on your box, read them too.

Questions people ask

Why is load average high but CPU usage low?

Because Linux counts tasks in uninterruptible sleep (D state) in the load, alongside runnable tasks. Those tasks are usually waiting on disk or network storage such as NFS, so they add to load while using no CPU. Confirm with vmstat 1: a tall b column and high wa mean the bottleneck is storage. Then list the blocked tasks with ps -eo state,pid,cmd | grep '^D'.

What is a normal load average for my server?

There is no absolute number, because load is not divided by CPU count. Divide the load by nproc. A per-core value around 1.0 means fully used with nothing waiting; sustained values well above 1.0 mean work is queueing. A load of 8 is serious on a 4-core machine and light on a 64-core one. Watch the 15-minute figure for sustained pressure.

How do I kill a process stuck in D state?

Usually you cannot. A task in uninterruptible sleep ignores signals, including SIGKILL, until the I/O it waits on completes or fails. Fix the backend instead: bring the NFS server back, replace the failing disk, or force-unmount the dead mount. If the device is gone for good and the task never wakes, a reboot is the only clean way out.

The call we'd make

High load with idle CPU almost always means I/O. Do not reboot and do not add cores on reflex. Run uptime for the trend, divide by nproc, run vmstat 1 to see whether r or b is tall, mpstat -P ALL to catch a single hot core, then ps with wchan to name the blocked processes and what they wait on. Fix the backend, throttle the job that is hammering it, and only then think about capacity. For the wider map of symptoms and tools, keep the Linux troubleshooting guide open in the next tab.

Sources

Explore topics:Linux
React
Share this post
Cite this article
Plain text

Kiril Urbonas (2026). Diagnosing High Load Average on Linux. DevOpsNess. Updated 2026-10-31. https://www.devopsness.com/blog/fix-high-load-average

Markdown

[Diagnosing High Load Average on Linux](https://www.devopsness.com/blog/fix-high-load-average) (Kiril Urbonas, DevOpsNess, updated 2026-10-31)

KU

Kiril Urbonas

Founder & Chief Editor

586 articles
View all articles by Kiril Urbonas

You might have missed

Evergreen posts worth revisiting.