From owner-freebsd-hackers Mon Jul 1 15: 6: 4 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 941B337B400; Mon, 1 Jul 2002 15:05:58 -0700 (PDT) Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF57343E0A; Mon, 1 Jul 2002 15:05:57 -0700 (PDT) (envelope-from louie@whizzo.transsys.com) Received: from whizzo.transsys.com (#6@localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.12.5/8.12.5) with ESMTP id g61M5t0L008698; Mon, 1 Jul 2002 18:05:55 -0400 (EDT) (envelope-from louie@whizzo.transsys.com) Message-Id: <200207012205.g61M5t0L008698@whizzo.transsys.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Poul-Henning Kamp Cc: Doug Barton , freebsd-hackers@FreeBSD.ORG, net@FreeBSD.ORG X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" Subject: Re: ftp and mail much slower into fbsd 4.4 vs and old BSDi References: <55379.1025557087@critter.freebsd.dk> In-reply-to: Your message of "Mon, 01 Jul 2002 22:58:07 +0200." <55379.1025557087@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 01 Jul 2002 18:05:55 -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > 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