From 42725daeee350d629c140e7de3f9df3d5ee06b34 Mon Sep 17 00:00:00 2001 From: rpm-build Date: Dec 15 2020 09:45:23 +0000 Subject: pid1: bump DefaultTasksMax to 80% of the kernel pid.max value This should be hopefully high enough even for the very big deployments. Resolves: #1523236 patch_name: 0003-pid1-bump-DefaultTasksMax-to-80-of-the-kernel-pid.ma.patch present_in_specfile: true location_in_specfile: 3 squash_commits: true --- diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml index a914ef2..0850862 100644 --- a/man/systemd-system.conf.xml +++ b/man/systemd-system.conf.xml @@ -339,7 +339,7 @@ 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 + of slice units. Defaults to 80%, which equals 26214 with the kernel's defaults on the host, but might be smaller in OS containers. diff --git a/src/basic/cgroup-util.h b/src/basic/cgroup-util.h index 1a28a81..f10c26a 100644 --- a/src/basic/cgroup-util.h +++ b/src/basic/cgroup-util.h @@ -100,7 +100,7 @@ static inline bool CGROUP_BLKIO_WEIGHT_IS_OK(uint64_t x) { } /* Default resource limits */ -#define DEFAULT_TASKS_MAX_PERCENTAGE 15U /* 15% of PIDs, 4915 on default settings */ +#define DEFAULT_TASKS_MAX_PERCENTAGE 80U /* 80% of PIDs, 26214 on default settings */ #define DEFAULT_USER_TASKS_MAX_PERCENTAGE 33U /* 33% of PIDs, 10813 on default settings */ typedef enum CGroupUnified { diff --git a/src/core/system.conf.in b/src/core/system.conf.in index f0a59a7..653ec6b 100644 --- a/src/core/system.conf.in +++ b/src/core/system.conf.in @@ -45,7 +45,7 @@ #DefaultBlockIOAccounting=no #DefaultMemoryAccounting=@MEMORY_ACCOUNTING_DEFAULT@ #DefaultTasksAccounting=yes -#DefaultTasksMax=15% +#DefaultTasksMax=80% #DefaultLimitCPU= #DefaultLimitFSIZE= #DefaultLimitDATA=