Files
openwrt-packages/admin/earlyoom/files/earlyoom.config
Alice H. 1727af3436 earlyoom: add new package
earlyoom checks the amount of available memory and swap at an adaptive
rate for up to 10 times per second. When both available memory and swap
are below threshold, it'll send SIGTERM or SIGKILL to the process with
the highest oom_score. Details about oom_score can be obtained at
https://man7.org/linux/man-pages/man5/proc_pid_oom_score.5.html

Signed-off-by: Alice H. <alice.hall0451+github@gmail.com>
2025-11-03 02:29:41 +02:00

27 lines
624 B
Plaintext

config earlyoom 'main'
option memory_term_percent '10'
option memory_kill_percent '5'
option swap_term_percent '10'
option swap_kill_percent '5'
option memory_term_kib '0'
option memory_kill_kib '0'
option swap_term_kib '0'
option swap_kill_kib '0'
option prefer_regex ''
option avoid_regex '^netifd|dropbear|dnsmasq|odhcpd|odhcp6c|hostapd|wpa_supplicant$'
option ignore_regex ''
option pre_script_path ''
option post_script_path ''
option report_interval '3600'
option debug_log '0'
option high_priority '1'
option kill_process_group '0'
option sort_by_rss '0'
option dry_run '0'
option syslog '1'