From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 2 09:46:20 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 45A0616A40F for ; Sat, 2 Dec 2006 09:46:20 +0000 (UTC) (envelope-from antinvidia@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 267EC43CBD for ; Sat, 2 Dec 2006 09:45:58 +0000 (GMT) (envelope-from antinvidia@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so3594061nfc for ; Sat, 02 Dec 2006 01:46:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=iyl0FRkJrfH1C7SNegrY+QR+T9J7KWN/9l7d3t/bYzueOY6a2TR/GlO1JI46hmzPniJg53I8aiZCGYbf5Z/63teyVNONKTd123ZcH31BpmBjEO/fYhc6Y6hkhIt7cV/wHjwWo43MVNhRBHKUhy5c9g2HTQfCl+/W20DvrmYP7Fc= Received: by 10.78.50.5 with SMTP id x5mr5686940hux.1165052777046; Sat, 02 Dec 2006 01:46:17 -0800 (PST) Received: by 10.78.167.2 with HTTP; Sat, 2 Dec 2006 01:46:16 -0800 (PST) Message-ID: Date: Sat, 2 Dec 2006 09:46:16 +0000 From: MQ To: "Vladimir Terziev" In-Reply-To: <20061129182534.5300947f.vlady@gbservices.biz> MIME-Version: 1.0 References: <20061128204732.3e8790fd.vlady@gbservices.biz> <200611290709.34059.josh@tcbug.org> <20061129182534.5300947f.vlady@gbservices.biz> X-Mailman-Approved-At: Sat, 02 Dec 2006 12:32:00 +0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Josh Paetzel , freebsd-net@freebsd.org, freebsd-hackers@freebsd.org 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: Sat, 02 Dec 2006 09:46:20 -0000 2006/11/29, Vladimir Terziev : > > > The cable and the switch port, both were one and the same in the > test with Broadcom NIC and in the test with D-Link NIC. So, the reason is > not in them for sure. > > I didn't mention in my initial e-mail, that since the swtich is > 100Mbps, the Broadcom NIC was forced to work on 100mbit, full-duplex. For > some reason, when using autodect, the Broadcom NIC negotiates 100mbit, > half-duplex. > > Vladimir > > On Wed, 29 Nov 2006 07:09:33 -0600 > Josh Paetzel wrote: > > > On Tuesday 28 November 2006 12:47, Vladimir Terziev wrote: > > > Hi, > > > > > > i have a machine with Pentium 4-D processor utilizing > > > FreeBSD-6.1-RELEASE-p10/amd64. > > > > > > The machine is running SMP kernel. > > > > > > The machine has 2 on-board Broadcom BCM5721 NICs, which are > > > handeled by the bge(4) driver and 4 D-Link DL10050 NICs, which are > > > handeled by the ste(4) driver. Machine is targeted for a > > > gateway/firewall and will handle a big amount of network traffic. > > > > > > 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. > > > > > > Just for comparison, when i tryed the same test scp(1), to the > > > same remote machine, but using one of the D-Link DL10050 NICs, the > > > average speed which has been reached was 10MBps. > > > > > > Could someone point me to a good performance tuning document for > > > bge(4) handeled NICs, under SMP kernel or at all? > > > > > > Thanks in advance! > > > > > > Vladimir > > > > So you have 2 gig-E and 4 100tx interfaces on the same PCI bus? If so > > you're going to run into bus saturation long before you're able to > > max out the throughput on the NICs. > > > > Which isn't to say that 200 kBps isn't a problem, but perhaps you are > > dealing with a bad cable or switchport. > > > > -- > > Thanks, > > > > Josh Paetzel > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > Yes, maybe the current bge(4) has some problems with the media type. When connecting a 5780 to another 5701, it completely refused to work. But when I use the 5701 to work with Intel 82547, it works great.