]> 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>
Tue, 6 Nov 2018 11:25:09 +0000 (11:25 +0000)
lib/isc/unix/socket.c

index e3952ba372021d1fd069171b0c73686d26fab39e..1b06919ed165fb8767a7f8a04ce37146d93f2433 100644 (file)
@@ -3465,6 +3465,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)