meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:kernel:oom [2023/02/17 10:47] – created niziaklinux:kernel:oom [2023/03/22 07:07] (current) niziak
Line 6: Line 6:
  
 <file bash /etc/default/earlyoom> <file bash /etc/default/earlyoom>
-EARLYOOM_ARGS="--avoid '(^|/)(init|X|sshd|lightdm|xfce)$' --prefer '(^|/)(java|chromium|slack)$'"+# 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)$'"
 </file> </file>
  
 +<code bash>
 +systemctl restart earlyoom
 +</code>