Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2001 17:41:33 +0000
From:      Josef Karthauser <joe@tao.org.uk>
To:        Tomas Svensson <tsn@gbdev.net>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: FreeBSD performing worse than Linux?
Message-ID:  <20011229174133.A98245@tao.org.uk>
In-Reply-To: <20011228192736.A22545@simba.systemteknik.net>; from tsn@gbdev.net on Fri, Dec 28, 2001 at 07:27:36PM %2B0100
References:  <20011228192736.A22545@simba.systemteknik.net>

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

--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




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