From owner-freebsd-net@FreeBSD.ORG Tue Jan 3 10:09:50 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2D4416A41F for ; Tue, 3 Jan 2006 10:09:49 +0000 (GMT) (envelope-from zhang@ist.osaka-u.ac.jp) Received: from terra.ane.cmc.osaka-u.ac.jp (terra.ane.cmc.osaka-u.ac.jp [133.1.74.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B39243D78 for ; Tue, 3 Jan 2006 10:09:46 +0000 (GMT) (envelope-from zhang@ist.osaka-u.ac.jp) Received: from [192.168.1.75] (muse.ane.cmc.osaka-u.ac.jp [133.1.74.180]) (authenticated bits=0) by terra.ane.cmc.osaka-u.ac.jp (8.12.10/8.12.10) with ESMTP id k03A9hsN014992 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Jan 2006 19:09:44 +0900 Message-ID: <43BA4D6F.6060706@ist.osaka-u.ac.jp> Date: Tue, 03 Jan 2006 19:09:51 +0900 From: Zongsheng Zhang User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Vince References: <43B11DF3.8070501@ist.osaka-u.ac.jp> <43B7CC3C.4080606@roq.com> In-Reply-To: <43B7CC3C.4080606@roq.com> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: tcp performance X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2006 10:09:50 -0000 I have confirmed that there is no problem with settings of Dummynet. When Host-A/B uses Linux, the throughput of RTT=20ms (using Iperf) is same as that of RTT=0ms. Host-A/B use FreeBSD v6.0 release. Does anyone have experience/suggestion for achieving high throughput with FreeBSD? Michael Vince wrote: > Zongsheng Zhang wrote: > >> Hi, *, >> >> For testing throughput of a TCP connection, the following topology is >> used: >> Host-A ---GB Ethernet--- Dummynet ---GB Ethernet--- Host-B >> >> Host-A/B use FreeBSD v6.0. Sysctl parameters of Host-A/B are: >> kern.ipc.nmbclusters=32768 >> net.inet.tcp.inflight.enable=0 >> net.inet.tcp.sendspace=2097152 # 2M >> net.inet.tcp.recvspace=2097152 # 2M >> >> When RTT in Dummynet is set to 0ms, the throughput (A--B) is about >> 900Mbps. The buffer size is enough to fill a link bandwidth=800Mbps, and >> RTT=20ms. However, if RTT is set to 20ms, the throughput is only about >> 500Mbps. >> >> Are there other parameters which are necessary to adjust? Does anyone >> have suggestion for high throughput? >> >> Thanks in advance. >> >> >> > What are you following on your hosts? Release/stable or current? I only > use just release or stable. > > For your middle router try net.inet.ip.fastforwarding or net.isr.direct > but not at the same time, then try on top enabling polling. > Personally I found enabling polling worked best combined with > net.inet.ip.fastforwarding. > > Andre Oppermann claimed in a post just recently he gets best performance > using just net.inet.ip.fastforwarding without polling but that might be > for just -current, I am not sure. > > You could also try using current, but if I had to guess you already are? > > Regards, > Mike > > -- Zongsheng Zhang zhang@ist.osaka-u.ac.jp