mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
[master] adjust default -U
3751. [tuning] The default setting for the -U option (setting the number of UDP listeners per interface) has been adjusted to improve performance. [RT #35417]
This commit is contained in:
parent
4a0beb64be
commit
83eecff731
4
CHANGES
4
CHANGES
@ -1,5 +1,9 @@
|
|||||||
--- 9.10.0b1 released ---
|
--- 9.10.0b1 released ---
|
||||||
|
|
||||||
|
3751. [tuning] The default setting for the -U option (setting
|
||||||
|
the number of UDP listeners per interface) has
|
||||||
|
been adjusted to improve performance. [RT #35417]
|
||||||
|
|
||||||
3750. [experimental] Partially implement EDNS EXPIRE option as described
|
3750. [experimental] Partially implement EDNS EXPIRE option as described
|
||||||
in draft-andrews-dnsext-expire-00. Retrivial of
|
in draft-andrews-dnsext-expire-00. Retrivial of
|
||||||
remaining time to expiry from slave zones is supported.
|
remaining time to expiry from slave zones is supported.
|
||||||
|
@ -646,8 +646,14 @@ create_managers(void) {
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
ns_g_udpdisp = 1;
|
ns_g_udpdisp = 1;
|
||||||
#else
|
#else
|
||||||
if (ns_g_udpdisp == 0)
|
if (ns_g_udpdisp == 0) {
|
||||||
ns_g_udpdisp = ns_g_cpus_detected;
|
if (ns_g_cpus_detected == 1)
|
||||||
|
ns_g_udpdisp = 1;
|
||||||
|
else if (ns_g_cpus_detected < 4)
|
||||||
|
ns_g_udpdisp = 2;
|
||||||
|
else
|
||||||
|
ns_g_udpdisp = ns_g_cpus_detected / 2;
|
||||||
|
}
|
||||||
if (ns_g_udpdisp > ns_g_cpus)
|
if (ns_g_udpdisp > ns_g_cpus)
|
||||||
ns_g_udpdisp = ns_g_cpus;
|
ns_g_udpdisp = ns_g_cpus;
|
||||||
#endif
|
#endif
|
||||||
|
@ -314,10 +314,12 @@
|
|||||||
Use <replaceable class="parameter">#listeners</replaceable>
|
Use <replaceable class="parameter">#listeners</replaceable>
|
||||||
worker threads to listen for incoming UDP packets on each
|
worker threads to listen for incoming UDP packets on each
|
||||||
address. If not specified, <command>named</command> will
|
address. If not specified, <command>named</command> will
|
||||||
use the number of detected CPUs. If <option>-n</option>
|
calculate a default value based on the number of detected
|
||||||
has been set to a higher value than the number of CPUs,
|
CPUs: 1 for 1 CPU, 2 for 2-4 CPUs, and the number of
|
||||||
then <option>-U</option> may be increased as high as that
|
detected CPUs divided by 2 for values higher than 4.
|
||||||
value, but no higher.
|
If <option>-n</option> has been set to a higher value than
|
||||||
|
the number of detected CPUs, then <option>-U</option> may
|
||||||
|
be increased as high as that value, but no higher.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user