From: Witold Kręcicki Date: Wed, 22 Aug 2018 13:41:28 +0000 (+0200) Subject: Use the same number of UDP dispatchers as CPUs. X-Git-Tag: v9.13.4~20^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89b181721195a3533742ce344a45dc6312626cef;p=thirdparty%2Fbind9.git Use the same number of UDP dispatchers as CPUs. --- diff --git a/bin/named/main.c b/bin/named/main.c index 6bdc665ba10..09eec2a9ef2 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -793,10 +793,7 @@ create_managers(void) { named_g_udpdisp = 1; #else if (named_g_udpdisp == 0) { - if (named_g_cpus_detected == 1) - named_g_udpdisp = 1; - else - named_g_udpdisp = named_g_cpus_detected - 1; + named_g_udpdisp = named_g_cpus_detected; } if (named_g_udpdisp > named_g_cpus) named_g_udpdisp = named_g_cpus;