]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: clarify DefaultTasksMax doc
authorPavel Sapezhko <me@weastur.com>
Wed, 18 Nov 2020 14:54:01 +0000 (17:54 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 25 Nov 2020 11:28:05 +0000 (12:28 +0100)
man/systemd-system.conf.xml

index 736218e5193f03f96a48636ed2b656ad13374d82..0dea50f2fe87591faef8201034399c927f0864cf 100644 (file)
         <listitem><para>Configure the default value for the per-unit <varname>TasksMax=</varname> setting. See
         <citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>
         for details. This setting applies to all unit types that support resource control settings, with the exception
-        of slice units. Defaults to 15%, which equals 4915 with the kernel's defaults on the host, but might be smaller
-        in OS containers.</para></listitem>
+        of slice units. Defaults to 15% of the sysctl setting <varname>kernel.pid_max=</varname> or root cgroup <varname>pids.max</varname>.
+        Kernel has a default value for <varname>kernel.pid_max=</varname> and an algorithm of counting in case of more than 32 cores.
+        For example with the default <varname>kernel.pid_max=</varname>, <varname>DefaultTasksMax=</varname> defaults to 4915,
+        but might be greater in other systems or smaller in OS containers.</para></listitem>
       </varlistentry>
 
       <varlistentry>