This puppet module:
- Installs earlyoom package
- Configures
/etc/default/earlyoom
- Controls the service
earlyoom
The Early OOM Daemon checks the amount of available memory and free swap up to 10 times a second (less often if there is a lot of free memory). By default if both are below 10%, it will kill the largest process (highest oom_score). The percentage value is configurable via command line arguments.
class{'earlyoom':}
class{'earlyoom':
interval => 120,
ignore_positive => true,
notify_send => true,
debug => true,
priority => true,
prefer => '(^|/)(init|X|sshd|firefox)$',
avoid => '(^|/)(cupsd|xrootd)$',
notify_command => '/bin/echo ${UID}',
memory_percent => 20,
swap_percent => [10,4]
memory_size => 20000,
swap_size => [30000,60000],
dryrun => false,
}
See REFERENCE.md
Apache-2.0
Steve Traylen, steve.traylen@cern.ch, CERN, 2020.
Steve Traylen steve.traylen@cern.ch
Please log tickets and issues at our Projects site