From 77f5277a7abf7d6b0a4bbf4ecf872da0b92335b5 Mon Sep 17 00:00:00 2001 From: Pavel Sapezhko Date: Wed, 18 Nov 2020 17:54:01 +0300 Subject: [PATCH] man: clarify DefaultTasksMax doc --- man/systemd-system.conf.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml index 736218e519..0dea50f2fe 100644 --- a/man/systemd-system.conf.xml +++ b/man/systemd-system.conf.xml @@ -361,8 +361,10 @@ Configure the default value for the per-unit TasksMax= setting. See systemd.resource-control5 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. + of slice units. Defaults to 15% of the sysctl setting kernel.pid_max= or root cgroup pids.max. + Kernel has a default value for kernel.pid_max= and an algorithm of counting in case of more than 32 cores. + For example with the default kernel.pid_max=, DefaultTasksMax= defaults to 4915, + but might be greater in other systems or smaller in OS containers.