+16 April 2025: Wouter
+ - Increase default to `num-queries-per-thread: 2048`, when unbound is
+ compiled with libevent. It makes saturation of the task queue more
+ resource intensive and less practical. Thanks to Shiming Liu,
+ Network and Information Security Lab, Tsinghua University for the
+ report.
+
11 April 2025: Yorgos
- Merge #1265: Fix WSAPoll.
# msg-cache-slabs: 4
# the number of queries that a thread gets to service.
- # num-queries-per-thread: 1024
+ # num-queries-per-thread: 2048
# if very busy, 50% queries run to completion, 50% get timeout in msec
# jostle-timeout: 200
If more queries arrive that need servicing, and no queries can be jostled out
(see \fIjostle\-timeout\fR), then the queries are dropped. This forces
the client to resend after a timeout; allowing the server time to work on
-the existing queries. Default depends on compile options, 512 or 1024.
+the existing queries. Default depends on compile options, 512 or 2048.
.TP
.B jostle\-timeout: \fI<msec>
Timeout used when the server is very busy. Set to a value that usually
The effect is that the qps for long-lasting queries is about
(numqueriesperthread / 2) / (average time for such long queries) qps.
The qps for short queries can be about (numqueriesperthread / 2)
-/ (jostletimeout in whole seconds) qps per thread, about (1024/2)*5 = 2560
+/ (jostletimeout in whole seconds) qps per thread, about (2048/2)*5 = 5120
qps by default.
.TP
.B delay\-close: \fI<msec>
# else
/* libevent can use many sockets */
cfg->outgoing_num_ports = 4096;
- cfg->num_queries_per_thread = 1024;
+ cfg->num_queries_per_thread = 2048;
# endif
cfg->outgoing_num_tcp = 10;
cfg->incoming_num_tcp = 10;