免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3500 | 回复: 4
打印 上一主题 下一主题

[网络管理] 请教bonding mode=0之速度异常问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-19 20:59 |只看该作者 |倒序浏览
用intel 8492 dual port gigabit网卡作了bonding,分别设了mode=0 和 mode=1,mode=1模式下传输速度接近990Mbps/S,failover功能正常。
但是在mode=0模式下,按理应该是twice gigabit的速度,实测下来只有94Mbps/S,相当于百兆的速度,为何?
网线是直连的,没有通过交换机。
设置如下:
[mode=1]下:
# cat /proc/net/bond0/info
Bonding Mode: fault-tolerance (active-backup)
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Multicast Mode: all slaves

Slave Interface: eth2
MII Status: up
Link Failure Count: 0

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
==================
[mode=0]下:
#  cat /proc/net/bond0/info
Bonding Mode: load balancing (round-robin)
MII Status: down
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Multicast Mode: all slaves

Slave Interface: eth2
MII Status: down
Link Failure Count: 3

Slave Interface: eth1
MII Status: down
Link Failure Count: 3

论坛徽章:
0
2 [报告]
发表于 2006-01-19 21:17 |只看该作者
补充一个问题:
在ifcfg-bond0设置MTU=9000后:
# ifup bond0
SIOCSIFMTU: Invalid argument
是否不能设jambo frame?

论坛徽章:
0
3 [报告]
发表于 2006-01-19 23:34 |只看该作者
请先说明一下0是做什么用的?

论坛徽章:
0
4 [报告]
发表于 2006-01-22 19:19 |只看该作者
0模式么就是负载均衡,有什么问题?

论坛徽章:
0
5 [报告]
发表于 2006-01-24 01:33 |只看该作者
It sounds like your linux kernel did not get the proper infomation about your slave interfaces.
See kernel source:  drivers/net/bonding/bond_main.c
...
/*
* Get link speed and duplex from the slave's base driver
* using ethtool. If for some reason the call fails or the
* values are invalid, fake speed and duplex to 100/Full
* and return error.
*/
static int bond_update_speed_duplex(struct slave *slave)
....


Maybe your NIC is not 100% ethtool compatible.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP