From owner-freebsd-arm@FreeBSD.ORG Tue Sep 9 14:06:01 2008 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DD9C1065675 for ; Tue, 9 Sep 2008 14:06:01 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 94C148FC0A for ; Tue, 9 Sep 2008 14:06:00 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id m89DoRD4011704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 9 Sep 2008 15:50:28 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by cicely5.cicely.de (8.14.2/8.14.2) with ESMTP id m89DoMqp000291 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Sep 2008 15:50:22 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id m89DoLMv005079; Tue, 9 Sep 2008 15:50:21 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id m89DoLLj005078; Tue, 9 Sep 2008 15:50:21 +0200 (CEST) (envelope-from ticso) Date: Tue, 9 Sep 2008 15:50:21 +0200 From: Bernd Walter To: Jacques Fourie Message-ID: <20080909135021.GR1147@cicely7.cicely.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.067, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: freebsd-arm@freebsd.org Subject: Re: Routing benchmarks X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2008 14:06:01 -0000 On Tue, Sep 09, 2008 at 03:33:30PM +0200, Jacques Fourie wrote: > Hi, > > I've performed some benchmark tests on my Gumstix Connex 400 (Intel > Xscale PXA 255 CPU clocked at 400MHz) with a netDuo expansion board. > This board has two smc network interfaces. I configure the gumstix as > a router and measure network throughput with netperf running on > seperate boxes on either side of the gumstix. My initial tests showed > a TCP throughput of 2Mbit/s. After adapting the smc driver to use DMA > this figure went up to 7Mbit/s. Although this is a significant > improvement, it still seems to be a bit slow. Does anyone have any > tips on how I can go about to try and figure out where the bottleneck > lies? Initial profiling showed that a significant amount of time was > spent doing memory to memory copies of data, but after the DMA change > profiling does not show any obvious culprits. I don't know the PXA255, but I do know the AT91RM9200 and I expect the PXA255 to be a bit faster. With the RM9200 I can get ~8Mbit/s routing PPPoE with NAT and small ipfw table. This is done with the internal MAC using VLAN, so there is also VLAN overhead. Plain routing should be faster. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.