meta data for this page
  •  

OOM

Userspace OOM

earlyoom

/etc/default/earlyoom
# React if less than 5% of RAM is free, ignore swap space
EARLYOOM_ARGS="-m 5 -s 100 -r 600 --avoid '(^|/)(init|X|sshd|lightdm|xfce-.*|gnome-.*)$' --prefer '(^|/)(java|chromium|slack|firefox-esr|teams|code)$'"
systemctl restart earlyoom