From owner-freebsd-arm@FreeBSD.ORG Tue Sep 9 14:36:24 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 01DCF106566C for ; Tue, 9 Sep 2008 14:36:24 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from mail-gx0-f17.google.com (mail-gx0-f17.google.com [209.85.217.17]) by mx1.freebsd.org (Postfix) with ESMTP id 80BBB8FC23 for ; Tue, 9 Sep 2008 14:36:23 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: by gxk10 with SMTP id 10so10593640gxk.19 for ; Tue, 09 Sep 2008 07:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ukmXHTsSZQGZZf7T4OX3H18MAfBciAMaVJN7+7QyHF4=; b=K9GN6H3qf73Jp1oocAxku1agfdGFblLBojuE1KFd5mCkOKwBvoYa30inua/2hDd7w8 wQRoImr35BbhPa/RwaHyiMC9jysI8Kx8MN7eCnbal+I+l1s3qDlAQODCfWk+ogEeTiW6 gtgetLaVwZZcJhkpvryPFs4TF+Vc86/9FsARk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=HlIF4gxVE2vHTYbN+WXlaS+l9V11cy4OYI3Hq0LFoaEKAyBXFM65vTnKRswEvZ64V0 Bjvx637nytvwxJ+PfkLx1s2XciDb1T6WfD+NH3tke2YjpGsEUrwlWzE14+M3eBEYROhq jRm/QCfAX7EO2B8LRFawhrLD5Cj3dCdQ0QnuA= Received: by 10.102.253.6 with SMTP id a6mr11285307mui.92.1220970981423; Tue, 09 Sep 2008 07:36:21 -0700 (PDT) Received: by 10.103.17.17 with HTTP; Tue, 9 Sep 2008 07:36:21 -0700 (PDT) Message-ID: Date: Tue, 9 Sep 2008 16:36:21 +0200 From: "Jacques Fourie" To: "Stanislav Sedov" In-Reply-To: <20080909175556.07bac5f0.stas@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080909175556.07bac5f0.stas@FreeBSD.org> Cc: freebsd-arm@freebsd.org Subject: Re: Routing benchmarks X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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:36:24 -0000 On Tue, Sep 9, 2008 at 3:55 PM, Stanislav Sedov wrote: > On Tue, 9 Sep 2008 15:33:30 +0200 > "Jacques Fourie" mentioned: > >> 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. >> > > Have you tried checking the speed of the interface itself? Without > routing involved? May it be the interfaces itself being so slow? > > -- > Stanislav Sedov > ST4096-RIPE > Running netserver on the gumstix shows a throughput of 2.4Mbit/s. At the moment I can't get if_bridge to work - will try to figure out what is going on. A bridging benchmark may be more informative.