]> git.ipfire.org Git - thirdparty/bind9.git/commit
Always use the number of CPUS for resolver->ntasks
authorEvan Hunt <each@isc.org>
Sun, 8 May 2022 03:58:19 +0000 (20:58 -0700)
committerOndřej Surý <ondrej@isc.org>
Thu, 19 May 2022 07:27:33 +0000 (09:27 +0200)
commit6936db2f59a1e63ebec572e7b7ae7776993e4cfe
treef0531addbb881ac36b69131dde077dea77a8f193
parent857f3bede37ccb419dac3816a0f96fa490af7d92
Always use the number of CPUS for resolver->ntasks

Since the fctx hash table is now self-resizing, and resolver tasks are
selected to match the thread that created the fetch context, there
shouldn't be any significant advantage to having multiple tasks per CPU;
a single task per thread should be sufficient.

Additionally, the fetch context is always pinned to the calling netmgr
thread to minimize the contention just to coalesced fetches - if two
threads starts the same fetch, it will be pinned to the first one to get
the bucket.
bin/named/server.c
lib/dns/client.c
lib/dns/include/dns/resolver.h
lib/dns/include/dns/view.h
lib/dns/resolver.c
lib/dns/tests/resolver_test.c
lib/dns/view.c
lib/isc/include/isc/netmgr.h
lib/isc/netmgr/netmgr-int.h