From owner-freebsd-current@FreeBSD.ORG Sat Sep 25 16:31:51 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1649316A4CE for ; Sat, 25 Sep 2004 16:31:51 +0000 (GMT) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F4E443D2F for ; Sat, 25 Sep 2004 16:31:50 +0000 (GMT) (envelope-from q@uni.de) Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 95267D4183 for ; Sat, 25 Sep 2004 18:31:49 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 77CE76F901 for ; Sat, 25 Sep 2004 18:31:49 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP id 5854E17202 for ; Sat, 25 Sep 2004 18:31:49 +0200 (CEST) Received: from coyote.q.local (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 2644AD4183 for ; Sat, 25 Sep 2004 18:31:49 +0200 (CEST) Date: Sat, 25 Sep 2004 18:31:48 +0200 From: Ulrich Spoerlein To: current@freebsd.org Message-ID: <20040925163148.GA9626@galgenberg.net> Mail-Followup-To: current@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Subject: fwe(4) and polling(4) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2004 16:31:51 -0000 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Good evening everyone, ordered a cheap VIA-based Firewire-Card and tried to see if I can speed up the connection to my server. There are two machines (obviously) coyote: Server, P3-500, 5.2.1-RELEASE, NO DEVICE_POLLING fwohci0: port 0xac00-0xac7f mem 0xe2001000-0xe20017ff irq 9 at= device 10.0 on pci0 fwohci0: OHCI version 1.0 (ROM=3D1) fwohci0: No. of Isochronous channel is 4. fwohci0: EUI64 20:00:00:00:04:00:52:cf fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 sbp0: on firewire0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 22:00:00:00:52:cf fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=3D0xc800ffc0, gen=3D1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0 (me) firewire0: bus manager 0 (me) sharing interrupts with these devices: pcib0: slot 10 INTA is routed to irq 9 intpm0: port 0x5000-0x500f irq = 9 at device 7.3 on pci0 fwohci0: port 0xac00-0xac7f mem 0xe2001000-0xe20017ff irq 9 at= device 10.0 on pci0 roadrunner: Laptop, Dell 8600c, 5.3-BETA5, DEVICE_POLLING and HZ=3D1000 in = kernel fwohci0: <1394 Open Host Controller Interface> mem 0xfaff8000-0xfaffbfff,0x= faffd800-0xfaffdfff irq 11 at device 1.1 on pci2 fwohci0: OHCI version 1.10 (ROM=3D0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 35:4f:c0:00:35:67:98:30 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 36:4f:c0:67:98:30 fwe0: Ethernet address: 36:4f:c0:67:98:30 fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=3D0x8800ffc0, gen=3D1, non CYCLEMASTER mode firewire0: 2 nodes, maxhop <=3D 1, cable IRM =3D 1 sharing the interrupt with these: ACPI link \\_SB_.PCI0.LNKB has invalid initial irq 11, ignoring acpi_video0: port 0xc000-0xc0ff mem 0xfcff0000-0xfcf= fffff,0xd0000000-0xdfffffff irq 11 at device 0.0 on pci1 uhci0: port 0xbf80-0xbf9f irq 1= 1 at device 29.0 on pci0 uhci1: port 0xbf40-0xbf5f irq 1= 1 at device 29.1 on pci0 uhci2: port 0xbf20-0xbf3f irq 1= 1 at device 29.2 on pci0 bfe0: mem 0xfaffe000-0xfaffffff irq 11 at = device 0.0 on pci2 fwohci0: <1394 Open Host Controller Interface> mem 0xfaff8000-0xfaffbfff,0x= faffd800-0xfaffdfff irq 11 at device 1.1 on pci2 Running an NFS-Transfer between these hosts via xl0<->bfe0 I get roughly 10MB/s and the load on coyote is around 0.3. The interrupt rate on coyote is around 5000 (xl0, irq 12) and on roadrunner I get up to 7000 (bfe0, irq 11). Now switching to the Firewire-Connection I get "only" 13MB/s, the load on coyote is reaching 1.0, the interrupt rate reaches 6000. On roadrunner the interrupt rate is topping out at 10.500 (ain't that crazy?) I then switched on device_polling on roadrunner, because the man-page claimed it was supported with fwe(4). However I can't see a drop in interrupt requests and performance stays the same. So, is fwe(4) lying? Does polling only work, if the device does not share the interrupt? Should I be able to get more then 13MB/s from this not-so-old P3-500? PS: I'm somewhat puzzled by this: fwohci0: EUI64 20:00:00:00:04:00:52:cf if_fwe0: Fake Ethernet address: 22:00:00:00:52:cf and fwohci0: EUI64 35:4f:c0:00:35:67:98:30 if_fwe0: Fake Ethernet address: 36:4f:c0:67:98:30 Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Get it while it's hot! PGP Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBVZ1zmArGtfDbn0QRAl8wAJ4iNw48TAzQegK7V5URW8im8n7v7ACfWFqn +9KH84J8k8MK5W3e2YW6iP8= =3zG4 -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--