From owner-freebsd-net@FreeBSD.ORG Sun Jan 1 12:34:04 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 4CFEA16A41F for ; Sun, 1 Jan 2006 12:34:04 +0000 (GMT) (envelope-from mv@roq.com) Received: from p4.roq.com (ns1.ecoms.com [207.44.130.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4DA143D5C for ; Sun, 1 Jan 2006 12:34:03 +0000 (GMT) (envelope-from mv@roq.com) Received: from p4.roq.com (localhost.roq.com [127.0.0.1]) by p4.roq.com (Postfix) with ESMTP id A9F694CF4C; Sun, 1 Jan 2006 12:34:21 +0000 (GMT) Received: from [192.168.0.2] (ppp157-158.static.internode.on.net [150.101.157.158]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by p4.roq.com (Postfix) with ESMTP id C5F6B4CF46; Sun, 1 Jan 2006 12:34:20 +0000 (GMT) Message-ID: <43B7CC3C.4080606@roq.com> Date: Sun, 01 Jan 2006 23:34:04 +1100 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.12) Gecko/20051208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zongsheng Zhang References: <43B11DF3.8070501@ist.osaka-u.ac.jp> In-Reply-To: <43B11DF3.8070501@ist.osaka-u.ac.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP 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: Sun, 01 Jan 2006 12:34:04 -0000 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