From owner-freebsd-bugs@FreeBSD.ORG Wed May 3 13:20:25 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1BF116A405 for ; Wed, 3 May 2006 13:20:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A094543D68 for ; Wed, 3 May 2006 13:20:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k43DKGmO059944 for ; Wed, 3 May 2006 13:20:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k43DKGqm059943; Wed, 3 May 2006 13:20:16 GMT (envelope-from gnats) Resent-Date: Wed, 3 May 2006 13:20:16 GMT Resent-Message-Id: <200605031320.k43DKGqm059943@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Frank Rosenbaum Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CF5016A402 for ; Wed, 3 May 2006 13:18:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67B6A43D45 for ; Wed, 3 May 2006 13:18:57 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k43DIvU8094064 for ; Wed, 3 May 2006 13:18:57 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k43DIvea094063; Wed, 3 May 2006 13:18:57 GMT (envelope-from nobody) Message-Id: <200605031318.k43DIvea094063@www.freebsd.org> Date: Wed, 3 May 2006 13:18:57 GMT From: Frank Rosenbaum To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/96715: very low network throughput between networks on systems with more than one nic X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 May 2006 13:20:25 -0000 >Number: 96715 >Category: kern >Synopsis: very low network throughput between networks on systems with more than one nic >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 03 13:20:15 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Frank Rosenbaum >Release: 6.0-RELEASE-p6 >Organization: >Environment: FreeBSD housing56.bytecamp.net 6.0-RELEASE-p6 FreeBSD 6.0-RELEASE-p6 #1: Tue Apr 4 04:34:39 CEST 2006 root@housing56.bytecamp.net:/usr/obj/usr/src/sys/BC-TUNED i386 >Description: The problem is the very low network throughput between the networks on systems with more than one nic. Five NICs are present in the system, two of them "fxp" and the other three "em". Polling is on all NICs enabled. We always set the connection type for each NIC in the /etc/rc.conf like ifconfig_fxp0="inet ... netmask ... media 100baseTX mediaopt full-duplex polling". On a 100baseTX connection we got 500 kilobytes per second as maximum throughput and the throughput always decreased during the tests. It does not matter if we use only fxp or em NICs for this test. >How-To-Repeat: Set up a system with more than 1 NIC. Set the connectiontype for all NICs in the /etc/rc.conf on "media 100baseTX mediaopt full-duplex" or directly with ifconfig, this should have the same effect. Setup different networks on NICs and enable routing. Now test the throughput between the networks. It could be that only "fxp" and "em" NICs are affected, i do not have other NICs to test. But we reproduce this bug on a new machine running an new installed RELENG 6_1 with four "fxp" NICs. >Fix: Delete the media and mediaopt options in the /etc/rc.conf so it looks like ifconfig_fxp0="inet ... netmask ... polling" Now the NICs use the autoselect function and ifconfig now say "media: Ethernet autoselect (100baseTX )" After this we got the "normal" throughput with more then 10 megabytes per second. >Release-Note: >Audit-Trail: >Unformatted: