summaryrefslogtreecommitdiff
path: root/man/systemd-system.conf.xml
diff options
context:
space:
mode:
authorEinsler Lee <shenxiaogll@163.com>2021-01-30 11:14:35 +0800
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-01-30 12:48:15 +0100
commit9c587d66187976de49e2d2028cebe1aef5b77b9c (patch)
treea372269f77612c31d4c707c8581bb1381ff9d9ee /man/systemd-system.conf.xml
parent7a1fed85d7b84cfc9c494d5fd62cf7024046aec9 (diff)
downloadsystemd-9c587d66187976de49e2d2028cebe1aef5b77b9c.tar.gz
man: make it clear how systemd calculate the DefaultTasksMax.
Actually, systemd takes the minimum of * a) the maximum tasks value the kernel allows on this architecture * b) the cgroups pids_max attribute for the system * c) the kernel's configured maximum PID value to calculate the DefaultTasksMax. Here, kernel.thread-max should also be methioned.
Diffstat (limited to 'man/systemd-system.conf.xml')
-rw-r--r--man/systemd-system.conf.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml
index 0dea50f2fe..075666ac6b 100644
--- a/man/systemd-system.conf.xml
+++ b/man/systemd-system.conf.xml
@@ -361,7 +361,8 @@
<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% of the sysctl setting <varname>kernel.pid_max=</varname> or root cgroup <varname>pids.max</varname>.
+ of slice units. Defaults to 15% of the minimum of <varname>kernel.pid_max=</varname>, <varname>kernel.threads-max=</varname>
+ and 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>