<varname>IPAccounting=</varname>. See
<citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>
for details on the per-unit settings. <varname>DefaultTasksAccounting=</varname> defaults to yes,
- <varname>DefaultMemoryAccounting=</varname> to
- &MEMORY_ACCOUNTING_DEFAULT;. <varname>DefaultCPUAccounting=</varname> 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.</para></listitem>
+ <varname>DefaultMemoryAccounting=</varname> to &MEMORY_ACCOUNTING_DEFAULT;.
+ <varname>DefaultCPUAccounting=</varname> defaults to yes, but really has no effect if enabling CPU
+ accounting doesn't require the <option>cpu</option> 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.</para></listitem>
</varlistentry>
<varlistentry>
setting may be controlled with
<varname>DefaultCPUAccounting=</varname> in
<citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
+
+ <para>Under the unified cgroup hierarchy, CPU accounting is available for all units and this
+ setting has no effect.</para>
</listitem>
</varlistentry>
#DefaultStartLimitIntervalSec=10s
#DefaultStartLimitBurst=5
#DefaultEnvironment=
-#DefaultCPUAccounting=no
+#DefaultCPUAccounting=yes
#DefaultIOAccounting=no
#DefaultIPAccounting=no
#DefaultMemoryAccounting={{ 'yes' if MEMORY_ACCOUNTING_DEFAULT else 'no' }}