Created
October 25, 2018 19:38
-
-
Save wknapik/ee45b7b3ce281fa581a0ba59089839c2 to your computer and use it in GitHub Desktop.
Protect a process and its descendants from the oom killer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./oom-protector.sh <executable> <options> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo -1000 >"/proc/$$/oom_score_adj" | |
exec "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or use
choom
fromutil-linux