<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14pt"><div class="" style=""><span class="" style=""><br style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span class="" style="">Looks like BIND 9.9.4b1 has support for SO_REUSEPORT as test results I get from RHEL 6.5 look better than what I have from RHEL 6.4:</span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span class="" style=""><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue',
 Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><span class="" style=""><a href="https://www.dropbox.com/s/4u1ajqoj16ar7tl/40MB_receive_buffer.png" class="" style="">https://www.dropbox.com/s/4u1ajqoj16ar7tl/40MB_receive_buffer.png</a><br class="" style=""></span></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class="">I have been wondering why the drop rate is higher in the lower range of QPS in FreeBSD (24 UDP BIND listeners) than RHEL 6.5 (16 UDP BIND listeners). Could it be that those 24 listeners are handing out
 queries too fast from the socket to worker threads on FreeBSD and those 16 listeners are emptying the receive queue at the right speed for worker threads until we hit the peak at ~200k QPS on RHEL6.5?</div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class=""><br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class="">My tests show 16 listeners on RHEL 6.4/6.5 provides the best performance on hosts with 24 and 40 CPU threads. I am not sure why 16 is such a magic number ("Sweet 16", I guess).</div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
 background-color: transparent; font-style: normal" class=""><br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size: 19px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal" class="">Look at 9.10.0b2 release notes <a href="https://kb.isc.org/article/AA-01142/81/BIND-9.10.0b2-Release-Notes.html" style="font-size: 14pt" class="">https://kb.isc.org/article/AA-01142/81/BIND-9.10.0b2-Release-Notes.html</a>, ISC will be adjusting the default setting for the number of listeners: </div><ul style="list-style-type: none; line-height: 1.6em; border: 0px; font-size: 12px; font-family: Arial, Helvetica, sans-serif" class=""><li style="margin: 0px; padding: 1px 0px; border: 0px; font-style: inherit; list-style: disc" class="">The default setting for the -U option (setting the number of UDP listeners per interface) has been adjusted to improve
 performance. [RT #35417]</li></ul><div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Arial, Helvetica, sans-serif; background-color: transparent; font-style: inherit" class=""><br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Arial, Helvetica, sans-serif; background-color: transparent; font-style: normal" class=""><span style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 19px" class="">Anyone knows what logic will be used?</span></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 14pt" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> On Thursday, April 24, 2014
 5:51 AM, Ralf Weber <dns@fl1ger.de> wrote:<br class="" style=""> </font> </div> <blockquote style="" class="">  <div class="" style="">Moin!<br class="" style=""><br class="" style="">On 23 Apr 2014, at 22:09, Jared Mauch <<a ymailto="mailto:jared@puck.nether.net" href="mailto:jared@puck.nether.net" class="" style="">jared@puck.nether.net</a>> wrote:<br class="" style="">> Despite using RHEL 6.4, I wonder if 6.5 or hand-building a 3.x series kernel might provide benefits not evident in the 2.6.3x series that RHEL ships.<br class="" style="">RHEL 6.5 has a kernel with SO_REUSEPORT support. which can improve UDP performance, but AFAIK needs support from the DNS server software. Not sure if bind supports that. Then of course you could use another DNS software.<br class="" style=""><br class="" style="">So long<br class="" style="">-Ralf<br class="" style=""><br class="" style=""><br class="" style=""></div> </blockquote>  </div> </div>  
 </div> </div></body></html>