]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
use cpu count nr or threads
authorRazvan Becheriu <razvan@isc.org>
Fri, 19 Apr 2019 19:54:33 +0000 (22:54 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 19 Apr 2019 19:54:33 +0000 (22:54 +0300)
src/bin/dhcp4/dhcp4_srv.cc
src/bin/dhcp6/dhcp6_srv.cc

index 73a8c4c536e656010879e7e69da16cd37f9d541e..4b2783c1282a77ef4b7c7884fc9899c8d9576733 100644 (file)
@@ -3741,7 +3741,7 @@ uint32_t Dhcpv4Srv::threadCount() {
         return sys_threads;
     }
     sys_threads = std::thread::hardware_concurrency();
-    return sys_threads * 4;
+    return sys_threads * 1;
 }
 
 uint32_t Dhcpv4Srv::maxThreadQueueSize() {
index d3b4025e29a7a8e70b7f427a9182ac2d79ebcd98..16faac53ea3812dcca6dfe195503eb73fc291f45 100644 (file)
@@ -3920,7 +3920,7 @@ uint32_t Dhcpv6Srv::threadCount() {
         return sys_threads;
     }
     sys_threads = std::thread::hardware_concurrency();
-    return sys_threads * 4;
+    return sys_threads * 1;
 }
 
 uint32_t Dhcpv6Srv::maxThreadQueueSize() {