Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2002 11:56:48 +1100
From:      Greg Lane <gregory.lane@anu.edu.au>
To:        freebsd-questions@FreeBSD.org
Subject:   Pathetic 11 kbytes/s with ed driver (Netgear EA201)
Message-ID:  <20020102115648.A35606@nucl03.anu.edu.au>

next in thread | raw e-mail | index | archive | help
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):

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
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

Below is the tcpdump output during the fetch command:

11:16:46.843296 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 4344 win 31132 <nop,nop,timestamp 26659151 885915> (DF)
11:16:46.843533 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 4344 win 33304 <nop,nop,timestamp 26659151 885915> (DF)
11:16:46.846449 rene.xxx.xxx.http > router.xxx.xxx.4449: . 4344:5792(1448) ack 1 win 33304 <nop,nop,timestamp 885915 26659151> (DF)
11:16:46.847731 rene.xxx.xxx.http > router.xxx.xxx.4449: . 5792:7240(1448) ack 1 win 33304 <nop,nop,timestamp 885915 26659151> (DF)
11:16:46.847912 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 7240 win 32580 <nop,nop,timestamp 26659152 885915> (DF)
11:16:46.850882 rene.xxx.xxx.http > router.xxx.xxx.4449: . 7240:8688(1448) ack 1 win 33304 <nop,nop,timestamp 885915 26659152> (DF)
11:16:46.851094 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 8688 win 33304 <nop,nop,timestamp 26659152 885915> (DF)
11:16:46.852152 rene.xxx.xxx.http > router.xxx.xxx.4449: . 8688:10136(1448) ack 1 win 33304 <nop,nop,timestamp 885915 26659152> (DF)
11:16:46.856252 rene.xxx.xxx.http > router.xxx.xxx.4449: . 11584:13032(1448) ack 1 win 33304 <nop,nop,timestamp 885916 26659152> (DF)
11:16:46.856394 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 10136 win 33304 <nop,nop,timestamp 26659152 885915> (DF)
11:16:46.859331 rene.xxx.xxx.http > router.xxx.xxx.4449: . 13032:14480(1448) ack 1 win 33304 <nop,nop,timestamp 885916 26659152> (DF)
11:16:46.859465 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 10136 win 33304 <nop,nop,timestamp 26659153 885915> (DF)
11:16:47.852719 rene.xxx.xxx.http > router.xxx.xxx.4449: . 10136:11584(1448) ack 1 win 33304 <nop,nop,timestamp 886016 26659153> (DF)
11:16:47.852960 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 14480 win 31132 <nop,nop,timestamp 26659252 886016> (DF)
11:16:47.853172 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 14480 win 33304 <nop,nop,timestamp 26659252 886016> (DF)
11:16:47.856123 rene.xxx.xxx.http > router.xxx.xxx.4449: . 14480:15928(1448) ack 1 win 33304 <nop,nop,timestamp 886016 26659252> (DF)
11:16:47.857434 rene.xxx.xxx.http > router.xxx.xxx.4449: . 15928:17376(1448) ack 1 win 33304 <nop,nop,timestamp 886016 26659252> (DF)
11:16:47.857671 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 17376 win 32580 <nop,nop,timestamp 26659253 886016> (DF)
11:16:47.860724 rene.xxx.xxx.http > router.xxx.xxx.4449: . 17376:18824(1448) ack 1 win 33304 <nop,nop,timestamp 886016 26659253> (DF)
11:16:47.861016 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 18824 win 33304 <nop,nop,timestamp 26659253 886016> (DF)
11:16:47.861994 rene.xxx.xxx.http > router.xxx.xxx.4449: . 18824:20272(1448) ack 1 win 33304 <nop,nop,timestamp 886016 26659253> (DF)
11:16:47.866120 rene.xxx.xxx.http > router.xxx.xxx.4449: . 21720:23168(1448) ack 1 win 33304 <nop,nop,timestamp 886017 26659253> (DF)
11:16:47.866286 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 20272 win 33304 <nop,nop,timestamp 26659253 886016> (DF)
11:16:47.869213 rene.xxx.xxx.http > router.xxx.xxx.4449: . 23168:24616(1448) ack 1 win 33304 <nop,nop,timestamp 886017 26659253> (DF)
11:16:47.869353 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 20272 win 33304 <nop,nop,timestamp 26659254 886016> (DF)
11:16:48.862298 rene.xxx.xxx.http > router.xxx.xxx.4449: . 20272:21720(1448) ack 1 win 33304 <nop,nop,timestamp 886117 26659254> (DF)
11:16:48.862514 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 24616 win 31132 <nop,nop,timestamp 26659353 886117> (DF)
11:16:48.862714 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 24616 win 33304 <nop,nop,timestamp 26659353 886117> (DF)
11:16:48.865658 rene.xxx.xxx.http > router.xxx.xxx.4449: . 24616:26064(1448) ack 1 win 33304 <nop,nop,timestamp 886117 26659353> (DF)
11:16:48.866928 rene.xxx.xxx.http > router.xxx.xxx.4449: . 26064:27512(1448) ack 1 win 33304 <nop,nop,timestamp 886117 26659353> (DF)
11:16:48.867096 router.xxx.xxx.4449 > rene.xxx.xxx.http: . ack 27512 win 32580 <nop,nop,timestamp 26659354 886117> (DF)
11:16:48.870058 rene.xxx.xxx.http > router.xxx.xxx.4449: . 27512:28960(1448) ack 1 win 33304 <nop,nop,timestamp 886117 26659354> (DF)





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?20020102115648.A35606>