OpenSSH
[Top] [All Lists]

Re: Nagle & delayed ACK strike again

To: rick.jones2@hp.com
Subject: Re: Nagle & delayed ACK strike again
From: Miklos Szeredi <miklos@szeredi.hu>
Date: Thu, 21 Dec 2006 00:31:59 +0100
Cc: openssh-unix-dev@mindrot.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <4589B1FC.8070709@hp.com> (message from Rick Jones on Wed, 20 Dec 2006 13:58:20 -0800)
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
References: <E1Gx45V-00052p-00@dorka.pomaz.szeredi.hu> <4589B1FC.8070709@hp.com>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
> > This time the problem is that the ssh server only sets TCP_NODELAY for
> > interactive (tty) sessions or if X11 forwarding is enabled.  Neither
> > of which are true for the use of the sftp subsystem.  This hurts
> > upload performance for sftp/sshfs.
> > 
> > I'm not sure why this hasn't cropped up earlier.  Were there any
> > TCP_NODELAY related changes in the sshd code recently?
> > 
> > Is there a reason not to enable NODELAY unconditionally?  Any reason
> > why the server end is different from the client (where NODELAY is now
> > uncoditionally enabled) in this respect?
> 
> I suspect that past discussions might be interesting reads - should be 
> an an archive somewhere I suspect.
> 
> My personal stance is that 99 times out of ten, if an end-user 
> application speeds-up when it sets TCP_NODELAY, it implies the end-user 
> application is broken and sending "logically associated" data in 
> separate send calls.

You tell me, is X protocol broken?  Is SFTP broken?  I don't think
SFTP more broken than any other network fs protocol.  The slowdown
happens with a stream of WRITE requests and replies.  If the requests
weren't acknowledged, there wouldn't be any trouble, but
acknowledgements do make sense for synchronous operation.

You could probably design a protocol that weren't prone to this sort
of problem, but likely that would make it more complex.

Miklos
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>