Blame SOURCES/0003-pid1-bump-DefaultTasksMax-to-80-of-the-kernel-pid.ma.patch

a3e2b5
From b924c79720cc2bf2edf75fa3ff43bb4954fccf1f Mon Sep 17 00:00:00 2001
a3e2b5
From: rpm-build <rpm-build>
a3e2b5
Date: Wed, 1 Aug 2018 13:19:39 +0200
a3e2b5
Subject: [PATCH] pid1: bump DefaultTasksMax to 80% of the kernel pid.max value
a3e2b5
a3e2b5
This should be hopefully high enough even for the very big deployments.
a3e2b5
a3e2b5
Resolves: #1523236
a3e2b5
---
a3e2b5
 man/systemd-system.conf.xml | 2 +-
a3e2b5
 src/basic/cgroup-util.h     | 2 +-
a3e2b5
 src/core/system.conf.in     | 2 +-
a3e2b5
 3 files changed, 3 insertions(+), 3 deletions(-)
a3e2b5
a3e2b5
diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml
a3e2b5
index a914ef2523..085086200a 100644
a3e2b5
--- a/man/systemd-system.conf.xml
a3e2b5
+++ b/man/systemd-system.conf.xml
a3e2b5
@@ -339,7 +339,7 @@
a3e2b5
         <listitem><para>Configure the default value for the per-unit <varname>TasksMax=</varname> setting. See
a3e2b5
         <citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>
a3e2b5
         for details. This setting applies to all unit types that support resource control settings, with the exception
a3e2b5
-        of slice units. Defaults to 15%, which equals 4915 with the kernel's defaults on the host, but might be smaller
a3e2b5
+        of slice units. Defaults to 80%, which equals 26214 with the kernel's defaults on the host, but might be smaller
a3e2b5
         in OS containers.</para></listitem>
a3e2b5
       </varlistentry>
a3e2b5
 
a3e2b5
diff --git a/src/basic/cgroup-util.h b/src/basic/cgroup-util.h
a3e2b5
index 1a28a8163a..f10c26ad51 100644
a3e2b5
--- a/src/basic/cgroup-util.h
a3e2b5
+++ b/src/basic/cgroup-util.h
a3e2b5
@@ -100,7 +100,7 @@ static inline bool CGROUP_BLKIO_WEIGHT_IS_OK(uint64_t x) {
a3e2b5
 }
a3e2b5
 
a3e2b5
 /* Default resource limits */
a3e2b5
-#define DEFAULT_TASKS_MAX_PERCENTAGE            15U /* 15% of PIDs, 4915 on default settings */
a3e2b5
+#define DEFAULT_TASKS_MAX_PERCENTAGE            80U /* 80% of PIDs, 26214 on default settings */
a3e2b5
 #define DEFAULT_USER_TASKS_MAX_PERCENTAGE       33U /* 33% of PIDs, 10813 on default settings */
a3e2b5
 
a3e2b5
 typedef enum CGroupUnified {
a3e2b5
diff --git a/src/core/system.conf.in b/src/core/system.conf.in
a3e2b5
index f0a59a79a5..653ec6b8c9 100644
a3e2b5
--- a/src/core/system.conf.in
a3e2b5
+++ b/src/core/system.conf.in
a3e2b5
@@ -45,7 +45,7 @@
a3e2b5
 #DefaultBlockIOAccounting=no
a3e2b5
 #DefaultMemoryAccounting=@MEMORY_ACCOUNTING_DEFAULT@
a3e2b5
 #DefaultTasksAccounting=yes
a3e2b5
-#DefaultTasksMax=15%
a3e2b5
+#DefaultTasksMax=80%
a3e2b5
 #DefaultLimitCPU=
a3e2b5
 #DefaultLimitFSIZE=
a3e2b5
 #DefaultLimitDATA=