A server shows load average 40 on 8 cores, but `top` shows CPU 60% idle and the app is crawling.

BeginnerTroubleshootingDisk, memory and CPU
Answer

Likely causes → Load average on Linux counts processes in uninterruptible sleep (state D), usually blocked on disk or NFS I/O, not only runnable processes. The CPU is idle because everything is waiting on storage.

Diagnose →

vmstat 1 5            # high "wa" and "b" columns
iostat -xz 1 3        # %util near 100, high await on one device
ps -eo state,pid,cmd | awk '$1=="D"'
sudo iotop -oPa

Fix → Find the I/O hog (a backup, a runaway log, a big query) and stop or throttle it (ionice -c3). If it's an unreachable NFS mount, fix or lazily unmount it.

Prevent → Move heavy batch I/O off the request-serving volume, provision enough IOPS, and alert on node_disk_io_time_seconds_total and I/O wait.

All Real-World Interview questions Roadmap: Interview readiness

More on Disk, memory and CPU