]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use DNS_QPGC_MAYBE instead of DNS_QPGC_ALL for more realistic load
authorOndřej Surý <ondrej@isc.org>
Thu, 8 Feb 2024 07:30:38 +0000 (08:30 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 8 Feb 2024 07:33:36 +0000 (08:33 +0100)
In the benchmarks, DNS_QPGC_ALL was trying to hard to cleanup QP
and this was slowing down QP too much.  Use DNS_QPGC_MAYBE instead
that we are going to use anyway for more realistic load - this also
shows the memory usage matching the real loads.

tests/bench/load-names.c

index f4562aa6db2ce5db86cf8966f91006d2d9606cd3..bf412223112bfe3fe20419c0f29a8b117f91df06 100644 (file)
@@ -374,7 +374,7 @@ add_qp(void *qp, size_t count) {
 
 static void
 sqz_qp(void *qp) {
-       dns_qp_compact(qp, DNS_QPGC_ALL);
+       dns_qp_compact(qp, DNS_QPGC_MAYBE);
 }
 
 static isc_result_t