From owner-freebsd-current Wed Aug 5 21:25:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA23157 for freebsd-current-outgoing; Wed, 5 Aug 1998 21:25:21 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: (from wpaul@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA23145; Wed, 5 Aug 1998 21:25:15 -0700 (PDT) (envelope-from wpaul) From: Bill Paul Message-Id: <199808060425.VAA23145@hub.freebsd.org> Subject: Re: Etherlink XL driver In-Reply-To: from Alfred Perlstein at "Aug 5, 98 10:04:27 am" To: bright@hotjobs.com (Alfred Perlstein) Date: Wed, 5 Aug 1998 21:25:15 -0700 (PDT) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > using the first version of the driver posted on 100mb segement seemed to > have not great performance. The admin here said he was able to get > ~8megs/sec over the segment using Linux and 11megs/sec via Solaris, the > FreeBSD driver was never over 4.5megs and averaged around 3-3.5. This is > ftp transfers. It seems to grab a LOT of data, then "stall" then grab, > stall over and over. Can you describe the system in which the card is installed? What kind of processor and how fast is it? > I know this is an older driver, i'll compile him a new kernel with the > latest snapshot to see if there is an improvement. Just thought to let > you know. > > This is on a -current box with a PCI card 905b on 100/TX. The driver was > acting in full duplex mode, perhaps it should have been set to half-duplex > and it was tripping on itself? The depends. Both sides of the link must match. If the hub (or switch; you don't say which you're using) is in half-duplex mode, then the card should also be in half-duplex mode. What happens is that the PHY (in this case, the built-in autoneg logic on the 3Com chip) may negotiate a full-duplex link with the link partner, but then the driver has to look at the state of the link and set the 'fullduplex' bit in the MacControl register to match. If the physical layer negotiates a full-duplex connection but the controller chip stays in half-duplex, you get 'stuttery' performance, especially with TCP. Make absolutely sure the 3Com and the hub/switch are operating in the same mode. Use 'ifconfig xl0 media 100baseTX mediaopt full-duplex' to force a full-duplex link, or 'mediaopt half-duplex to force a half-duplex link. -Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message