From 643006f62bca5e6f16c51ff67ca06e374e6f8dc3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 30 Sep 2021 11:32:43 +0200 Subject: [PATCH] man: document the new DefaultOOMScoreAdjust= setting --- man/systemd-system.conf.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml index 5824e01e0c8..ca36a64debd 100644 --- a/man/systemd-system.conf.xml +++ b/man/systemd-system.conf.xml @@ -450,6 +450,20 @@ for details. Note that this default is not used for services that have Delegate= turned on. + + + DefaultOOMScoreAdjust= + + Configures the default OOM score adjustments of processes run by the service + manager. This defaults to unset (meaning the forked off processes inherit the service manager's OOM + score adjustment value), except if the service manager is run for an unprivileged user, in which case + this defaults to the service manager's OOM adjustment value plus 100 (this makes service processes + slightly more likely to be killed under memory pressure than the manager itself). This may be used to + pick a global default for the per-unit OOMScoreAdjust= setting. See + systemd.exec5 for + details. Note that this setting has no effect on the OOM score adjustment value of the service + manager process itself, it retains the original value set during its invocation. + -- 2.47.3