[Unbound-users] Packets lost when multi threading

W.C.A. Wijngaards wouter at nlnetlabs.nl
Fri Dec 7 11:38:27 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Leo,

On 12/07/2012 12:20 PM, Leo Baltus wrote:
> Op 07/12/2012 om 11:50:04 +0100, schreef W.C.A. Wijngaards:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> Hi Leo,
>> 
>> On 12/07/2012 11:29 AM, Leo Baltus wrote:
>>> Hi,
>>> 
>>> When I run unbound multi-threaded perf keeps reporting
>>> 'Packets lost', but when it runs single threaded it does not.
>>> 
>>> $ perf -d 10 -a 'www.omroep.nl IN A' 2a02:458:101:31::34 qps: 
>>> 29262.9 qps: 31986.4 qps: 32167.5 qps: 32479.7 qps: 33064.3
>>> qps: 32174.4 qps: 31408.1 qps: 35887.4 qps: 37471.3 qps:
>>> 35364.5 overall time: 	10.0001 sec Packets lost: 	732
>>> 0(NOERROR): 	331249 replies average qps: 	33124.5
>>> 
>>> This is unbound-1.4.18 with openssl-1.0.0j, ldns-1.6.16 and 
>>> libevent-2.0.21-stable running on a linux-2.6.27.59 kernel.
>>> 
>>> It even reports this when perf is run on the host running
>>> unbound.
>>> 
>>> Is this a known issue?
>> 
>> No.  Can you try setting so-rcvbuf higher (4m) ?  It may be lost 
>> simply because it is out of buffers.  There is nothing intrinsic
>> in unbound that makes it drop packets in this setup; it must be
>> the OS.
>> 
> 
> It makes no difference.
> 
> here's the multithreading part of my unbound.conf:
> 
> num-threads: 4 outgoing-range: 8192 num-queries-per-thread: 4096 
> so-rcvbuf: 4m
> 
> Also 'netstat -su' does not report any increments on 'receive
> errors' or RcvbufErrors.

Perhaps perf fails to count them?  They may still be in transit, and
perf stops abruptly, counts them as lost?  tcpdump may be able to
count the number of packets that transited and where those 732 packets
went?

Best regards,
   Wouter


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQIcBAEBAgAGBQJQwdUzAAoJEJ9vHC1+BF+NyE0QAJ7tJ7x0xlo2PjK2/YYFOkX3
LWYJ1YTctavW/ybOzJW8JxkQb0iaHIVTpQrJO6fcziRDTgoianExqX4NZM/KS4Mp
34JshNhak6gNoYG3F9LRaYuA/1fDWgaeEv8wxzE0YeXQOuDtdWAPyMlhl9BzSRz1
60+gxbdrk7x7ttWOoJkqEshjp1EqBHUF4+5aEE6YVaz9fqDF0gSNLWfyQvyeYGX7
CB+Um2bWzox/MTgZG3R5EhmTVkSebBarIGPMP4KJMYrlG8jjjlbM1VRO52o7kTGG
AAgXVvJIMeMA51XgMPgMdxCJncJR928AlsZz60H4hNVJDNGjwFLztcZ/SM2+yXdU
za6qKKSkpxAmZ8bF73ZBs5dVCgtaT6MljMExcsbO1USEOzQEFdAmqoPXqNdtJ75E
yye6198UyWFU93GqcViHWzMAAoewmtomgt17uWbsNReijmXbDHofP8hYHwuNIR3z
A4uAV1kjYUtjjNllL6UFXbSvGj32l8xSYGBrg32v1n78Pg1Sq0qLVKkalBOzWIov
wvNm521mZO3kdx2Lsq5tHsC8PdtW1j2uLWQACTmGYE9w2Uq/ODHhbEl0AZFpxoIr
swpdtRhoGb9wuo0x/qjMW+AYPuRVpCdIUkMR6PLZf3JmvQuHyH7/9tg5k14k8cTj
NPIWgky8K8XxGwPjDDYU
=pJov
-----END PGP SIGNATURE-----



More information about the Unbound-users mailing list