Skip to contentSkip to conversation

how to improve the throughput of linux network

DISCUSSION zhengchuanbo 2 participants 3 messages Jul 16, 2002 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

we use linux as our router. i just tested the performance of the router with smartbits, and i found that the throughput of 64byte frame is only 25%, about 35kpps.
someone mentioned that the throughput of 64byte frame could reach 70kpps.so i wish i could improve the performance of our router,but i don't know how to do that.
i looked for some solution,and found some article mentioned the NAPI. it changed the driver to polling mode,so that the interrupt is no too much. but i could not find drivers for our router.(eepro100 card). has the polling mode driver been used in linux? i think there should be some other methods to improve the performance.but what is the most efficient one?
thanks for help. please cc.

chuanbo zheng

#1 lore raw
Quoted 4 lines · [email protected] said:

we use linux as our router. i just tested the performance of the router with smartbits, and i found that the throughput of 64byte frame is only 25%, about 35kpps.

Quoted 8 lines

someone mentioned that the throughput of 64byte frame could reach 70kpps.so i wish i could improve the performance of our router,but i don't know how to do that.

i looked for some solution, and found some article mentioned the NAPI. it changed the driver to polling mode,so that the interrupt is no too much. but i could not find drivers for our router.(eepro100 card). has the polling mode driver been used in linux?

I made NAPI core and driver patches for linux 2.4; they're at
http://gtf.org/lunz/linux/net/. There's an eepro100 driver there.

Please send me (and the linux netdev list) the results of any testing you do.

Jason

A message that is not in the archive (sent off-list or not yet received): 1026838787.401.15.camel@xbox

#3 lore raw
Quoted 2 lines · Filip Sneppe (Yucom)

Hey, that's funny. I downloaded NAPI patches from:
ftp://robur.slu.se/pub/Linux/net-development/NAPI/

Yes, that's where the NAPI stuff originates. The core patch from that site is what made it into 2.5, and I backported it to 2.4 from there. There are no substantial differences between the three.

Quoted 2 lines

How different are those patches from yours ? Did you just make sure they all applied cleanly ?

While the core is mostly a matter of changing patch offsets, the driver patches are still a moving target. There are two different flavors of the e1000 NAPI patch, for example. The most recent tulip patch from the above FTP site is missing tulip_misc.c, so it must be replaced with a version from another patch. That file really is only code to report stats in /proc, though. There's yet another napified tulip driver that jamal posted a link to; I have yet to investigate that one.

But to answer your question, yes. I just found the most recent versions of various napi efforts and made them apply to a recent 2.4 kernel so people can easily try out the new net core.

Jason