dryang / rpms / systemd

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