forked from pool/systemd
d8a7054538
- Change the maximum number of children from CPU_COUNT * 256 to CPU_COUNT * 64. Update 1097-udevd-increase-maximum-number-of-children.patch - Change the maximum number of children from CPU_COUNT * 256 to CPU_COUNT * 64. Update 1097-udevd-increase-maximum-number-of-children.patch OBS-URL: https://build.opensuse.org/request/show/263343 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=827
23 lines
930 B
Diff
23 lines
930 B
Diff
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) * 64;
|
|
}
|
|
}
|
|
log_debug("set children_max to %u", children_max);
|