SHA256
1
0
forked from pool/systemd

Accepting request 263284 from home:rmilasan:branches:Base:System

- Increase number of children/workers to CPU_COUNT * 256 to avoid 
  'maximum number of children reached' (bnc#907393).
  Add 1097-udevd-increase-maximum-number-of-children.patch

- Increase number of children/workers to CPU_COUNT * 256 to avoid 
  'maximum number of children reached' (bnc#907393).
  Add 1097-udevd-increase-maximum-number-of-children.patch

OBS-URL: https://build.opensuse.org/request/show/263284
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=826
This commit is contained in:
Robert Milasan 2014-11-28 08:06:54 +00:00 committed by Git OBS Bridge
parent 871d1f50b0
commit b5fed75ed5
5 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,22 @@
Index: systemd-210/src/udev/udevd.c
===================================================================
--- systemd-210.orig/src/udev/udevd.c
+++ systemd-210/src/udev/udevd.c
@@ -454,7 +454,7 @@ static void event_run(struct event *even
if (children >= children_max) {
if (children_max > 1)
- log_debug("maximum number (%i) of children reached", children);
+ log_error("maximum number (%i) of children reached", children);
return;
}
@@ -1277,7 +1277,7 @@ int main(int argc, char *argv[]) {
children_max = 8;
if (sched_getaffinity(0, sizeof (cpu_set), &cpu_set) == 0) {
- children_max += CPU_COUNT(&cpu_set) * 2;
+ children_max += CPU_COUNT(&cpu_set) * 256;
}
}
log_debug("set children_max to %u", children_max);

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 27 20:30:35 UTC 2014 - rmilasan@suse.com
- Increase number of children/workers to CPU_COUNT * 256 to avoid
'maximum number of children reached' (bnc#907393).
Add 1097-udevd-increase-maximum-number-of-children.patch
-------------------------------------------------------------------
Tue Nov 25 09:44:42 UTC 2014 - rmilasan@suse.com

View File

@ -1243,6 +1243,8 @@ Patch1094: 1094-udev-avoid-magic-constants-in-kernel-cmdline-parsers.patch
Patch1095: 1095-set-ssd-disk-to-use-deadline-scheduler.patch
# PATCH-FIX-SUSE 1096-new-udev-root-symlink-generator.patch
Patch1096: 1096-new-udev-root-symlink-generator.patch
# PATCH-FIX-SUSE 1097-udevd-increase-maximum-number-of-children.patch
Patch1097: 1097-udevd-increase-maximum-number-of-children.patch
%description
Systemd is a system and service manager, compatible with SysV and LSB
@ -2043,6 +2045,7 @@ cp %{SOURCE7} m4/
%patch1094 -p0
%patch1095 -p1
%patch1096 -p1
%patch1097 -p1
# remove patch backups
find -name '*.orig' -exec rm -f '{}' \+

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 27 20:30:35 UTC 2014 - rmilasan@suse.com
- Increase number of children/workers to CPU_COUNT * 256 to avoid
'maximum number of children reached' (bnc#907393).
Add 1097-udevd-increase-maximum-number-of-children.patch
-------------------------------------------------------------------
Tue Nov 25 09:44:42 UTC 2014 - rmilasan@suse.com

View File

@ -1238,6 +1238,8 @@ Patch1094: 1094-udev-avoid-magic-constants-in-kernel-cmdline-parsers.patch
Patch1095: 1095-set-ssd-disk-to-use-deadline-scheduler.patch
# PATCH-FIX-SUSE 1096-new-udev-root-symlink-generator.patch
Patch1096: 1096-new-udev-root-symlink-generator.patch
# PATCH-FIX-SUSE 1097-udevd-increase-maximum-number-of-children.patch
Patch1097: 1097-udevd-increase-maximum-number-of-children.patch
%description
Systemd is a system and service manager, compatible with SysV and LSB
@ -2038,6 +2040,7 @@ cp %{SOURCE7} m4/
%patch1094 -p0
%patch1095 -p1
%patch1096 -p1
%patch1097 -p1
# remove patch backups
find -name '*.orig' -exec rm -f '{}' \+