]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Set network threads CPU affintity.
authorWitold Kręcicki <wpk@isc.org>
Thu, 18 Oct 2018 20:47:23 +0000 (20:47 +0000)
committerWitold Kręcicki <wpk@isc.org>
Thu, 15 Nov 2018 08:21:17 +0000 (08:21 +0000)
lib/isc/unix/socket.c

index 6d3c68ee21f46f54a99af4768ec5182ffb7e3766..97e3526f92b46f96e26118a6bea3fa1e12619e91 100644 (file)
@@ -3469,6 +3469,9 @@ netthread(void *uap) {
        (void)manager;
        bool done;
        int cc;
+       if (manager->nthreads > 1) {
+               isc_thread_setaffinity(thread->threadid);
+       }
 #ifdef USE_KQUEUE
        const char *fnname = "kevent()";
 #elif defined (USE_EPOLL)