[PATCH] Using TCP_NODELAY unconditionally

Kevin Steves stevesk at pobox.com
Sun Jan 20 03:46:53 EST 2002


On Sat, 19 Jan 2002, Tobias Ringstrom wrote:
:When analyzing the performance of sftp some weeks ago, I discovered that
:the cause of the horrible performance was the use of the Nagle algorithm
:on the ssh TCP connection, i.e. TCP_NODELAY was not used.
:
:I propose that the following patch is applied, enabling TCP_NODELAY for
:both ssh and sshd, unconditionally.  Since the SSH channel is packet
:bases, if we want to reduce the amount of data on the wire, we should use
:a Nagle-type algorithm before making packets of the data.  It is more
:efficient to make one SSH packet of two small data "chunks" than to make
:two packets of the data chunks, even if both fit within one TCP packet.

can you provide some tcpdump traces to show nagle delays during sftp?




More information about the openssh-unix-dev mailing list