Date: Wed, 2 Jan 2002 02:24:20 +0100 From: Erik Trulsson <ertr1013@student.uu.se> To: Greg Lane <gregory.lane@anu.edu.au> Cc: freebsd-questions@FreeBSD.org Subject: Re: Pathetic 11 kbytes/s with ed driver (Netgear EA201) Message-ID: <20020102012420.GA47605@student.uu.se> In-Reply-To: <20020102115648.A35606@nucl03.anu.edu.au> References: <20020102115648.A35606@nucl03.anu.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <Link#1> 00:40:05:a2:15:fc 5235 1 4883 0 0 > ed0 1500 192.168.128 192.168.128.32 5171 - 4879 - - > lo0 16384 <Link#2> 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 > -- <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020102012420.GA47605>