Where to start First steps track · 15 stages
Linux Labs

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 NRestarts Result=oom-kill
  • systemctl show app -p MemoryMax -p MemoryPeak limit and peak
  • cat /sys/fs/cgroup/system.slice/app.service/memory.events
  • choom -p 1234 score and adjustment of a process
  • sudo choom -n -500 -p 1234 protect a process from OOM
  • free -h available — the machine's memory reserve
Loading…