From a62a7c17ccd3476c7199612f6dcdb0b09a3d4804 Mon Sep 17 00:00:00 2001 From: Anita Zhang Date: Mar 30 2021 10:11:37 +0000 Subject: Increase oomd user memory pressure limit to 50% for 20s (#1941170) There isn't really a one size fits all policy since pressure can change a lot based on whether you have flash or spinning disks (and your swap configuration as well). But let's be a bit more conservative here. --- diff --git a/10-oomd-defaults.conf b/10-oomd-defaults.conf index 3660cd2..0254657 100644 --- a/10-oomd-defaults.conf +++ b/10-oomd-defaults.conf @@ -1,2 +1,2 @@ [OOM] -DefaultMemoryPressureDurationSec=10s +DefaultMemoryPressureDurationSec=20s diff --git a/10-oomd-user-service-defaults.conf b/10-oomd-user-service-defaults.conf index 6e71de7..94d5c87 100644 --- a/10-oomd-user-service-defaults.conf +++ b/10-oomd-user-service-defaults.conf @@ -1,3 +1,3 @@ [Service] ManagedOOMMemoryPressure=kill -ManagedOOMMemoryPressureLimit=10% +ManagedOOMMemoryPressureLimit=50% diff --git a/systemd.spec b/systemd.spec index 6a1e111..849e2c3 100644 --- a/systemd.spec +++ b/systemd.spec @@ -21,7 +21,7 @@ Name: systemd Url: https://www.freedesktop.org/wiki/Software/systemd Version: 248~rc4 -Release: 5%{?dist} +Release: 6%{?dist} # For a breakdown of the licensing, see README License: LGPLv2+ and MIT and GPLv2+ Summary: System and Service Manager @@ -987,6 +987,9 @@ fi %files standalone-sysusers -f .file-list-standalone-sysusers %changelog +* Tue Mar 30 2021 Anita Zhang - 248~rc4-6 +- Increase oomd user memory pressure limit to 50% (#1941170) + * Fri Mar 26 2021 Zbigniew Jędrzejewski-Szmek - 248~rc4-5 - Do not preset systemd-networkd.service and systemd-networkd-wait-online.service on upgrades from before systemd-networkd was split out (#1943263)