24 lines
635 B
Bash
24 lines
635 B
Bash
# Default settings for earlyoom. This file is sourced by /bin/sh from
|
|
# /etc/init.d/earlyoom or by systemd from earlyoom.service.
|
|
|
|
# Options to pass to earlyoom
|
|
EARLYOOM_ARGS="-r 3600 -m 15 -s 25 -n --avoid '(^|/)(init|systemd|Xorg|sshd)$'"
|
|
|
|
# Examples:
|
|
|
|
# Print memory report every second instead of every minute
|
|
# EARLYOOM_ARGS="-r 1"
|
|
|
|
# Available minimum memory 5%
|
|
# EARLYOOM_ARGS="-m 5"
|
|
|
|
# Available minimum memory 15% and free minimum swap 5%
|
|
# EARLYOOM_ARGS="-m 15 -s 50"
|
|
|
|
# Avoid killing processes whose name matches this regexp
|
|
# EARLYOOM_ARGS="--avoid '(^|/)(init|X|sshd|firefox)$'"
|
|
|
|
# See more at `earlyoom -h'
|
|
|
|
# vim: ft=sh
|