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