有人能说一下dstat的网络度量(dstat -n)吗?是拜特斯还是比特?非常感谢!
发布于 2013-09-26 15:58:55
字节..。至少来自.3版本。来自changelog:
有趣的是.。在0.7.2 bits中,他们添加了位选项
发布于 2017-03-09 21:05:48
我确认网络度量的单位是Bytes/sec。
方法:I运行一些网络I/O流量并使用dstat进行测量
[root@centos72_base ~]# dstat --full
You did not select any stats, using -cdngy by default.
-------cpu0-usage--------------cpu1-usage------ --dsk/sda-- net/eno1677 ---paging-- ---system--
usr sys idl wai hiq siq:usr sys idl wai hiq siq| read writ| recv send| in out | int csw
4 0 96 0 0 0: 1 0 99 0 0 0| 0 0 |1205k 9874B| 0 0 | 562 601
4 0 96 0 0 0: 0 0 100 0 0 0| 0 0 |1206k 10k| 0 0 | 529 656
4 1 95 0 0 0: 4 0 96 0 0 0| 0 0 |1206k 10k| 0 0 | 580 712
3 0 97 0 0 0: 2 0 98 0 0 0| 0 0 |1207k 10k| 0 0 | 506 615 在稳定状态下,我平均1206k。我将dtsat输出到CSV以查看完整的数字,并获得了完整的值,如1234196。
接下来,我使用ifconfig获得了网络度量。
[cyc@centos72_base one_forward]$ ifconfig; sleep 1; ifconfig; sleep 1; ifconfig
RX packets 18500852 bytes 42118560051 (39.2 GiB)
...
RX packets 18501061 bytes 42119793977 (39.2 GiB)
...
RX packets 18501286 bytes 42121029469 (39.2 GiB)ifconfig清楚地指出网络度量是在GigaBytes中进行的。计算连续两秒钟的差:42119793977 - 42118560051 = 1233926。来自ifconfig的ifconfig与来自dstat的1234196紧密匹配。所以Bytes/sec是dstat输出的
发布于 2013-01-14 11:16:26
我猜它是字节,因为输出显示B,位将是b。
-net/total-
recv send
0 0
2376B 725B
1523B 180B然而,手册中没有任何内容证实这一点。
https://stackoverflow.com/questions/14316510
复制相似问题