From 63d4c4271ca529f8357a84cbc075170fffdb3de8 Mon Sep 17 00:00:00 2001 From: Ryan Wilson Date: Mon, 14 Oct 2024 20:49:54 -0700 Subject: 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. --- docs/TRANSIENT-SETTINGS.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/TRANSIENT-SETTINGS.md b/docs/TRANSIENT-SETTINGS.md index e219131ce6..ebb8ba536a 100644 --- a/docs/TRANSIENT-SETTINGS.md +++ b/docs/TRANSIENT-SETTINGS.md @@ -281,6 +281,7 @@ All cgroup/resource control settings are available for transient units ✓ ManagedOOMSwap= ✓ ManagedOOMMemoryPressure= ✓ ManagedOOMMemoryPressureLimit= +✓ ManagedOOMMemoryPressureDurationSec= ✓ ManagedOOMPreference= ✓ CoredumpReceive= ``` -- cgit v1.2.3