]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Set network threads affintiy
authorWitold Kręcicki <wpk@isc.org>
Thu, 18 Oct 2018 20:47:23 +0000 (20:47 +0000)
committerWitold Kręcicki <wpk@isc.org>
Wed, 24 Oct 2018 07:10:20 +0000 (07:10 +0000)
lib/isc/unix/socket.c

index 8c831334586d6527cb0118569ab30abaddae5c7c..10db7d0aec8c7dce05a3a8d6fd56a09df89339d9 100644 (file)
@@ -3571,6 +3571,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)