From owner-freebsd-hackers Sat Dec 29 9:42: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tao.org.uk (genius.tao.org.uk [212.135.162.51]) by hub.freebsd.org (Postfix) with ESMTP id B861837B421 for ; Sat, 29 Dec 2001 09:41:43 -0800 (PST) Received: by tao.org.uk (Postfix, from userid 100) id E4E96FF; Sat, 29 Dec 2001 17:41:33 +0000 (GMT) Date: Sat, 29 Dec 2001 17:41:33 +0000 From: Josef Karthauser To: Tomas Svensson Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD performing worse than Linux? Message-ID: <20011229174133.A98245@tao.org.uk> Mail-Followup-To: Josef Karthauser , Tomas Svensson , freebsd-hackers@FreeBSD.ORG References: <20011228192736.A22545@simba.systemteknik.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011228192736.A22545@simba.systemteknik.net>; from tsn@gbdev.net on Fri, Dec 28, 2001 at 07:27:36PM +0100 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 --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 28, 2001 at 07:27:36PM +0100, Tomas Svensson wrote: > This just verifies what I said weeks ago. >=20 > On the client side: >=20 > ## several packets are lost here due to congestion, thanks to > TCP_NODELAY: No. These packets aren't lost to congestion. I can reproduce this pattern every time. There's no random packet loseness about it. You are right that switching TCP_NODELAY off does fix it, but it's not caused by congestion I can assure you. Joe Index: packet.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/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 29 Dec 2001 17:33:40 -0000 @@ -1281,9 +1281,11 @@ error("setsockopt IPTOS_LOWDELAY: %.100s", strerror(errno)); } +#if NEVER 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 --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjwuAE0ACgkQXVIcjOaxUBZYwwCgl2F4wZjV3QXd9tFN4hbcwXZd AJkAnip3NHv+ulKl4/OPX2wYNvGkafPf =4AfR -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message