2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

Set network threads CPU affintity.

This commit is contained in:
Witold Kręcicki 2018-10-18 20:47:23 +00:00
parent bd024eee57
commit f94f4bc1f4

View File

@ -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)