]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Resource control manpage fixup (#28046)
authorSam Morris <sam@robots.org.uk>
Mon, 19 Jun 2023 11:30:43 +0000 (12:30 +0100)
committerGitHub <noreply@github.com>
Mon, 19 Jun 2023 11:30:43 +0000 (13:30 +0200)
The order of the description of each item should match the order that they are declared. Un-document effect of deprecated non-unified CGroup hierarchy on
DefaultCPUAccounting=. Mention that the default value for DefaultCPUAccouting= is
affected by the kernel version.

man/systemd-system.conf.xml

index 4860dab8417f888b3cb51824ce2e8b9086522334..e106dabaf4a573742233510e996605c2b7b1568b 100644 (file)
         <term><varname>DefaultIOAccounting=</varname></term>
         <term><varname>DefaultIPAccounting=</varname></term>
 
-        <listitem><para>Configure the default resource accounting settings, as configured per-unit by
+        <listitem>
+        <para>Configure the default resource accounting settings, as configured per-unit by
         <varname>CPUAccounting=</varname>, <varname>MemoryAccounting=</varname>,
         <varname>TasksAccounting=</varname>, <varname>IOAccounting=</varname> and
         <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, 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>
+        for details on the per-unit settings.</para>
+
+        <para><varname>DefaultCPUAccounting=</varname> defaults to yes when running on kernel ≥4.15, and no on older versions.
+        <varname>DefaultMemoryAccounting=</varname> defaults to &MEMORY_ACCOUNTING_DEFAULT;.
+        <varname>DefaultTasksAccounting=</varname> defaults to yes.
+        The other settings default to no.</para>
+        </listitem>
       </varlistentry>
 
       <varlistentry>