Skip to content

High iowait dragging a cPanel server — finding the process hammering the disk and stopping it

Load average is high but CPU is mostly idle — the server is waiting on disk. Here is how to find which process and which account is generating the I/O, and how to relieve it.

A server can have a load average of 15 while its CPUs sit mostly idle, and the explanation is almost always the same: the load is I/O wait. Processes are not burning CPU — they are blocked, waiting for the disk to return data, and a queue of blocked processes drives the load number up just as surely as busy ones. Everything feels slow because everything is waiting in line behind the disk. The instinct to “add CPU” does nothing here; the constraint is disk throughput or IOPS, and the fix is to find the one process or account generating the I/O and stop it from saturating the device. On a shared cPanel host that culprit is usually identifiable and usually fixable.

What’s happening

When top shows a high wa (I/O wait) percentage and a load average well above the CPU count, the system is spending its time blocked on storage. A process that issues a read or write and must wait for the disk is counted as “uninterruptible sleep” (the D state), and accumulated D-state processes inflate the load average even though no CPU is being consumed. So a high-load, low-CPU-usage server is the classic signature of an I/O bottleneck rather than a compute one.

The sources of saturating I/O on a cPanel host are a short list. A backup running in the foreground (JetBackup, pkgacct, an rsync) reads and writes heavily. A MySQL query spilling large temp tables or scanning huge tables hammers reads. Excessive logging — a debug log, a misconfigured access log, a plugin writing to disk on every request — drives constant small writes. A site with no caching reading hundreds of small files per request multiplies IOPS. And on a virtualized host, a noisy neighbour on the same physical disk, or slow underlying storage (SATA where NVMe was assumed), caps everyone. The diagnosis is to find which process and which account own the I/O right now, because relieving the wrong one changes nothing.

How to verify

Confirm it is I/O wait, not CPU — the load-vs-CPU gap is the tell:

# High load + high %wa + low %us = I/O bound, not CPU bound
uptime
top -bn1 | grep -E '%Cpu|load average'

# Processes stuck in uninterruptible (D) state are blocked on I/O
ps -eo state,pid,user,comm | awk '$1 ~ /D/'

Find which process is actually hitting the disk:

# Per-process I/O, sorted — the top writer/reader is the suspect
iotop -boPa -n 3 2>/dev/null | head -20
# Or pidstat if iotop isn't installed
pidstat -d 1 5 | sort -k5 -rn | head

# Device-level: is the disk saturated? %util near 100 = maxed out
iostat -x 1 5 | grep -A20 avg-cpu | tail -25

On CloudLinux, check whether one account is the I/O source and watch MySQL:

# Per-account IO/IOPS faults (CloudLinux limits the disk too)
lveinfo --user=cpuser --period=1h --display-username 2>/dev/null
# Is MySQL spilling temp tables or scanning big tables right now?
mysql -e "SELECT id,user,time,state,LEFT(info,80) FROM information_schema.processlist
          WHERE state LIKE '%tmp%' OR state LIKE '%Sending%' ORDER BY time DESC;"

The fix

  1. Confirm the bottleneck is disk, not CPU — the high-load / low-CPU / high-%wa combination, plus processes in D state and iostat showing %util near 100%, proves I/O is the constraint. If CPU is actually busy, this is a different problem; do not chase disk. The whole approach below assumes the disk is the wall.
  2. Identify the process and account generating the I/O — iotop/pidstat name the top reader/writer, and on CloudLinux lveinfo shows which account is faulting on IO. That process or account is the target. Relieving I/O elsewhere does nothing while one source saturates the device.
  3. Move backups off the foreground and off-peak — if a backup (JetBackup, pkgacct, rsync) is the top I/O consumer, that is expected work in the wrong window. Reschedule it to low-traffic hours, and throttle it: JetBackup and rsync support bandwidth/IO limits, and ionice -c2 -n7 lowers a job’s I/O priority so it yields to live traffic. A backup should not take the site down while it runs.
  4. Fix the MySQL queries spilling to disk — if the I/O traces to mysqld writing temp tables (Copying to tmp table, Sending data on huge scans), the queries are the cause. Add the missing index so the query stops scanning, or raise tmp_table_size/max_heap_table_size so temp tables stay in memory instead of hitting disk. A single unindexed reporting query can saturate a disk on its own.
  5. Cut excessive logging and enable caching — constant small writes from a debug log left on, or a site reading hundreds of files per request with no cache, generate sustained I/O. Turn off debug logging in production, rotate/trim oversized logs, and enable full-page and opcode caching so most requests are served without touching the disk. Caching reduces both reads (fewer file opens) and the CPU/DB work behind them.
  6. Throttle the offending account on CloudLinux — if one tenant is generating the I/O legitimately but disproportionately, its LVE IO/IOPS limits keep it from saturating the shared device. Confirm the account’s IO limit is set sensibly in WHM » CloudLinux LVE Manager so one site cannot starve the disk for everyone. This is containment while you fix the root cause in that account.
  7. Rule out the storage itself — if no single process explains the saturation and %util is pegged under modest load, the underlying disk may be the limit: slow shared storage, a failing drive (check dmesg for I/O errors and SMART), or a noisy neighbour on a virtualized host. At that point the fix is faster storage (NVMe), a healthier device, or a less contended host — hardware, not tuning. Confirm with iostat await/svctm staying high regardless of which process runs.

High iowait is the disk, not the CPU, telling you it cannot keep up — and the entire job is finding the one process or account saturating it. Move backups off-peak, index the queries that spill, cache away needless reads, and contain the noisy account; reach for faster storage only once you have ruled out a fixable source. Stack Harbor diagnoses I/O saturation and storage bottlenecks under cPanel server administration — start a conversation when the server is stuck waiting on disk.