Emergency CheatsheetCODE: 023-LINUX-OOM-KILLER-RUNBOOK⏱️ ~15 min read

Linux OOM Killer Runbook: Memory Exhaustion Triage & Process Rescue

Investigate dmesg OOM invocation logs, tune oom_score_adj, analyze memory commit limits, and configure cgroup RAM limits.

Authored by: Vibe DevOps · Published: 10/27/2026

Full Poster Preview

Size: 1080×1350 (4:5)Enlarge or download for reference

The Linux kernel's emergency memory defense: Out-Of-Memory Killer. Analyze kernel ring buffer crash events, adjust OOM scoring, and protect critical processes.

1. Detecting OOM Kill Events

sudo dmesg -T | grep -i -E "oom|out of memory|killed process"
sudo journalctl -k --grep="Out of memory" -n 50

2. Tuning Process OOM Scores

cat /proc/<pid>/oom_score
echo -1000 | sudo tee /proc/<pid>/oom_score_adj

Setting -1000 protects mission-critical services like databases from being terminated by OOM Killer.

💡 Team Storage & Usage Tips

Store the vector PDF in your internal team repository (Notion, Confluence) or print it out in A4 format next to your workstation for rapid troubleshooting during midnight production outages.