]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Test larger quantum and more threads NG-networkonly
authorWitold Kręcicki <wpk@isc.org>
Tue, 7 Aug 2018 10:51:49 +0000 (12:51 +0200)
committerWitold Kręcicki <wpk@isc.org>
Fri, 10 Aug 2018 16:03:57 +0000 (18:03 +0200)
bin/named/main.c
lib/isc/task.c

index c9c5503c5ded99ec5f815108524fe1fd1016686e..fde272acbd027a5f46538099c6c93fa521f4300c 100644 (file)
@@ -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;
index 1d03e79127330c1ab5033d76a718434517736191..8e69806b80cccb3f659d6304a7fa46ca92a5dcde 100644 (file)
@@ -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))
 
 /*%