Chinaunix首页 | 论坛 | 博客
  • 博客访问: 44810
  • 博文数量: 2
  • 博客积分: 1838
  • 博客等级: 上尉
  • 技术积分: 56
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-14 10:03
文章分类
文章存档

2011年(2)

分类: LINUX

2011-10-20 09:19:20

使用ifconfig每隔一秒采样igb的网卡接收流量:

ifconfig 0
ifconfig 920
ifconfig 0
ifconfig 864
ifconfig 0
ifconfig 952
ifconfig 0
ifconfig 936
ifconfig 0
ifconfig 928
ifconfig 0
ifconfig 944
ifconfig 0
ifconfig 936
ifconfig 0
ifconfig 952
ifconfig 0
ifconfig 960
ifconfig 0
ifconfig 952
ifconfig 0
ifconfig 952

内核自带的igb驱动则无此问题。

有趣的是,如果同时进行ethtool采样,则一切正常,嘿嘿:

ethtool 504 | ifconfig 480
ethtool 504 | ifconfig 472
ethtool 496 | ifconfig 472
ethtool 504 | ifconfig 472
ethtool 504 | ifconfig 472
ethtool 504 | ifconfig 472
ethtool 504 | ifconfig 472
ethtool 504 | ifconfig 472
ethtool 504 | ifconfig 472
ethtool 504 | ifconfig 480

向开发团队报告了这个Bug,确认是一个Bug,答复如下:

thanks for your report, this is because there is a bug in the driver where
calling ethtool -S updates statistics, but calling the update_stats entry
point (which ifconfig does) doesn't force a stats update and gives you
stale results
阅读(3150) | 评论(0) | 转发(0) |
0

上一篇:对齐的计算

下一篇:没有了

给主人留下些什么吧!~~