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, (const struct sockaddr *)&ss, slen)) > + warn("fail to connect");
What's the benefit of this? I've never seen an application do this; wouldn't it be better to improve the PCB cache so it caught this case (which seems the usual way UDP applications behave) instead? -d