]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add per-thread sharded histograms for heavy loads
authorTony Finch <fanf@isc.org>
Thu, 16 Mar 2023 09:46:15 +0000 (09:46 +0000)
committerTony Finch <dot@dotat.at>
Mon, 3 Apr 2023 11:08:05 +0000 (12:08 +0100)
commitbc2389b8282625d08c44d030769af207d2cce7a8
tree7d21f565151b63d6f52018560d9e636a2d0b320b
parent82213a48cfe1703a55ca3c7eec907daf14fecc33
Add per-thread sharded histograms for heavy loads

Although an `isc_histo_t` is thread-safe, it can suffer
from cache contention under heavy load. To avoid this,
an `isc_histomulti_t` contains a histogram per thread,
so updates are local and low-contention.
lib/isc/histo.c
lib/isc/include/isc/histo.h
lib/isc/include/isc/tid.h
lib/isc/loop.c
lib/isc/tid.c