OOM killer: when memory runs out
cheat sheet · Ubuntu 24.04 · Linux 6.8 · systemd 255 https://lab.dimsanych.ru/en/wiki/oom-killer/Cheat sheet
-
sudo journalctl -k -o cat | grep 'Killed process'who was killed -
systemctl show app -p Result -p NRestartsResult=oom-kill -
systemctl show app -p MemoryMax -p MemoryPeaklimit and peak -
cat /sys/fs/cgroup/system.slice/app.service/memory.events -
choom -p 1234score and adjustment of a process -
sudo choom -n -500 -p 1234protect a process from OOM -
free -havailable — the machine's memory reserve