1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-08 21:17:47 +03:00

man: remove details of ManagedOOMPreference implementation

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-02-25 21:13:47 +01:00
parent a8136f1bc0
commit 34507fa9e9

View File

@ -944,27 +944,23 @@ DeviceAllow=/dev/loop-control
<command>systemd-oomd</command> will ignore these extended attributes if the unit's cgroup is not
owned by the root user.</para>
<para>If this property is set to <option>avoid</option>, the service manager will set the
<literal>user.oomd_avoid</literal> extended attribute on the unit's cgroup to <literal>1</literal>.
If <command>systemd-oomd</command> sees this extended attribute on a cgroup set to
<literal>1</literal> when choosing between candidates, it will only select the cgroup with
<literal>user.oomd_avoid</literal> if there are no other viable candidates.</para>
<para>If this property is set to <option>avoid</option>, the service manager will convey this to
<command>systemd-oomd</command>, which will only select this cgroup if there are no other viable
candidates.</para>
<para>If this property is set to <option>omit</option>, the service manager will set the
<literal>user.oomd_omit</literal> extended attribute on the unit's cgroup to <literal>1</literal>.
If <command>systemd-oomd</command> sees the this extended attribute on the cgroup set to
<literal>1</literal>, it will ignore the cgroup as a candidate and will not perform any actions on
the cgroup.</para>
<para>If this property is set to <option>omit</option>, the service manager will convey this to
<command>systemd-oomd</command>, which will ignore this cgroup as a candidate and will not perform
any actions on it.</para>
<para>It is recommended to use <option>avoid</option> and <option>omit</option> sparingly, as it
can adversely affect <command>systemd-oomd</command>'s kill behavior. Also note that these extended
attributes are not applied recursively to cgroups under this unit's cgroup.</para>
<para>Defaults to <option>none</option> which means no extended attributes will be set and
<command>systemd-oomd</command> will sort this unit's cgroup as defined in
<para>Defaults to <option>none</option> which means <command>systemd-oomd</command> will rank this
unit's cgroup as defined in
<citerefentry><refentrytitle>systemd-oomd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
and <citerefentry><refentrytitle>oomd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
(if this unit's cgroup becomes a candidate).</para>
and <citerefentry><refentrytitle>oomd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
</para>
</listitem>
</varlistentry>
</variablelist>