forked from rfjakob/earlyoom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathearlyoom.conf.sample
61 lines (46 loc) · 1.73 KB
/
earlyoom.conf.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Reporting interval (seconds)
# Amount of time between outputting current memory usage info
# 0: disable, > 0: enable at specified interval
report_interval=300
# Set niceness of earlyoom to -20 and oom_score_adj to -100
# yes: enable, no: disable
nice=no
# Whether to ignore oom_score_adj when computing badness score
# yes: ignore, no: take oom_score_adj into account
ignore_oom_score_adj=no
# D-Bus Notifications
# yes: enable, no: disable
notify_dbus=no
# RAM High watermark (% of MemAvailable)
# Stop killing processes once available memory rises above
# this threshold to allow for hysteresis
memory_high=15
# RAM Low/Term watermark (% of MemAvailable)
# Start sending SIGTERM to processes once below this threshold
memory_low=10
# RAM Kill threshold (% of MemAvailable)
# Start sending SIGKILL to processes once below this threshold
memory_kill=5
# RAM Emergency threshold (% of MemAvailable)
# Kills all processes listed under emerg_kill once below this threshold
memory_emerg=2
# Swap Low watermark (% of Swap)
# Start sending SIGTERM to processes once below this threshold
swap_low=10
# Swap Kill threshold (% of Swap)
# Start sending SIGKILL to processes once below this threshold
swap_kill=5
# Prefer process regex
prefer_regex=^(php-cgi|php-fpm|doveadm|crond)$
# Avoid process regex
avoid_regex=^(mysqld|mysqld_safe|nginx|yum|puppet|upcp|cpsrvd)$
# Avoid user regex
avoid_users=^(root)$
# Prefer older processes that match this regex
# badness += (process_rtime / 600)
prefer_old=^(php-cgi)$
# Processes to kill en-masse in case of emergency
# List of process names, comma-separated
# Executed left-to-right, and MemAvailable is checked
# after killing processes with those names
emerg_kill=doveadm,php-cgi,zip,dovecot,httpd,php-fpm,restic,nginx