Full list of available command line flags for earlyoom:
| Flag | Description |
|---|
-m PERCENT[,KILL_PERCENT] | Set available memory minimum to PERCENT of total (default 10 %). Sends SIGTERM at PERCENT, SIGKILL at KILL_PERCENT (default PERCENT/2). |
-s PERCENT[,KILL_PERCENT] | Set free swap minimum to PERCENT of total (default 10 %). Both memory and swap must be below minimum to act. |
-M SIZE[,KILL_SIZE] | Set available memory minimum to SIZE KiB. |
-S SIZE[,KILL_SIZE] | Set free swap minimum to SIZE KiB. |
-n | Enable d-bus notifications. |
-N /PATH/TO/SCRIPT | Call script after oom kill. |
-P /PATH/TO/SCRIPT | Call script before oom kill. |
-g | Kill all processes within a process group. |
-d, --debug | Enable debugging messages. |
-v | Print version information and exit. |
-r INTERVAL | Memory report interval in seconds (default 1), set to 0 to disable. |
-p | Set niceness of earlyoom to -20 and oom_score_adj to -100. |
--ignore-root-user | Do not kill processes owned by root. |
--sort-by-rss | Find process with the largest rss (default oom_score). |
--prefer REGEX | Prefer to kill processes matching REGEX. |
--avoid REGEX | Avoid killing processes matching REGEX. |
--ignore REGEX | Ignore processes matching REGEX. |
--dryrun | Dry run (do not kill any processes). |
--syslog | Use syslog instead of std streams. |
-h, --help | Show this help text. |
-m PERCENT[,KILL_PERCENT]
-s PERCENT[,KILL_PERCENT]
-M SIZE[,KILL_SIZE]
-S SIZE[,KILL_SIZE]
-n
-N /PATH/TO/SCRIPT
-P /PATH/TO/SCRIPT
-g
-d, --debug
-v
-r INTERVAL
-p
--ignore-root-user
--sort-by-rss
--prefer REGEX
--avoid REGEX
--ignore REGEX
--dryrun
--syslog
-h, --help