From: Witold Kręcicki Date: Thu, 18 Oct 2018 20:47:23 +0000 (+0000) Subject: Set network threads CPU affintity. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63d17abae11668f2080a712e858b7b782baf9d60;p=thirdparty%2Fbind9.git Set network threads CPU affintity. --- diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index e3952ba3720..1b06919ed16 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -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)