set kernel.core_pipe_limit=16
This commit is contained in:
parent
6677f9ceab
commit
32aee4e3bc
33
set-kernel-core_pipe_limit-to-16.patch
Normal file
33
set-kernel-core_pipe_limit-to-16.patch
Normal file
@ -0,0 +1,33 @@
|
||||
From 283ff70372cddb8b06ca3b2c5e7b8287f81207a9 Mon Sep 17 00:00:00 2001
|
||||
From: rpm-build <rpm-build>
|
||||
Date: Fri, 30 Jul 2021 12:38:27 +0800
|
||||
Subject: [PATCH] set kernel.core_pipe_limit=16
|
||||
|
||||
https://github.com/poettering/systemd/commit/8444f245b56d085cdcfa788e9b9c7799fc58a46b
|
||||
|
||||
---
|
||||
sysctl.d/50-coredump.conf.in | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
|
||||
diff --git a/sysctl.d/50-coredump.conf.in b/sysctl.d/50-coredump.conf.in
|
||||
index 47bf847..327863d 100644
|
||||
--- a/sysctl.d/50-coredump.conf.in
|
||||
+++ b/sysctl.d/50-coredump.conf.in
|
||||
@@ -10,3 +10,14 @@
|
||||
# setting below.
|
||||
|
||||
kernel.core_pattern=|@rootlibexecdir@/systemd-coredump %P %u %g %s %t %c %h
|
||||
+
|
||||
+# Allow that 16 coredumps are dispatched in parallel by the kernel. We want to
|
||||
+# be able to collect process metadata from /proc/%P/ while processing
|
||||
+# coredumps, and thus need to make sure the crashed processes are not reaped
|
||||
+# until we finished collecting what we need. The kernel default for this sysctl
|
||||
+# is "0" which means the kernel doesn't wait for userspace processes to finish
|
||||
+# processing before reaping the crashed processes — by setting this higher the
|
||||
+# kernel will delay reaping until we are done, but only for the specified
|
||||
+# number of crashes in parallel. The value of 16 is chosen to match
|
||||
+# systemd-coredump.socket's MaxConnections= value.
|
||||
+kernel.core_pipe_limit=16
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
Name: systemd
|
||||
Url: https://www.freedesktop.org/wiki/Software/systemd
|
||||
Version: 243
|
||||
Release: 40
|
||||
Release: 41
|
||||
License: MIT and LGPLv2+ and GPLv2+
|
||||
Summary: System and Service Manager
|
||||
|
||||
@ -146,6 +146,7 @@ Patch9008: 1620-nop_job-of-a-unit-must-also-be-coldpluged-after-deserizatio
|
||||
Patch9009: systemd-change-time-log-level.patch
|
||||
Patch9010: fix-capsh-drop-but-ping-success.patch
|
||||
Patch9011: 0998-resolved-create-etc-resolv.conf-symlink-at-runtime.patch
|
||||
Patch9012: set-kernel-core_pipe_limit-to-16.patch
|
||||
|
||||
BuildRequires: gcc, gcc-c++
|
||||
BuildRequires: libcap-devel, libmount-devel, pam-devel, libselinux-devel
|
||||
@ -1517,6 +1518,9 @@ fi
|
||||
%exclude /usr/share/man/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 02 2021 jiazhenyuan <jiazhenyuan@uniontech.com> - 243-41
|
||||
- set kernel.core_pipe_limit=16
|
||||
|
||||
* Mon Jul 26 2021 extinctfire <shenyining_00@126.com> - 243-40
|
||||
- restore RemainAfterExit=yes in systemd-vconsole-setup.service
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user