Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fduran/11401032 to your computer and use it in GitHub Desktop.
Save fduran/11401032 to your computer and use it in GitHub Desktop.
# www.fduran.com
# exclude a process from being killed by oom killer
echo -17 > /proc/$PID/oom_adj
# The possible values of oom_adj range from -17 to +15. The higher the score, more likely the associated process is to be killed by OOM-killer: https://lwn.net/Articles/317814/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment