openrc/man
Matt Whitlock fd1e4a384a add option for OOM score adjustment
This commit adds a new --oom-score-adj option to start-stop-daemon and
supervise-daemon, as well as an equivalent SSD_OOM_SCORE_ADJ environment
variable. If either of these are specified (with the command-line
option taking precedence), then the specified adjustment value is
written to /proc/self/oom_score_adj after forking but prior to exec'ing
the daemon (at the time when nice and ionice are applied).

Additionally, per a suggestion by Mike Frysinger, the suggested values
for the SSD_NICELEVEL, SSD_IONICELEVEL, and SSD_OOM_SCORE_ADJ variables
in the example config file are now given as zeros, which are the
kernel's default values of these process knobs for the init process at
boot. Note that uncommenting any of these zero-valued suggestions will
cause SSD/SD to set the corresponding process knob affirmatively to
zero, whereas leaving the variable unset (and the equivalent command-
line option unspecified) means SSD/SD will not change the corresponding
process knob from its inherited value.

See: https://github.com/OpenRC/openrc/pull/435#discussion_r688310672
This fixes #435.
2021-12-22 10:01:14 -06:00
..
einfo.3 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
Makefile man: remove service(8) man page 2017-10-12 18:47:36 -05:00
meson_man_links.sh add meson build files 2021-09-04 16:01:29 -05:00
meson.build add meson build files 2021-09-04 16:01:29 -05:00
openrc-init.8 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
openrc-run.8 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
openrc-shutdown.8 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
openrc.8 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
rc_config.3 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
rc_deptree.3 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
rc_find_pids.3 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
rc_plugin_hook.3 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
rc_runlevel.3 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
rc_service.3 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
rc_stringlist.3 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
rc-service.8 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
rc-sstat.8 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
rc-status.8 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
rc-update.8 use HEAD in git URIs to point to the default branch 2021-12-20 20:07:00 -05:00
start-stop-daemon.8 add option for OOM score adjustment 2021-12-22 10:01:14 -06:00
supervise-daemon.8 add option for OOM score adjustment 2021-12-22 10:01:14 -06:00