pid1 bump DefaultTasksMax to 80% of the kernel pid.max value
(cherry picked from commit ab4aee71d67f643ed3d275ad906a1fe5d783a025)
This commit is contained in:
parent
721ef9d6a2
commit
1ae3ef8f50
@ -0,0 +1,50 @@
|
|||||||
|
From bb46b12cbb84411e378cd45f2ac320a9ce53551c Mon Sep 17 00:00:00 2001
|
||||||
|
From: openEuler Buildteam <buildteam@openeuler.org>
|
||||||
|
Date: Tue, 10 Mar 2020 21:01:43 +0800
|
||||||
|
Subject: [PATCH] pid1 bump DefaultTasksMax to 80% of the kernel pid.max value
|
||||||
|
|
||||||
|
---
|
||||||
|
man/systemd-system.conf.xml | 2 +-
|
||||||
|
src/core/system.conf.in | 2 +-
|
||||||
|
units/user-.slice.d/10-defaults.conf | 2 +-
|
||||||
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml
|
||||||
|
index e403fa5..afd51ed 100644
|
||||||
|
--- a/man/systemd-system.conf.xml
|
||||||
|
+++ b/man/systemd-system.conf.xml
|
||||||
|
@@ -360,7 +360,7 @@
|
||||||
|
<listitem><para>Configure the default value for the per-unit <varname>TasksMax=</varname> setting. See
|
||||||
|
<citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||||
|
for details. This setting applies to all unit types that support resource control settings, with the exception
|
||||||
|
- of slice units. Defaults to 15% of the minimum of <varname>kernel.pid_max=</varname>, <varname>kernel.threads-max=</varname>
|
||||||
|
+ of slice units. Defaults to 80% of the minimum of <varname>kernel.pid_max=</varname>, <varname>kernel.threads-max=</varname>
|
||||||
|
and root cgroup <varname>pids.max</varname>.
|
||||||
|
Kernel has a default value for <varname>kernel.pid_max=</varname> and an algorithm of counting in case of more than 32 cores.
|
||||||
|
For example with the default <varname>kernel.pid_max=</varname>, <varname>DefaultTasksMax=</varname> defaults to 4915,
|
||||||
|
diff --git a/src/core/system.conf.in b/src/core/system.conf.in
|
||||||
|
index 8112125..9e75b14 100644
|
||||||
|
--- a/src/core/system.conf.in
|
||||||
|
+++ b/src/core/system.conf.in
|
||||||
|
@@ -51,7 +51,7 @@
|
||||||
|
#DefaultBlockIOAccounting=no
|
||||||
|
#DefaultMemoryAccounting={{ 'yes' if MEMORY_ACCOUNTING_DEFAULT else 'no' }}
|
||||||
|
#DefaultTasksAccounting=yes
|
||||||
|
-#DefaultTasksMax=15%
|
||||||
|
+#DefaultTasksMax=80%
|
||||||
|
#DefaultLimitCPU=
|
||||||
|
#DefaultLimitFSIZE=
|
||||||
|
#DefaultLimitDATA=
|
||||||
|
diff --git a/units/user-.slice.d/10-defaults.conf b/units/user-.slice.d/10-defaults.conf
|
||||||
|
index c81a00e..3b14c35 100644
|
||||||
|
--- a/units/user-.slice.d/10-defaults.conf
|
||||||
|
+++ b/units/user-.slice.d/10-defaults.conf
|
||||||
|
@@ -14,4 +14,4 @@ After=systemd-user-sessions.service
|
||||||
|
StopWhenUnneeded=yes
|
||||||
|
|
||||||
|
[Slice]
|
||||||
|
-TasksMax=33%
|
||||||
|
+TasksMax=80%
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
Name: systemd
|
Name: systemd
|
||||||
Url: https://www.freedesktop.org/wiki/Software/systemd
|
Url: https://www.freedesktop.org/wiki/Software/systemd
|
||||||
Version: 249
|
Version: 249
|
||||||
Release: 13
|
Release: 14
|
||||||
License: MIT and LGPLv2+ and GPLv2+
|
License: MIT and LGPLv2+ and GPLv2+
|
||||||
Summary: System and Service Manager
|
Summary: System and Service Manager
|
||||||
|
|
||||||
@ -63,7 +63,8 @@ Patch0014: 0014-journal-don-t-enable-systemd-journald-audit.socket-b.patch
|
|||||||
Patch0015: 0015-systemd-change-time-log-level.patch
|
Patch0015: 0015-systemd-change-time-log-level.patch
|
||||||
Patch0016: 0016-fix-capsh-drop-but-ping-success.patch
|
Patch0016: 0016-fix-capsh-drop-but-ping-success.patch
|
||||||
Patch0017: 0017-resolved-create-etc-resolv.conf-symlink-at-runtime.patch
|
Patch0017: 0017-resolved-create-etc-resolv.conf-symlink-at-runtime.patch
|
||||||
patch0018: 0018-nop_job-of-a-unit-must-also-be-coldpluged-after-deserization.patch
|
Patch0018: 0018-nop_job-of-a-unit-must-also-be-coldpluged-after-deserization.patch
|
||||||
|
Patch0019: 0019-pid1-bump-DefaultTasksMax-to-80-of-the-kernel-pid.ma.patch
|
||||||
|
|
||||||
#backport
|
#backport
|
||||||
Patch6000: backport-core-fix-free-undefined-pointer-when-strdup-failed-i.patch
|
Patch6000: backport-core-fix-free-undefined-pointer-when-strdup-failed-i.patch
|
||||||
@ -1485,6 +1486,9 @@ fi
|
|||||||
%{_libdir}/security/pam_systemd.so
|
%{_libdir}/security/pam_systemd.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 17 2022 xujing <xujing99@huawei.com> - 249-14
|
||||||
|
- pid1 bump DefaultTasksMax to 80% of the kernel pid.max value
|
||||||
|
|
||||||
* Thu Mar 17 2022 xujing <xujing99@huawei.com> - 249-13
|
* Thu Mar 17 2022 xujing <xujing99@huawei.com> - 249-13
|
||||||
- allow more inodes in /dev an /tmp
|
- allow more inodes in /dev an /tmp
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user