Linux & OS Internals
OOM kills: reading dmesg and oom_score
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.
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
- Reading top, htop and ps: VIRT, RES and state DBeginner · 5 min
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…
- 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…
- 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…
- Limits and kernel parameters: ulimit and sysctlBeginner · 5 min
A web server on a 64 GB host logs 'Too many open files' at 1,000 connections. A per-process limit stops it, and the fix lives in the unit file, not in the shell you…
- Host firewalls: ufw, iptables and nftablesBeginner · 5 min
The app listens on 8080, the security group allows 8080, and curl from another instance still times out. A second firewall inside the host is dropping the packets, and…