]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: delegate "memory" instead of "cpu" by default for user instances (#8320)
authorFranck Bui <fbui@suse.com>
Thu, 1 Mar 2018 09:58:03 +0000 (10:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Mar 2018 09:58:03 +0000 (10:58 +0100)
CPU accounting has a too bad impact on performance to be enabled by
default. Therefore we should not delegate "cpu" for now.

OTOH since commit e0c46a736412b79b94a21f8512a769b9212b9adf, memory accounting
has been turned on for all units by default so it makes sense to delegate this
controller by default.

units/user@.service.in

index e8195acbb6ea66fc7036dd2d211907f925ef1e4a..372ffa56d36a0f36113bc1a03701ea8db259111f 100644 (file)
@@ -18,6 +18,6 @@ Type=notify
 ExecStart=-@rootlibexecdir@/systemd --user
 Slice=user-%i.slice
 KillMode=mixed
-Delegate=pids cpu
+Delegate=pids memory
 TasksMax=infinity
 TimeoutStopSec=120s