From owner-freebsd-questions Tue Jan 1 17:26:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailf.telia.com (mailf.telia.com [194.22.194.25]) by hub.freebsd.org (Postfix) with ESMTP id 2526437B419 for ; Tue, 1 Jan 2002 17:25:36 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailf.telia.com (8.11.6/8.11.6) with ESMTP id g021OOp13137 for ; Wed, 2 Jan 2002 02:24:25 +0100 (CET) Received: from falcon.midgard.homeip.net (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id CAA11545 for ; Wed, 2 Jan 2002 02:24:21 +0100 (CET) Received: (qmail 49109 invoked by uid 1001); 2 Jan 2002 01:24:20 -0000 Date: Wed, 2 Jan 2002 02:24:20 +0100 From: Erik Trulsson To: Greg Lane Cc: freebsd-questions@FreeBSD.org Subject: Re: Pathetic 11 kbytes/s with ed driver (Netgear EA201) Message-ID: <20020102012420.GA47605@student.uu.se> Mail-Followup-To: Greg Lane , freebsd-questions@FreeBSD.org References: <20020102115648.A35606@nucl03.anu.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020102115648.A35606@nucl03.anu.edu.au> User-Agent: Mutt/1.3.24i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jan 02, 2002 at 11:56:48AM +1100, Greg Lane wrote: > I am putting together a cheap webserver out of a discarded 486 with > all ISA slots. I am using a Netgear EA201 ISA network card which > uses the ed driver. I get CRAP bandwidth out of the thing. Using > fetch to get a file: > > 3>xxxxx@router:~$ fetch http://rene:/mysql_manual.pdf > Receiving mysql_manual.pdf (3314090 bytes): 100% > 3314090 bytes transferred in 279.0 seconds (11.60 kBps) > > This is on a local network where the client and server are > each plugged into a 10baseT hub. > > If I try using scp to copy a file, I can get better, sometimes > 100kBps. There is definitely some problem though as the traffic > shows pauses (see below in a tcpdump). First the config info: > > I have used the Netgear DOS configuration program to set the > card to non-PNP mode, use IRQ 5, port 0x300 and full-duplex. > It is recognised fine (excerpt from dmesg): One comment here. You can normally *not* use full-duplex when you use a hub. Switches, yes, but not hubs. My first guess would be that this is the problem. Try using half-duplex instead and see if it helps. > > ed0 at port 0x300-0x31f iomem 0xd8000 irq 5 drq 0 on isa0 > ed0: address 00:40:05:a2:15:fc, type NE2000 (16 bit) > > My kernel config has the line > > device ed0 at isa? port 0x300 irq 5 iomem 0xd8000 > > One question? Is the iomem used? There is no way to set this As far as I know the iomem is not used by the 'ed' driver. I have a machibe with two NE2000 compatible cards in it, both using the same iomem address. No problems. > that I saw with the Netgear DOS configuration program. I read > somewhere that if the shared memory is not properly set up > then it can cause troubles, but I don't know whether shared > memory is set with the iomem setting. > > Tcpdump output during the fetch is at the very bottom of this > mail. Notice the one second long gaps. > This is obviously the problem but why does it occur? My first > guess was a mismatch in speed and full/half duplex. I have tried > fixing the duplex and speed of the client machine with > ifconfig media and mediaopt settings. Doesn't help. There is > no way to set the media and mediaopt settings for the Netgear > card with the ed driver: > > rene# ifconfig ed0 media 10baseT > ifconfig: SIOCGIFMEDIA: Invalid argument > rene# ifconfig ed0 mediaopt full-duplex > ifconfig: SIOCGIFMEDIA: Invalid argument > > I have not tried a crossover cable because these boxes are all > headless and I could not get remote access if I did this. > > Lastly, here is netstat output showing there are no collisions. > > $ netstat -in > Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll > ed0 1500 00:40:05:a2:15:fc 5235 1 4883 0 0 > ed0 1500 192.168.128 192.168.128.32 5171 - 4879 - - > lo0 16384 181 0 181 0 0 > lo0 16384 127 127.0.0.1 181 - 181 - - > > Can anyone give me an idea of something else to try? > > Thanks and a happy new year to everyone! > > Greg > -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message