From owner-freebsd-hackers Thu Nov 29 17:26: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from fasterix.frmug.org (s196.dhcp212-75.cybercable.fr [212.198.75.196]) by hub.freebsd.org (Postfix) with ESMTP id E631337B405 for ; Thu, 29 Nov 2001 17:26:04 -0800 (PST) Received: (from pb@localhost) by fasterix.frmug.org (8.11.6/8.11.5/pb-20010814) id fAU1Pl122377; Fri, 30 Nov 2001 02:25:47 +0100 (CET) (envelope-from pb) Message-ID: <20011130022547.A21889@fasterix.frmug.org> Date: Fri, 30 Nov 2001 02:25:47 +0100 From: Pierre Beyssac To: Josh Paetzel Cc: jc@irbs.com, freebsd-hackers@FreeBSD.ORG Subject: Re: FreeBSD performing worse than Linux? References: <20011128153817.T61580@monorchid.lemis.com> <15364.38174.938500.946169@caddis.yogotech.com> <20011129004234.A16101@exuma.irbs.com> <20011130010354.A21307@fasterix.frmug.org> <20011129184414.F522@twincat.vladsempire.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.92.8i In-Reply-To: <20011129184414.F522@twincat.vladsempire.net>; from Josh Paetzel on Thu, Nov 29, 2001 at 06:44:14PM +0000 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 On Thu, Nov 29, 2001 at 06:44:14PM +0000, Josh Paetzel wrote: > > Could you try the same in a telnet or rsh connection? I bet it will > > work. > This gives me the same 1.5megs/sec I am getting with ftp. Doesn't > matter whether I use ssh or telnet. Hmm, sorry, looks like I misunderstood John's initial mail then: I thought the ssh session was completely hung. Having said that, I looked more closely at the TCP session, and it looks like the transfer stops simply when the client's receive window is full. Looks quite normal to me. Client announces a window size of 17376: 21:41:46.418208 client.4427 > server.22: . ack 11489 win 17376 (DF) [tos 0x10] Server sends 1448 bytes: 21:41:47.460903 server.22 > client.4427: . 11489:12937(1448) ack 144 win 17376 (DF) [tos 0x10] Client announces a window size of 15928 (17376 - 1448): 21:41:47.569133 client.4427 > server.22: . ack 12937 win 15928 (DF) [tos 0x10] Client consumes some data internally then increases the window size by 1448 bytes (17376 - 15928): 21:41:49.001039 client.4427 > server.22: P 144:192(48) ack 12937 win 17376 (DF) [tos 0x10] Server sends just enough data to fill the window again: 21:41:49.001073 server.22 > client.4427: . 28049:29497(1448) ack 192 win 17328 (DF) [tos 0x10] This is consistent with the value in the backlog shown by netstat, What is the value of net.inet.tcp.sendspace on the server? It's 16K on -stable, it should be very interesting to try and increase it to 32K or 64K, it makes a lot difference on high bw*delay links. Pierre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message