Linux & OS Internals
Reading top, htop and ps: VIRT, RES and state D
A load average of 18 on a 4-core server whose CPU is almost idle, and six processes you cannot kill. Every number in the top header and every letter in the state column has a precise meaning.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Linux & OS Internals
- Writing a systemd unit: ExecStart, Restart and dependenciesBeginner · 5 min
Your app runs from a terminal session, so it dies at reboot and nobody restarts it after a crash. A dozen lines of unit file fix both, and three details decide whether…
- systemd timers vs cron, and filtering the journalBeginner · 4 min
Three servers run a nightly report from cron at 02:00, all hit the database in the same second, and a server that was off at 02:00 never ran it. Timers fix both, and…
- Finding the bottleneck: vmstat, iostat and the USE methodBeginner · 5 min
The ticket says 'the app is slow' and four people suggest four different causes. Three questions asked of each resource in turn, utilization, saturation and errors…
- OOM kills: reading dmesg and oom_scoreBeginner · 5 min
A service vanished at 03:12 and its own log ends mid-sentence. A signal it could not catch ended it, and the kernel wrote down who, why and how much memory it held.
- strace and lsof: what is this process doing?Beginner · 5 min
A worker hangs at 0% CPU, writes no log and does not crash. Two commands show the exact system call it is stuck in and which connection or file that call is waiting on.
- File systems, fstab, LVM and growing a diskBeginner · 5 min
You enlarged a cloud volume from 100 GB to 200 GB and df still says 100G. The new space has to be passed up through each layer, and the order of the layers is the whole…