From: Zbigniew Jędrzejewski-Szmek Date: Tue, 7 Mar 2023 15:09:35 +0000 (+0100) Subject: man: adjust description of CPUAccounting= X-Git-Tag: v254-rc1~1091^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F26711%2Fhead;p=thirdparty%2Fsystemd.git man: adjust description of CPUAccounting= For any user on a semi-recent kernel, effectively this setting is pointless. We should deprecate it once not needed anymore for the v1 hierarchy. For now, adjust the description. --- diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml index 71d403db8d0..829b4be0ed5 100644 --- a/man/systemd-system.conf.xml +++ b/man/systemd-system.conf.xml @@ -444,11 +444,11 @@ IPAccounting=. See systemd.resource-control5 for details on the per-unit settings. DefaultTasksAccounting= defaults to yes, - DefaultMemoryAccounting= to - &MEMORY_ACCOUNTING_DEFAULT;. DefaultCPUAccounting= defaults to yes if enabling CPU - accounting doesn't require the CPU controller to be enabled (Linux 4.15+ using the unified hierarchy - for resource control), otherwise it defaults to no. The other three settings default to - no. + DefaultMemoryAccounting= to &MEMORY_ACCOUNTING_DEFAULT;. + DefaultCPUAccounting= defaults to yes, but really has no effect if enabling CPU + accounting doesn't require the controller to be enabled (Linux 4.15+ using the + unified hierarchy for resource control), otherwise it defaults to no. The other three settings + default to no. diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index 45b006be574..d18fd9a94cd 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -189,6 +189,9 @@ CPUWeight=20 DisableControllers=cpu / \ setting may be controlled with DefaultCPUAccounting= in systemd-system.conf5. + + Under the unified cgroup hierarchy, CPU accounting is available for all units and this + setting has no effect. diff --git a/src/core/system.conf.in b/src/core/system.conf.in index 0c27586c462..9572b57f17a 100644 --- a/src/core/system.conf.in +++ b/src/core/system.conf.in @@ -51,7 +51,7 @@ #DefaultStartLimitIntervalSec=10s #DefaultStartLimitBurst=5 #DefaultEnvironment= -#DefaultCPUAccounting=no +#DefaultCPUAccounting=yes #DefaultIOAccounting=no #DefaultIPAccounting=no #DefaultMemoryAccounting={{ 'yes' if MEMORY_ACCOUNTING_DEFAULT else 'no' }}