summaryrefslogtreecommitdiff
path: root/etc/default
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-10-17 17:58:54 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-10-17 17:58:54 +0800
commit854df2774a8d4a444685f5af95c83781129e33f7 (patch)
treee3015eb54012696d6fa585ef6f5a4267c6063b3a /etc/default
parentcfa8830730cd00b8320ec10151c15ecdb53759b5 (diff)
new: earlyoom
Diffstat (limited to 'etc/default')
-rw-r--r--etc/default/earlyoom21
1 files changed, 21 insertions, 0 deletions
diff --git a/etc/default/earlyoom b/etc/default/earlyoom
new file mode 100644
index 00000000..2b4c7ea4
--- /dev/null
+++ b/etc/default/earlyoom
@@ -0,0 +1,21 @@
+# 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="-m 5 -s 100 -r 3600 -n --avoid '(^|/)(init|systemd)$'"
+
+# Examples:
+
+# Print memory report every minute instead of every hour
+# EARLYOOM_ARGS="-r 60"
+
+# Available minimum memory 5%
+# EARLYOOM_ARGS="-m 5"
+
+# Available minimum memory 15% and free minimum swap 5%
+# EARLYOOM_ARGS="-m 15 -s 5"
+
+# Avoid killing processes whose name matches this regexp
+# EARLYOOM_ARGS="--avoid '(^|/)(init|X|sshd|firefox)$'"
+
+# See more at `earlyoom -h'