From 9d03637404a7e53dee2d47b3d5d1dc47b59997e9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 24 Feb 2023 10:42:10 +0100 Subject: 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. --- units/user@.service.in | 1 + 1 file changed, 1 insertion(+) (limited to 'units') diff --git a/units/user@.service.in b/units/user@.service.in index 5e95efe1d1..0c3440bb3f 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 -- cgit v1.2.1