]> git.ipfire.org Git - thirdparty/bind9.git/commit
chg: dev: Add low contention stats counter
authorAlessio Podda <alessio@isc.org>
Thu, 26 Mar 2026 10:53:29 +0000 (10:53 +0000)
committerAlessio Podda <alessio@isc.org>
Thu, 26 Mar 2026 10:53:29 +0000 (10:53 +0000)
commit1e295b60f648d92eac69109a35c8c164a6e9f4ff
tree0115deed9f4bb27e781022aa3785abfcff4d1566
parent9911743d6ac0eec6a2f7e8687fc47ac4a5d6f62c
parent70b65648ac694ac25192be4c60cf01657f575507
chg: dev: Add low contention stats counter

In the current statistics counter implementation, the statistics are
backed by an array of counters, which are updated via atomic operations.
This leads to contention, especially on high core count
machines.

This commit introduces a new isc_statsmulti_t counter that keeps a
separate array per thread. These counters are then aggregated only when
statistics are queried, shifting work off the critical path.

These changes lead to a ~2% improvement in perflab.

Merge branch 'alessio/statsmulti-v2' into 'main'

See merge request isc-projects/bind9!11036