3 ms·
Personally, I use one tool for both FreeBSD and Linux. Picking up the (imported) rc.conf variable for a service is a mere matter of oom-kill-protect frome
by JdeBP 10y ago
Personally, I use one tool for both FreeBSD and Linux. Picking up the (imported) rc.conf variable for a service is a mere matter of
oom-kill-protect fromenv
And the conversion from something like OOMScoreAdjust is quite straightforward. A PostgreSQL systemd unit file that read OOMScoreAdjust=-625 becomes a run program that contains
oom-kill-protect -- -625
* http://marc.info/?l=freebsd-hackers&m=145425153624976&w=2 http://marc.info/?l=freebsd-hackers&m=145425153624976&w=2
* http://jdebp.eu./Softwares/nosh/guide/oom-kill-protect.html http://jdebp.eu./Softwares/nosh/guide/oom-kill-protect.html