vnstat rx和iftop rx不匹配

时间:2015-03-25 13:34:46

标签: linux

首先,我同时在两个shell中运行vnstat -tr -i eth0和iftop。奇怪的是,vnstat中的rx远大于iftop中的峰值rx。我该如何解决这个问题?

vnstat中的Rx

5679980 packets sampled in 5 seconds
Traffic average for eth0
rx  530.52 Mbit/s      1130727 packets/s
tx   49.88 Mbit/s         5258 packets/s

iftop中的Rx

TX:             cum:  205MB         peak:  47.1Mb
RX:                   10.9MB               9.30Mb
TOTAL:                217MB                52.2Mb

1 个答案:

答案 0 :(得分:0)

Dude,vnstat中的RX使用MegaBit( Mbit );而iftop使用MegaByte( MB )。他们有不同的衡量标准,当然结果不会相同。

1字节= 8位

您可以获得有关" Mbit vs MB"的更多信息。在谷歌。只需搜索它。