Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jul 2002 18:05:55 -0400
From:      "Louis A. Mamakos" <louie@TransSys.COM>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>
Cc:        Doug Barton <DougB@FreeBSD.ORG>, freebsd-hackers@FreeBSD.ORG, net@FreeBSD.ORG
Subject:   Re: ftp and mail much slower into fbsd 4.4 vs and old BSDi 
Message-ID:  <200207012205.g61M5t0L008698@whizzo.transsys.com>
In-Reply-To: Your message of "Mon, 01 Jul 2002 22:58:07 %2B0200." <55379.1025557087@critter.freebsd.dk> 
References:  <55379.1025557087@critter.freebsd.dk> 

next in thread | previous in thread | raw e-mail | index | archive | help

> 
> Yes, I can attest to this an I belive it is actually the case on both
> -current and -releng4 that disabling newreno improves TCP performance.
> 
> I belive running an X11 application or scp(1) over a wavelan is a very
> good test-bed for this issue.
> 
> -- 
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20

I find this patch also improves performance of SSH on most network
media.  Why so many applications go to the trouble to disable
Nagle's algorithm is beyond me.  I suspect the socket option has
too seductive of a name.

louie


Index: packet.c
===================================================================
RCS file: /a/cvs/src/crypto/openssh/packet.c,v
retrieving revision 1.1.1.1.2.4
diff -u -r1.1.1.1.2.4 packet.c
--- packet.c    28 Sep 2001 01:33:34 -0000      1.1.1.1.2.4
+++ packet.c    2 Apr 2002 18:26:41 -0000
@@ -1281,9 +1281,11 @@
                                error("setsockopt IPTOS_LOWDELAY: %.100s",
                                    strerror(errno));
                }
+#if 0
                if (setsockopt(connection_in, IPPROTO_TCP, TCP_NODELAY, (void *) &on,
                    sizeof(on)) < 0)
                        error("setsockopt TCP_NODELAY: %.100s", strerror(errno));
+#endif
        } else if (packet_connection_is_ipv4()) {
                /*
                 * Set IP options for a non-interactive connection.  Use


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207012205.g61M5t0L008698>