2015-02-13 10:43:21 +01:00
|
|
|
---
|
|
|
|
src/udev/udevd.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
2015-12-02 16:45:15 +01:00
|
|
|
Index: systemd-227/src/udev/udevd.c
|
2014-11-28 09:06:54 +01:00
|
|
|
===================================================================
|
2015-12-02 16:45:15 +01:00
|
|
|
--- systemd-227.orig/src/udev/udevd.c
|
|
|
|
+++ systemd-227/src/udev/udevd.c
|
|
|
|
@@ -568,7 +568,7 @@ static void event_run(Manager *manager,
|
2014-11-28 09:06:54 +01:00
|
|
|
|
2015-06-23 14:56:50 +02:00
|
|
|
if (hashmap_size(manager->workers) >= arg_children_max) {
|
2015-02-13 10:43:21 +01:00
|
|
|
if (arg_children_max > 1)
|
2015-06-23 14:56:50 +02:00
|
|
|
- log_debug("maximum number (%i) of children reached", hashmap_size(manager->workers));
|
|
|
|
+ log_error("maximum number (%i) of children reached", hashmap_size(manager->workers));
|
2014-11-28 09:06:54 +01:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2015-12-02 16:45:15 +01:00
|
|
|
@@ -1672,7 +1672,7 @@ int main(int argc, char *argv[]) {
|
2015-02-13 10:43:21 +01:00
|
|
|
arg_children_max = 8;
|
2014-11-28 09:06:54 +01:00
|
|
|
|
2015-12-02 16:45:15 +01:00
|
|
|
if (sched_getaffinity(0, sizeof(cpu_set), &cpu_set) == 0)
|
2015-06-23 14:56:50 +02:00
|
|
|
- arg_children_max += CPU_COUNT(&cpu_set) * 2;
|
2015-02-13 10:43:21 +01:00
|
|
|
+ arg_children_max += CPU_COUNT(&cpu_set) * 64;
|
2015-06-23 14:56:50 +02:00
|
|
|
|
|
|
|
log_debug("set children_max to %u", arg_children_max);
|
2015-12-02 16:45:15 +01:00
|
|
|
}
|