Re: reduce the number of missed PCB cache with tcpbench -su

2014-09-01 Thread Mike Belopuhov
On 29 August 2014 18:01, Damien Miller wrote: > What's the benefit of this? This creates a UDP PCB per connection. Otherwise we always rely on matching the wildcard PCB. > I've never seen an application do this; I doubt that. However, things like NTP or DNS servers usually expect requests fro

Re: reduce the number of missed PCB cache with tcpbench -su

2014-08-31 Thread Mike Belopuhov
Daniel, don't reply anything to Damien just yet. Can you please run a simple test on Monday. Try "tcpbench -u -n 2 " (as in multi- connection test) without your patch and then with the patch and see if behavior is changed. Thanks On 29 August 2014 18:01, Damien Miller wrote: > On Fri, 29 Aug

Re: reduce the number of missed PCB cache with tcpbench -su

2014-08-29 Thread Damien Miller
On Fri, 29 Aug 2014, Daniel Jakots wrote: > Hi, > > When running tcpbench -su, a lot of them are counted as "missed PCB > cache". ... > + n = recvfrom(fd, ptb->dummybuf, ptb->dummybuf_len, 0, > + (struct sockaddr *)&ss, &slen); > + if (n > 0 && connect(fd,

reduce the number of missed PCB cache with tcpbench -su

2014-08-29 Thread Daniel Jakots
Hi, When running tcpbench -su, a lot of them are counted as "missed PCB cache". I reboot the computer then netstat -sp udp gives udp: 10 datagrams received 0 with incomplete header 0 with bad data length field 0 with bad checksum 0 with no checksum