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