bind9/tests/dns
Ondřej Surý 915aa590b6
Make isc_mem_isovermem() probabilistic
Replace the hysteretic hi_water/lo_water switch with a stochastic
check: always false below lo_water, always true at or above hi_water,
linearly ramped probability in between.  This spreads cache cleaning
across many inserts instead of triggering a thundering herd once the
hi_water mark is crossed (which causes every addrdataset to enter the
LRU purge path simultaneously and serializes lookups behind the node
write locks).

The is_overmem atomic and its stores are no longer needed and are
removed.  The existing tests that asserted specific hysteretic state
transitions are simplified to check only the deterministic boundaries.

(cherry picked from commit ee24d2a1c3361dcc1c48fb29bb2e0b91bc3405e8)
2026-05-07 13:21:59 +02:00
..
comparekeys Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
testdata Properly adjust the srcdir vs builddir paths 2022-06-01 17:45:34 +02:00
testkeys Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
.gitignore Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
acl_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
db_test.c Support compilation with cmocka 2.0.0+ 2026-01-07 11:21:28 +01:00
dbdiff_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
dbiterator_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dbversion_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dh_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dispatch_test.c Support compilation with cmocka 2.0.0+ 2026-01-07 11:21:28 +01:00
dns64_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
dnstap_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
dst_test.c Use clang-format-20 to update formatting 2025-06-25 13:59:44 +10:00
geoip_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
Kdh.+002+18602.key Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
keytable_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
Krsa.+008+29238.key Check if RSASHA1 is supported by the OS 2022-08-10 17:26:29 +10:00
Makefile.am Detect uncleared libcrypto errors in rdata processing 2023-09-01 14:21:49 +10:00
master_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
mkraw.pl Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
name_test.c Use clang-format-20 to update formatting 2025-06-25 13:59:44 +10:00
nsec3_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
nsec3param_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
private_test.c Preserve brackets around string concatenation 2025-06-25 13:59:44 +10:00
rbt_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
rbtdb_test.c Make isc_mem_isovermem() probabilistic 2026-05-07 13:21:59 +02:00
rdata_test.c Test maximum length NSEC3 hash detection 2026-02-24 16:42:19 +01:00
rdataset_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
rdatasetstats_test.c Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
resolver_test.c Support compilation with cmocka 2.0.0+ 2026-01-07 11:21:28 +01:00
rsa_test.c Reject RSA DNSKEYs with oversize public exponents at parse time 2026-04-30 12:20:30 +02:00
sigs_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
time_test.c Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
tsig_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00
update_test.c standardize CHECK and RETERR macros 2025-12-03 19:18:12 -08:00
zonemgr_test.c Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:36:03 +02:00
zt_test.c Remove redundant parentheses from the return statement 2024-11-19 16:06:16 +01:00