]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: let systemd --user manage its own memory pressure handling
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Feb 2023 09:42:10 +0000 (10:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 1 Mar 2023 08:43:24 +0000 (09:43 +0100)
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

index 5e95efe1d109e3d4fbad415a540ae5e26e7a620a..0c3440bb3f1cbf36c1a76308c99a82dfa1e6fd56 100644 (file)
@@ -26,3 +26,4 @@ TasksMax=infinity
 TimeoutStopSec={{ DEFAULT_USER_TIMEOUT_SEC*4//3 }}s
 KeyringMode=inherit
 OOMScoreAdjust=100
+MemoryPressureWatch=skip