1
0
mirror of https://github.com/systemd/systemd synced 2024-07-08 20:15:55 +00:00

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.
This commit is contained in:
Lennart Poettering 2023-02-24 10:42:10 +01:00
parent 6bb0084204
commit 9d03637404

View File

@ -26,3 +26,4 @@ TasksMax=infinity
TimeoutStopSec={{ DEFAULT_USER_TIMEOUT_SEC*4//3 }}s
KeyringMode=inherit
OOMScoreAdjust=100
MemoryPressureWatch=skip