All jobs / DevOps / SRE / cloud / Linux
DevOps / SRE / cloud interview question · 3–5 years
Load average is 40 on an eight-core VM, yet `top` shows CPU mostly idle and the app is crawling.
What does that combination tell you?
The strongest answer
Linux load counts runnable and uninterruptible tasks, so this is processes stuck waiting on I/O — I look at iowait in top, `iostat -x`, processes in D state and dmesg for disk or NFS trouble
Why it works
Right — load without CPU use means blocked tasks. Disk saturation, a hung network mount or a failing volume are the usual culprits.
What a good answer covers
- Load counts runnable plus blocked.
- Idle CPU and high load means I/O.
- Check iowait, iostat, D-state.
- Read dmesg before you resize.
Answers that fall short
- Close, but not the strongest: The load is high, so we need more CPU cores; I would resize the VM
Cores do nothing for tasks waiting on I/O; you would resize and see the same number. - Weak: top is probably wrong; I would restart the app and watch again
Two tools agreeing on “idle CPU, high load” is a signal, not a bug; restarting throws away the diagnosis. - Red flag: Kill the processes with the highest PIDs until the number goes down
Killing by PID is random damage; an interviewer hears no model of what load average measures.
Who gets asked this
More Linux questions
- `./deploy.sh` says “Permission denied” and `ls -l` shows `-rw-r--r--`. What do you do?
- What do you check, and what was the likely mistake?
- Everyone SSHes as root with the same key. What do you change first?
- A service fails to start with “address already in use” on port 8080. How do you find out what holds it?
- A runbook installs a CLI on every server with `curl https://… | sudo bash`. What do you prefer, and why?
- A deploy script failed on step two (the build), carried on, and pushed an empty artifact to production. What…
- `df -h` says the root volume is 100% full. `du -sh /` adds up to less than half of that. What is going on…