From: Witold Kręcicki Date: Tue, 7 Aug 2018 10:51:49 +0000 (+0200) Subject: Test larger quantum and more threads X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e38c8b9aee61658b14c4bdc80082023002bb8148;p=thirdparty%2Fbind9.git Test larger quantum and more threads --- diff --git a/bin/named/main.c b/bin/named/main.c index c9c5503c5de..fde272acbd0 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -773,7 +773,7 @@ create_managers(void) { INSIST(named_g_cpus_detected > 0); if (named_g_cpus == 0) - named_g_cpus = named_g_cpus_detected; + named_g_cpus = named_g_cpus_detected * 1.5; isc_log_write(named_g_lctx, NAMED_LOGCATEGORY_GENERAL, NAMED_LOGMODULE_SERVER, ISC_LOG_INFO, "found %u CPU%s, using %u worker thread%s", @@ -787,7 +787,7 @@ create_managers(void) { 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; diff --git a/lib/isc/task.c b/lib/isc/task.c index 1d03e791273..8e69806b80c 100644 --- a/lib/isc/task.c +++ b/lib/isc/task.c @@ -159,7 +159,7 @@ isc__taskmgr_resume(isc_taskmgr_t *manager0); #define DEFAULT_TASKMGR_QUANTUM 10 -#define DEFAULT_DEFAULT_QUANTUM 5 +#define DEFAULT_DEFAULT_QUANTUM 30 #define FINISHED(m) ((m)->exiting && EMPTY((m)->tasks)) /*%