summaryrefslogtreecommitdiff
path: root/man/oomd.conf.xml
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2021-01-24 00:16:19 -0800
committerAnita Zhang <the.anitazha@gmail.com>2021-01-24 01:59:03 -0800
commitc20aa7b17166b9f331da33ad9288f9ede75c72db (patch)
tree8a9063977ace04e0d13d068faa15755063e27c2e /man/oomd.conf.xml
parent664e54b1bb3e7f945fd8d2b97d1c6f78f0ff5e53 (diff)
downloadsystemd-c20aa7b17166b9f331da33ad9288f9ede75c72db.tar.gz
oom: make memory pressure duration configurable through oomd.conf
Diffstat (limited to 'man/oomd.conf.xml')
-rw-r--r--man/oomd.conf.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/man/oomd.conf.xml b/man/oomd.conf.xml
index 35a0686bc5..bb5da87c54 100644
--- a/man/oomd.conf.xml
+++ b/man/oomd.conf.xml
@@ -65,13 +65,23 @@
will take action. A unit can override this value with <varname>ManagedOOMMemoryPressureLimitPercent=</varname>.
The memory pressure for this property represents the fraction of time in a 10 second window in which all tasks
in the cgroup were delayed. For each monitored cgroup, if the memory pressure on that cgroup exceeds the
- limit set for more than 30 seconds, <command>systemd-oomd</command> will act on eligible descendant cgroups,
+ limit set for longer than the duration set by <varname>DefaultMemoryPressureDurationSec=</varname>,
+ <command>systemd-oomd</command> will act on eligible descendant cgroups,
starting from the ones with the most reclaim activity to the least reclaim activity. Which cgroups are
monitored and what action gets taken depends on what the unit has configured for
<varname>ManagedOOMMemoryPressure=</varname>. Takes a percentage value between 0% and 100%, inclusive.
Defaults to 60%.</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term><varname>DefaultMemoryPressureDurationSec=</varname></term>
+
+ <listitem><para>Sets the amount of time a unit's cgroup needs to have exceeded memory pressure limits before
+ <command>systemd-oomd</command> will take action. Memory pressure limits are defined by
+ <varname>DefaultMemoryPressureLimitPercent=</varname> and <varname>ManagedOOMMemoryPressureLimitPercent=</varname>.
+ Defaults to 30 seconds when this property is unset or set to 0.</para></listitem>
+ </varlistentry>
+
</variablelist>
</refsect1>