mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
Set network threads CPU affintity.
This commit is contained in:
@@ -3469,6 +3469,9 @@ netthread(void *uap) {
|
|||||||
(void)manager;
|
(void)manager;
|
||||||
bool done;
|
bool done;
|
||||||
int cc;
|
int cc;
|
||||||
|
if (manager->nthreads > 1) {
|
||||||
|
isc_thread_setaffinity(thread->threadid);
|
||||||
|
}
|
||||||
#ifdef USE_KQUEUE
|
#ifdef USE_KQUEUE
|
||||||
const char *fnname = "kevent()";
|
const char *fnname = "kevent()";
|
||||||
#elif defined (USE_EPOLL)
|
#elif defined (USE_EPOLL)
|
||||||
|
Reference in New Issue
Block a user