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