找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 29556|回复: 44

[coyote] 8139网卡NAPI驱动for coyote

[复制链接]
发表于 2004-12-11 08:54:04 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
编译成功,文件附后.使用方法:将此文件替换掉/lib/modules目录下同名的8139too.o,然后在菜单中选择保存就行了.与原驱动相比较的优点:在通常情况下,网卡是采用中断的方式接收数据,然而在大流量,高负荷的情况下,网卡每秒产生的中断达几万次!从而导致CPU占用超高,系统性能下降.而这个驱动是0.9.27版本的改进版,采用polling即轮询,而不是采用一般的中断方式,可以显著提高网络性能,使8139网卡接近intel网卡的性能。有关资料见:http://www-900.ibm.com/developerworks/cn/l...api/index.shtml便捷的更新方法(你必须安装有FTP功能包):使用putty登录coyote,按q退出菜单,输入以下命令:

CODE
cd /lib/modulesrm 8139too.oftp 61.161.79.48         (当询问用户时,输入:anonymous,口令无)cd routerget 8139too.oquitcd /lrcfg.backreboot
然后重新启动。新的驱动就会自动运行了。

8139too.rar

10.38 KB, 下载次数: 880, 下载积分: 铜板 -1

routeros
发表于 2004-12-11 09:15:21 | 显示全部楼层
老大受累了
routeros
回复

使用道具 举报

发表于 2004-12-11 11:25:32 | 显示全部楼层
老大努力哦。。。
routeros
回复

使用道具 举报

发表于 2004-12-11 11:52:23 | 显示全部楼层
。。。。。老大使做什么的阿?排练节目???
routeros
回复

使用道具 举报

发表于 2004-12-11 12:03:20 | 显示全部楼层
这个驱动和普通的有什么不同?
routeros
回复

使用道具 举报

发表于 2004-12-11 19:20:23 | 显示全部楼层
哈哈,明天再说吧。
routeros
回复

使用道具 举报

发表于 2004-12-11 21:56:23 | 显示全部楼层
good ~~
routeros
回复

使用道具 举报

发表于 2004-12-12 10:25:04 | 显示全部楼层
如何了?
routeros
回复

使用道具 举报

 楼主| 发表于 2004-12-12 16:50:03 | 显示全部楼层
完成了
routeros
回复

使用道具 举报

发表于 2004-12-12 18:09:47 | 显示全部楼层
刚看到,呵呵。大家都测试下。对了,老大,测试完成之后可以交给官方的。
routeros
回复

使用道具 举报

发表于 2004-12-12 18:18:35 | 显示全部楼层
谢啦
routeros
回复

使用道具 举报

发表于 2004-12-12 18:53:13 | 显示全部楼层
按这个思路,还有些使用PHY方式的网卡都可以使用这种方式工作的,也可以避免出现中断过多的情况了。强烈建议对于使用 8139 网卡而日志中出现中断过多的朋友采用。
routeros
回复

使用道具 举报

 楼主| 发表于 2004-12-12 19:14:38 | 显示全部楼层
QUOTE (哈啤猫 @ Dec 12 2004, 06:53 PM)
强烈建议对于使用 8139 网卡而日志中出现中断过多的朋友采用。
是的,凡是出现“Too much work at interrupt”的,只要你使用8139网卡,用这个驱动就可以解决中断过多的问题。查看中断的命令:

CODE
cat /proc/interrupts
routeros
回复

使用道具 举报

 楼主| 发表于 2004-12-12 19:36:24 | 显示全部楼层
使用新驱动和旧驱动的比较:

QUOTE
>> from realtek (no NAPI) to realtek (no NAPI)ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcpttcp-r: socketttcp-r: accept fromttcp-r: 327680000 bytes in 42.90 real seconds = 59671.99 Kbit/sec +++ttcp-r: 224852 I/O calls, msec/call = 0.20, calls/sec = 5241.16ttcp-r: 0.1user 1.5sys 0:42real 3% 0i+0d 0maxrss 0+2pf 0+0csw >> from eepro to eeprottcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcpttcp-r: socketttcp-r: accept fromttcp-r: 327680000 bytes in 28.33 real seconds = 90379.31 Kbit/sec +++ttcp-r: 225058 I/O calls, msec/call = 0.13, calls/sec = 7945.54ttcp-r: 0.2user 4.2sys 0:28real 15% 0i+0d 0maxrss 0+2pf 0+0csw >> from realtek (NAPI) to realtek (NAPI)ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcpttcp-r: socketttcp-r: accept fromttcp-r: 327680000 bytes in 29.21 real seconds = 87644.11 Kbit/sec +++ttcp-r: 225735 I/O calls, msec/call = 0.13, calls/sec = 7728.26ttcp-r: 0.0user 1.7sys 0:29real 6% 0i+0d 0maxrss 0+2pf 0+0csw >> from eepro to realtek (no NAPI)ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcpttcp-r: socketttcp-r: accept fromttcp-t: 327680000 bytes in 34.32 real seconds = 74594.99 Kbit/sec +++ttcp-t: 40000 I/O calls, msec/call = 0.88, calls/sec = 1165.55ttcp-t: 0.0user 1.2sys 0:34real 3% 0i+0d 0maxrss 0+2pf 0+0csw>> from realtek (NAPI) to realtek (no NAPI)ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcpttcp-r: socketttcp-r: accept fromttcp-r: 327680000 bytes in 32.60 real seconds = 78532.74 Kbit/sec +++ttcp-r: 225544 I/O calls, msec/call = 0.15, calls/sec = 6918.98ttcp-r: 0.1user 1.6sys 0:32real 5% 0i+0d 0maxrss 0+2pf 0+0csw>> from realtek (NAPI) to eeprottcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001 tcpttcp-r: socketttcp-r: accept fromttcp-r: 327680000 bytes in 34.02 real seconds = 75250.05 Kbit/sec +++ttcp-r: 225685 I/O calls, msec/call = 0.15, calls/sec = 6633.91ttcp-r: 0.1user 3.7sys 0:34real 11% 0i+0d 0maxrss 0+2pf 0+0csw
routeros
回复

使用道具 举报

发表于 2004-12-14 17:28:03 | 显示全部楼层
cd /lib/modulesrm 8139too.oftp ftp://61.161.79.48/router/8139too.ocd /lrcfg.backreboot      这几行是什么意思呢?        是不是可以用这个驱动替换别的软路由里面的8139too.o文件也可以呢?                              我是新来的,大家照顾一下小生我啊~!~
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-9 14:34 , Processed in 0.168266 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表