From owner-freebsd-questions@FreeBSD.ORG Sun Jul 3 07:36:36 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E2CD16A41C for ; Sun, 3 Jul 2005 07:36:36 +0000 (GMT) (envelope-from juhasaarinen@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A5D143D45 for ; Sun, 3 Jul 2005 07:36:35 +0000 (GMT) (envelope-from juhasaarinen@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so553350wra for ; Sun, 03 Jul 2005 00:36:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=b0TMqRj7UY51UEQkVr6sE7B3gF20LYfltkIH94EMeN+joDQEux+mLu+BRAfIh3Tsbl9wUPG7Vo8Ghj4bSwnZR09P6cnQOSIVHFofI7d6ZuJ5Lv5c8g58J3AlInGi9e6wqJulX7v6g+flx+L6LyYmj638KchOAXKIw4mCPvnN+EY= Received: by 10.54.53.15 with SMTP id b15mr2742192wra; Sun, 03 Jul 2005 00:36:35 -0700 (PDT) Received: by 10.54.4.67 with HTTP; Sun, 3 Jul 2005 00:36:35 -0700 (PDT) Message-ID: Date: Sun, 3 Jul 2005 19:36:35 +1200 From: Juha Saarinen To: FreeBSD questions Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: How to troubleshoot slow network performance with Realtek 8169s? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Juha Saarinen List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2005 07:36:36 -0000 I have a 3.06GHz Intel P4 server running 5.4-RELEASE-p3, with the following two NICs: fxp0: port 0xdf00-0xdf3f mem = 0xfea fc000-0xfeafcfff irq 20 at device 8.0 on pci2 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:d0:b7:c3:0f:20 re0: port 0xd800-0xd8ff mem 0x= feaff 800-0xfeaff8ff irq 22 at device 10.0 on pci2 miibus1: on re0 rgephy0: on miibus1 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000b= aseTX -FDX, auto re0: Ethernet address: 00:08:a1:3c:72:bb The Intel NIC is built into the motherboard, and the Realtek 8169s sits in a 32-bit PCI slot. Performance for the Realtek adapter is slow though: around 25Mbit/s when serving clients with Fast Ethernet NICs, and around 250Mbit/s for Gigabit Ethernet ones. Having tried out the card in Windows boxes and seen the expected 600Mbit/s, I expected something similar with FreeBSD 5.4. The odd thing is that you get approx. a quarter of the link speed with both 100TX and 1000TX but not more under FreeBSD 5.4. The environment a switched network with known good cabling, standard size Ethernet frames, media autoselect and a kernel with DEVICE_POLLING and HZ=3D2000 which re(4) supports according to the polling(4) man page. #ifconfig re0 re0: flags=3D8843 mtu 1500 options=3D58 media: Ethernet autoselect (1000baseTX ) status: active Enabling/disabling polling makes no real difference, apart from taking the edge of performance somewhat. #sysctl -a | grep polling kern.polling.idlepoll_sleeping: 1 kern.polling.stalled: 0 kern.polling.suspect: 367 kern.polling.phase: 0 kern.polling.enable: 1 kern.polling.handlers: 1 kern.polling.residual_burst: 0 kern.polling.pending_polls: 0 kern.polling.lost_polls: 782 kern.polling.short_ticks: 731 kern.polling.reg_frac: 20 kern.polling.user_frac: 50 kern.polling.poll_in_trap: 0 kern.polling.idle_poll: 0 kern.polling.burst_max: 150 kern.polling.each_burst: 5 kern.polling.burst: 110 The re(4) man page doesn't have any troubleshooting hints and Googling didn't turn up anything useful. What else could I look for? --=20 Juha