diff options
author | Ryan Wilson <ryantimwilson@meta.com> | 2024-10-15 05:49:54 +0200 |
---|---|---|
committer | Ryan Wilson <ryantimwilson@meta.com> | 2024-10-17 05:12:38 +0200 |
commit | 63d4c4271ca529f8357a84cbc075170fffdb3de8 (patch) | |
tree | e8a1c9c0dfe0bd0ecc76daabaa7b8352747952b1 /man/oomd.conf.xml | |
parent | oomd: Refactor DefaultMemoryPressureDurationSec= to use conf parser (diff) | |
download | systemd-63d4c4271ca529f8357a84cbc075170fffdb3de8.tar.xz systemd-63d4c4271ca529f8357a84cbc075170fffdb3de8.zip |
cgroup: Add ManagedOOMMemoryPressureDurationSec= override setting for units
This will allow units (scopes/slices/services) to override the default
systemd-oomd setting DefaultMemoryPressureDurationSec=.
The semantics of ManagedOOMMemoryPressureDurationSec= are:
- If >= 1 second, overrides DefaultMemoryPressureDurationSec= from oomd.conf
- If is empty, uses DefaultMemoryPressureDurationSec= from oomd.conf
- Ignored if ManagedOOMMemoryPressure= is not "kill"
- Disallowed if < 1 second
Note the corresponding dbus property is DefaultMemoryPressureDurationUSec
which is in microseconds. This is consistent with other time-based
dbus properties.
Diffstat (limited to 'man/oomd.conf.xml')
-rw-r--r-- | man/oomd.conf.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/man/oomd.conf.xml b/man/oomd.conf.xml index 582fb27de1..13f1f22e53 100644 --- a/man/oomd.conf.xml +++ b/man/oomd.conf.xml @@ -90,7 +90,8 @@ <term><varname>DefaultMemoryPressureDurationSec=</varname></term> <listitem><para>Sets the amount of time a unit's control group needs to have exceeded memory pressure - limits before <command>systemd-oomd</command> will take action. Memory pressure limits are defined by + limits before <command>systemd-oomd</command> will take action. A unit can override this value with + <varname>ManagedOOMMemoryPressureDurationSec=</varname>. Memory pressure limits are defined by <varname>DefaultMemoryPressureLimit=</varname> and <varname>ManagedOOMMemoryPressureLimit=</varname>. Must be set to 0, or at least 1 second. Defaults to 30 seconds when unset or 0.</para> |