Interview Prep/Linux/Load, CPU and I/O performance

`vmstat` shows `r` (run queue) at 40 on a 4-core box and the CPU is 100% `us`.

BeginnerTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → Genuine CPU saturation: far more runnable work than cores.

Diagnose →

vmstat 1 5
top -c -o %CPU
pidstat -u 1 5

Fix → Find the top consumers, kill or limit runaway work, scale out or move to more cores; optimise hot code with profiling.

Prevent → Capacity alerts on run queue length relative to core count.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance