From owner-freebsd-hardware@FreeBSD.ORG Fri Feb 6 07:20:05 2009 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C65751065673 for ; Fri, 6 Feb 2009 07:20:05 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from mail-gx0-f21.google.com (mail-gx0-f21.google.com [209.85.217.21]) by mx1.freebsd.org (Postfix) with ESMTP id 70D018FC12 for ; Fri, 6 Feb 2009 07:20:05 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by gxk14 with SMTP id 14so837085gxk.19 for ; Thu, 05 Feb 2009 23:20:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=nPhkmmAIzC260uQOPXBZJye8lDmcuuppWJ/VhdrNaq0=; b=ju3TrJbAlj7P8K7whivFAX95f98oWresMR3JDRbFo3H1eRh/Lhj7KNvuIRKv+zY3NK dm7kl8N9svtIELuejBVkwEMBVUglx+2fTmRzUabHtIbUvb28vZx93hXYGwzV13ekJ6uS L6LROW7sil/+AuxMsDchzlQTxtWpfdV3ZOcJE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=gx37J38PB+ELp9jwvIW9iIJbriua7avUI5SvvtepYIRFNFzdgsLjWqDyWVEpAoGGbW 7nPPLxpbG2CIWY4r/7wHUKQqIq+wcyqruc4nSG3WRcCgSeGFnEcXlGisHG0EwP/cjiX5 Klt0mTAeHytlHuLEkRMf4fE5YaUI/RUJnYScE= MIME-Version: 1.0 Received: by 10.151.145.17 with SMTP id x17mr1341336ybn.131.1233903116841; Thu, 05 Feb 2009 22:51:56 -0800 (PST) In-Reply-To: <303e29800902052130j52680d6ep56ce67f0a27ce257@mail.gmail.com> References: <303e29800902052130j52680d6ep56ce67f0a27ce257@mail.gmail.com> Date: Fri, 6 Feb 2009 14:51:56 +0800 Message-ID: From: Sepherosa Ziehau To: Alexander Usov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hardware@freebsd.org Subject: Re: bge0 performance and bge1 media problem on Asus RS100-E5-PI2 X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2009 07:20:06 -0000 On Fri, Feb 6, 2009 at 1:30 PM, Alexander Usov wrote: > $uname -a > FreeBSD DHCP10 7.1-STABLE FreeBSD 7.1-STABLE #1: Tue Jan 20 12:59:59 UTC > 2009 root@dhcp10:/usr/obj/usr/src/sys/DHCP amd64 > > $ pciconf -lv | grep -A 3 bge > bge0@pci0:3:0:0: class=0x020000 card=0x81491043 chip=0x165914e4 rev=0x21 > hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'BCM5721 NetXtreme Gigabit Ethernet PCI Express' > class = network > -- > bge1@pci0:2:0:0: class=0x020000 card=0x81491043 chip=0x165914e4 rev=0x21 > hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'BCM5721 NetXtreme Gigabit Ethernet PCI Express' > class = network > > # iperf -s -p 1111 > ------------------------------------------------------------ > Server listening on TCP port 1111 > TCP window size: 64.0 KByte (default) > ------------------------------------------------------------ > [ 4] local 10.100.30.7 port 1111 connected with 10.100.30.8 port 58205 > [ ID] Interval Transfer Bandwidth > [ 4] 0.0-10.2 sec 622 MBytes 509 Mbits/sec > [ 5] local 10.100.30.7 port 1111 connected with 10.100.30.8 port 52206 > [ ID] Interval Transfer Bandwidth > [ 5] 0.0-18.1 sec 1.07 GBytes 509 Mbits/sec > [ 4] local 10.100.30.7 port 1111 connected with 10.100.30.8 port 62863 > [ ID] Interval Transfer Bandwidth > [ 4] 0.0-184.4 sec 10.9 GBytes 509 Mbits/sec > > I use ULE and BSD with/without polling, but i can transmit at ~509 Mbits/sec > > bge1 forced only 100baseTX duplex-full... bge1 forced 1000baseTX duplex-full I had a patch for PCIE bge(4) to improve TX performance, you could give it a try (you may need to hand patch it, since the patch itself is quite old, back to mid 2008) http://people.freebsd.org/~sephe/bge.diff Best Regards, sephe -- Live Free or Die