Reduce the number of clientmgr objects created

Previously, as a way of reducing the contention between threads a
clientmgr object would be created for each interface/IP address.

We tasks being more strictly bound to netmgr workers, this is no longer
needed and we can just create clientmgr object per worker queue (ncpus).

Each clientmgr object than would have a single task and single memory
context.
This commit is contained in:
Ondřej Surý
2021-05-22 18:12:11 +02:00
parent aad7856b8e
commit 28b65d8256
24 changed files with 264 additions and 217 deletions

View File

@@ -46,6 +46,8 @@ _setup(void **state) {
UNUSED(state);
isc__nm_force_tid(0);
result = ns_test_begin(NULL, true);
assert_int_equal(result, ISC_R_SUCCESS);
@@ -56,6 +58,8 @@ static int
_teardown(void **state) {
UNUSED(state);
isc__nm_force_tid(-1);
ns_test_end();
return (0);