diff --git a/set-kernel-core_pipe_limit-to-16.patch b/set-kernel-core_pipe_limit-to-16.patch new file mode 100644 index 0000000000000000000000000000000000000000..e2415049575bac09632e581a957aaa8e610c953f --- /dev/null +++ b/set-kernel-core_pipe_limit-to-16.patch @@ -0,0 +1,33 @@ +From 283ff70372cddb8b06ca3b2c5e7b8287f81207a9 Mon Sep 17 00:00:00 2001 +From: 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 + diff --git a/systemd.spec b/systemd.spec index 52ddc9f50e4a350d4e06476ddcc50af748bdcb42..416bae84fe5fabaee3e6f9b4b38add1c58bfa28b 100644 --- a/systemd.spec +++ b/systemd.spec @@ -16,7 +16,7 @@ Name: systemd Url: https://www.freedesktop.org/wiki/Software/systemd Version: 243 -Release: 39 +Release: 40 License: MIT and LGPLv2+ and GPLv2+ Summary: System and Service Manager @@ -136,6 +136,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 @@ -1507,6 +1508,12 @@ fi %exclude /usr/share/man/man3/* %changelog +* Mon Aug 02 2021 jiazhenyuan - 243-40 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:set kernel.core_pipe_limit=16 + * Tue Jul 27 2021 fangxiuning - 243-39 - Type:bugfix - ID:NA