man: clarify ManagedOOMPreference documentation
authorNick Rosbrook <nick.rosbrook@canonical.com>
Tue, 29 Nov 2022 20:40:22 +0000 (15:40 -0500)
committerNick Rosbrook <nick.rosbrook@canonical.com>
Tue, 29 Nov 2022 21:01:58 +0000 (16:01 -0500)
Explicitly state that ManagedOOMPreference is always honored when the
unit's cgroup is owned by root.

man/systemd.resource-control.xml

index fe875a81c3dde3eb042e233512f4e48ad0fefa41..1142ad7758f0bb29a0e1cdc8ab9984db8b2d002b 100644 (file)
@@ -1101,10 +1101,10 @@ DeviceAllow=/dev/loop-control
           only respect these extended attributes if the unit's cgroup is owned by root.</para>
 
           <para>When calculating candidates to relieve memory pressure, <command>systemd-oomd</command>
-          will only respect these extended attributes if the unit's cgroup owner, and the
-          owner of the monitored ancestor cgroup are the same. For example, if <command>systemd-oomd</command>
-          is calculating candidates for <filename>-.slice</filename>, then extended attributes set
-          on descendants of <filename>/user.slice/user-1000.slice/user@1000.service/</filename>
+          will only respect these extended attributes if the unit's cgroup is owned by root, or if the
+          unit's cgroup owner, and the owner of the monitored ancestor cgroup are the same. For example,
+          if <command>systemd-oomd</command> is calculating candidates for <filename>-.slice</filename>,
+          then extended attributes set on descendants of <filename>/user.slice/user-1000.slice/user@1000.service/</filename>
           will be ignored because the descendants are owned by UID 1000, and <filename>-.slice</filename>
           is owned by UID 0. But, if calculating candidates for
           <filename>/user.slice/user-1000.slice/user@1000.service/</filename>, then extended attributes set