Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: AmigaMance on February 13, 2010, 06:41:37 PM

Title: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: AmigaMance on February 13, 2010, 06:41:37 PM
Hi.
 I have only used a 100Mbps ethernet to PCMCIA card in my Amiga 1200 and i can't make the comparison myself. My internet connection is below 10Mbps. I think i read somewhere that 100Mbps cards draw less CPU than 10 ones, at the same transfer rate. Does anyone know for sure if this is true?
Title: Re: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: Trev on February 14, 2010, 12:34:38 AM
The 100 Mb card probably has a larger internal packet buffer. If that allows the interface to issue interrupts less often, then it might give the driver more direct control over CPU cycles.
Title: Re: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: ElPolloDiabl on February 14, 2010, 01:19:10 AM
It should depend on the network card brand. Some would offload more of the processing, usually the cheaper ones will let the cpu do all the work.
Title: Re: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: ferix on February 14, 2010, 01:47:04 AM
It's much simpler than that.
10Mb cards are usually based on early ethernet designs like the ne2000. Those designs are quite old, and they only act as transmiter and receiver devices. All the packet cheking and buffer control relays on the system's cpu. It implies checking the destination MAC address, calculating the CRC checksum of received packets, discarting bad ones, set and control of the reception buffer, and all this stuff. So, on slow cpus, It's a very high load.
Those are very bad designs, but they were very common long time ago.
100mb design are based on new designs, with dedicated MAC controllers that hide all that things to the cpu. The CPU only have to get the packets from the card's buffer ready to be used.
Title: Re: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: AmigaMance on February 14, 2010, 02:59:55 AM
@ferix
 But, does the outdated PCMCIA interface of a Amiga 1200 take advantage of this enhanced design?
Title: Re: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: ncafferkey on February 14, 2010, 04:17:51 AM
But the only 100Mbps PCMCIA cards that work with AmigaOS are also NE2000 designs AFAIK, so they should have the same limitations.
Title: Re: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: johnklos on February 14, 2010, 06:38:42 AM
Under NetBSD, at least, a 100 Mbps card has less overhead in an Amiga 1200 than a 10 Mbps, but the difference isn't huge - the top transfer speed is just over 700k/sec in a mostly idle system as compared with the 10 Mbps card which was about 600k/sec.

I'm using a Dlink DFE-670TXD which is an NE2000 card.
Title: Re: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: Gulliver on February 14, 2010, 07:08:04 AM
And what about if using a modern RTL8139-compatible Fast Ethernet network card in a mediator?
Title: Re: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: ferix on February 14, 2010, 09:00:15 AM
Quote from: johnklos;543077
Under NetBSD, at least, a 100 Mbps card has less overhead in an Amiga 1200 than a 10 Mbps, but the difference isn't huge - the top transfer speed is just over 700k/sec in a mostly idle system as compared with the 10 Mbps card which was about 600k/sec.

I'm using a Dlink DFE-670TXD which is an NE2000 card.

There's a diference between a ne2000 based card, and a enhaced ne2000 card.
First one runs at same speed of an original ne2000 card.
The second one is a ethernet card that can run in ne2000 compatible mode, but with the proper driver, it can run faster than the original. Even without this driver, those cards can be slightly faster becouse the improved design.

Believe me, I spent almost a year writting ethernet drivers for embedded applications.
Title: Re: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: ChaosLord on February 14, 2010, 09:59:08 AM
I have an RTL-8139A Ethernet card in my A1200T.  Izzat good or bad?
Title: Re: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: tone007 on February 14, 2010, 11:21:16 AM
If it gets you on the internet, I'd say it's good.
Title: Re: 10-100Mbps ethenet cards. Differnce in CPU usage?
Post by: ferix on February 15, 2010, 10:44:22 AM
Quote from: tone007;543103
If it gets you on the internet, I'd say it's good.

I agree with that. Nothing more to say.