From owner-freebsd-stable@FreeBSD.ORG Tue Jul 12 13:11:56 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCEA516A41C; Tue, 12 Jul 2005 13:11:56 +0000 (GMT) (envelope-from alexis@virgin.ww.net) Received: from virgin.ww.net (virgin.kolo.net [216.218.215.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91DD343D4C; Tue, 12 Jul 2005 13:11:56 +0000 (GMT) (envelope-from alexis@virgin.ww.net) Received: from virgin.ww.net (localhost [127.0.0.1]) by virgin.ww.net (8.13.1/8.13.1) with ESMTP id j6CDBhXf073286; Tue, 12 Jul 2005 15:11:43 +0200 (CEST) (envelope-from alexis@virgin.ww.net) Received: (from alexis@localhost) by virgin.ww.net (8.13.1/8.13.1/Submit) id j6CDBgNC073285; Tue, 12 Jul 2005 15:11:42 +0200 (CEST) (envelope-from alexis) Date: Tue, 12 Jul 2005 15:11:42 +0200 From: Alexis Yushin To: Danny Braniss Message-ID: <20050712131142.GA73214@virgin.ww.net> References: <20050712.185304.32727687.Noritoshi@Demizu.ORG> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: David Malone , freebsd-net@freebsd.org, freebsd-stable@freebsd.org, Noritoshi Demizu , Luigi Rizzo Subject: Re: tcp troughput weirdness X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2005 13:11:56 -0000 Hmm, Recently I've also been seeing less than what I'd expect tcp throughput on FreeBSD 5.4R machines. I've got six 5.4R boxes with dual Gigabit em interfaces. netperf gives me: Recv Send Send Socket Socket Message Elapsed Size Size Size Time Throughput bytes bytes bytes secs. 10^6bits/sec 65536 131072 131072 10.01 551.10 However scp/ftp etc doen't go above 200Mbit. I'd expect higher numbers? Alexis ps I've tried all of the sysctl and mtu tweakings... No change. Interesting is that netperf lo0 gives me about 2.5Gbit, but scp performs at about 128Mbit while system CPU load is only 20%. What shall I tweak further? On Tue, Jul 12, 2005 at 02:07:38PM +0300, Danny Braniss wrote: > > > combining > > > sysctl net.inet.tcp.sendspace=131072 > > > and > > > sysctl net.inet.tcp.inflight.enable=0 > > > > > > did the trick! > > > > Congratulations! But I wonder why the throughput of FreeBSD=>Linux > > was almost equal to that of Linux=>FreeBSD. If the settings above > > improves the throughput of FreeBSD=>FreeBSD, the throughput of > > FreeBSD=>Linux would also be improved with them. Is it improved? > > > i did the sysctl on the client/sender :-) > > > > now can someone remind me what inflight does? > > > > In my understanding, it tries to estimate bandwidth-delay product and > > tries to avoid injecting too much data segments into networks. > > So, if it underestimates bandwidth-delay product, throughtput may be > > reduced. > > > > Regards, > > Noritoshi Demizu > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"