回复 1楼 platinum 的帖子
intel 的1000兆网卡驱动一般会检测错误并且自动reset芯片,以前我遇到过因为网卡驱动有bug,在小包64字节测试中,网卡反复reset,因此,建议你考虑升级驱动试试. 我这里的机器也是intel的1000M卡,流量如果大了,机器上的两个网卡都down了.还是dell的啊,系统是rhas4 原帖由 platinum 于 2005-10-23 10:57 发表网卡处理每一个 packet 都要占用中断,而百兆网卡,1400 字节以上大包跑满才不过几千
但如果让 64 字节的小包跑到 50M,pps 也要远比上面说的大的多,负载也要大的多
我坚持我的看法,网卡的负载要看 pps,而 ...
没错,一般情况下,每收到一个包,都会有一个中断产生。网卡上讨论bps没有意义。进入网卡都变成数据包了。
百兆打满,64小包量不过148K,千兆就是1480K左右,如果在队列满之前,包被处理掉了,就没有什么问题,否则就会丢包。现在CPU的处理速度,处理148K的包,很轻松的。千兆就需要掂量掂量了,包都收下来没有问题,继续处理就会有问题。收包的速度一般都是比发包速度快的。 可能找到问题的正确解决办法了
在内核中发现这样一个参数
[ *] Intel(R) PRO/1000 Gigabit Ethernet support
[ ] Use Rx Polling (NAPI)
其具体描述如下
CONFIG_E1000_NAP
NAPI is a new driver API designed to reduce CPU and interrupt load
when the driver is receiving lots of packets from the card. It is
still somewhat experimental and thus not yet enabled by default.
If your estimated Rx load is 10kpps or more, or if the card will be
deployed on potentially unfriendly networks (e.g. in a firewall),
then say Y here.
See Documentation/networking/NAPI_HOWTO.txt for more
information.
If in doubt, say N.
[ 本帖最后由 platinum 于 2005-11-13 23:02 编辑 ]
千兆网卡的问题
一些千兆网卡的确会遇到这样的问题,两种方法解决:用ethtool -K eth0 tso off,可以解决问题, 或者升级系统内核。 用厂家的驱动一般都可以解决的。 换个 2.6 + 的 OS 测试, 2.6 + 内核支持 e1000 很遗憾的,换成了最新的 e1000 驱动,也仍然出现同样的问题,另外,和 NAPI 好像无关
还有,我没有启用 tso 模式(因为不支持)
不知道该怎么办了。。。
不知道该怎么办了。。。
换别的牌子的网卡:mrgreen: