teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0005-pid1-bump-maximum-number-of-process-in-user-slice-to.patch

36e8a3
From c7f77dfd2bfa593bfbbdf82eea8b600ca1b46f4c Mon Sep 17 00:00:00 2001
36e8a3
From: rpm-build <rpm-build>
36e8a3
Date: Wed, 1 Aug 2018 17:17:07 +0200
36e8a3
Subject: [PATCH] pid1: bump maximum number of process in user slice to 80% of
36e8a3
 pid_max
36e8a3
36e8a3
Related: #1523236
36e8a3
---
36e8a3
 src/basic/cgroup-util.h              | 2 +-
36e8a3
 units/user-.slice.d/10-defaults.conf | 2 +-
36e8a3
 2 files changed, 2 insertions(+), 2 deletions(-)
36e8a3
36e8a3
diff --git a/src/basic/cgroup-util.h b/src/basic/cgroup-util.h
4bff0a
index f10c26ad51..26e3ae0404 100644
36e8a3
--- a/src/basic/cgroup-util.h
36e8a3
+++ b/src/basic/cgroup-util.h
36e8a3
@@ -101,7 +101,7 @@ static inline bool CGROUP_BLKIO_WEIGHT_IS_OK(uint64_t x) {
36e8a3
 
36e8a3
 /* Default resource limits */
36e8a3
 #define DEFAULT_TASKS_MAX_PERCENTAGE            80U /* 80% of PIDs, 26214 on default settings */
36e8a3
-#define DEFAULT_USER_TASKS_MAX_PERCENTAGE       33U /* 33% of PIDs, 10813 on default settings */
36e8a3
+#define DEFAULT_USER_TASKS_MAX_PERCENTAGE       80U /* 80% of PIDs, 26214 on default settings */
36e8a3
 
36e8a3
 typedef enum CGroupUnified {
36e8a3
         CGROUP_UNIFIED_UNKNOWN = -1,
36e8a3
diff --git a/units/user-.slice.d/10-defaults.conf b/units/user-.slice.d/10-defaults.conf
4bff0a
index 95ab11b30b..efc9d37c8e 100644
36e8a3
--- a/units/user-.slice.d/10-defaults.conf
36e8a3
+++ b/units/user-.slice.d/10-defaults.conf
36e8a3
@@ -12,4 +12,4 @@ Description=User Slice of UID %j
36e8a3
 After=systemd-user-sessions.service
36e8a3
 
36e8a3
 [Slice]
36e8a3
-TasksMax=33%
36e8a3
+TasksMax=80%