From: Lennart Poettering Date: Fri, 24 Feb 2023 09:42:10 +0000 (+0100) Subject: units: let systemd --user manage its own memory pressure handling X-Git-Tag: v254-rc1~1142^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d03637404a7e53dee2d47b3d5d1dc47b59997e9;p=thirdparty%2Fsystemd.git units: let systemd --user manage its own memory pressure handling Let's make things systematic: the per-user and the per-system manager should manage their own memory pressure, as they are, well, managers of things. This is particularly relevant and the per-user service manager should watch its own "init.scope" subcgroup, instead of the main service unit cgroup, and hence $MEMORY_PRESSURE_WATCH as set by the per-system service manager would simply be wrong. --- diff --git a/units/user@.service.in b/units/user@.service.in index 5e95efe1d10..0c3440bb3f1 100644 --- a/units/user@.service.in +++ b/units/user@.service.in @@ -26,3 +26,4 @@ TasksMax=infinity TimeoutStopSec={{ DEFAULT_USER_TIMEOUT_SEC*4//3 }}s KeyringMode=inherit OOMScoreAdjust=100 +MemoryPressureWatch=skip