From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 20 00:50:53 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2AC3616A407 for ; Wed, 20 Dec 2006 00:50:53 +0000 (UTC) (envelope-from rabe@p-i-n.com) Received: from aposerv.p-i-n.com (aposerv.p-i-n.com [62.156.172.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 359EE43CB4 for ; Wed, 20 Dec 2006 00:50:44 +0000 (GMT) (envelope-from rabe@p-i-n.com) Received: from p-i-n.com (pinserv2.p-i-n.com [10.101.240.52]) by aposerv.p-i-n.com (8.12.11/8.12.11) with ESMTP id kBK0QdIL044390 for ; Wed, 20 Dec 2006 01:26:39 +0100 (CET) (envelope-from rabe@p-i-n.com) Received: from pinserv2.p-i-n.com (localhost.p-i-n.com [127.0.0.1]) by p-i-n.com (8.13.6/8.13.6) with ESMTP id kBK0QYtK079697 for ; Wed, 20 Dec 2006 01:26:34 +0100 (CET) (envelope-from rabe@pinserv2.p-i-n.com) Received: (from rabe@localhost) by pinserv2.p-i-n.com (8.13.6/8.13.6/Submit) id kBK0QYu7079696 for freebsd-hackers@freebsd.org; Wed, 20 Dec 2006 01:26:34 +0100 (CET) (envelope-from rabe) Date: Wed, 20 Dec 2006 01:26:34 +0100 From: "Raphael H. Becker" To: freebsd-hackers@freebsd.org Message-ID: <20061220002634.GB75640@p-i-n.com> References: <20061128204732.3e8790fd.vlady@gbservices.biz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061128204732.3e8790fd.vlady@gbservices.biz> User-Agent: Mutt/1.4.2.2i Organization: PHOENIX Pharmahandel AG & Co KG, Mannheim, Deutschland Subject: Re: FreeBSD-6.1/amd64 bge(4) driver performance problems X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2006 00:50:53 -0000 On Tue, Nov 28, 2006 at 08:47:32PM +0200, Vladimir Terziev wrote: > It seems the bge(4) driver has severe performance problems (may be especially in my configuration). > I tried test scp(1) to a remote machine, using one of the BCM5721 NICs. The average speed which has been reached was 200kBps. I had this problem just before 5.3-RELEASE and still have this with some combinations of interfaces, switches, ... http://lists.freebsd.org/pipermail/freebsd-net/2004-September/005017.html In short: * Testing with FTP'ing a large file between hosts. * 4 (or more) nodes on the net: - 2x fxp 10/100 - 2x bge 10/100/1000 * dumb GBit switch case 1: ftp from fxp/100 to bge/1000 --> fine (11MBytes/sec) case 2: ftp from fxp/100 to fxp/100 --> fine (11MBytes/sec) case 3: ftp from bge/1000 to bge/1000 --> fine (3 parallel transfers on a cached file, download to /dev/null): around 90MBytes/sec and more case 4: ftp from bge/1000 to fxp/100 --> poor: <1MB/sec at the beginning, falling back to some 100k/sec Every combination of sender/receiver was tested so there was not a specific combination of machines which failed. Summary: * Every single interface is able to send and to receive with the full bandwidth. * Every Switch-Port is able to transfer full 1000MBit * Every cable works perfektly (1000MBit/sec indicates) The interesiting case is case 3: If the sender is at 1000MBit and the receiver is on 1000 too, there is no sign of bandwidth-problems, this only accours on the 1000->100 case. This was in pre-5-STABLE. Recently I had this again with bgeX to bgeY on two Dell machines running 6.2-RC1. But in this special case bot machines are connected to two GBit Switches with 2 interfaces so both hosts can connect to each other using switch1 or switch2. --> switch1 (netgear-something) got changed with a H* p*o-curve --> solved. --> Try another switch. HTH Raphael