[nsd-users] NSD TCP performance

Aaron Hopkins lists at die.net
Fri Nov 9 02:30:56 UTC 2007

On Thu, 8 Nov 2007, nsd at dclg.ca wrote:

> NSD always sends the two byte response size as a separate TCP packet
> (causing the requestor to send a separate ACK) to the main body of the
> request.

I reported this in May 2006.  Found in nsd-3.0.6/doc/TODO:

- From Aaron Hopkins: write tcp length and tcp data in one write operation,
   instead of multiple calls to write. Avoids Nagle algo delay in this case.
   preallocate 2 bytes in front of buffer to put them into.

There are a few other performance-related things I reported at the same time
still in the TODO that you might be interested in.

                                     -- Aaron

More information about the nsd-users mailing list