iperf压测linux网卡带宽

1.安装
yum install iperf --enablerepo=epel
2.启动服务端
iperf -s -i 1
3.启动客户端测试10分钟
iperf -c 172.16.3.153 -i 1 -t 600

-w窗口越小带宽越不能体现

4.客户端显示
Connecting to host 172.16.3.145, port 5201
[  4] local 172.16.3.153 port 36895 connected to 172.16.3.145 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   789 MBytes  6.61 Gbits/sec  138   1.95 MBytes       
[  4]   1.00-2.00   sec  1.08 GBytes  9.24 Gbits/sec   23   1.39 MBytes       
[  4]   2.00-3.00   sec  1.08 GBytes  9.25 Gbits/sec    0   1.46 MBytes       
[  4]   3.00-4.00   sec  1.08 GBytes  9.25 Gbits/sec   10   1.08 MBytes       
5.服务端显示
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 172.16.3.153, port 36894
[  5] local 172.16.3.145 port 5201 connected to 172.16.3.153 port 36895
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec   743 MBytes  6.23 Gbits/sec                  
[  5]   1.00-2.00   sec  1.07 GBytes  9.23 Gbits/sec                  
[  5]   2.00-3.00   sec  1.08 GBytes  9.25 Gbits/sec                  
[  5]   3.00-4.00   sec  1.08 GBytes  9.27 Gbits/sec                  
[  5]   4.00-5.00   sec  1.08 GBytes  9.28 Gbits/sec                  
6.网卡速度
[root@slave01 ~]# ethtool eth0
        Supported link modes:   1000baseT/Full 
                                10000baseT/Full 
        Supported pause frame use: No
        Supports auto-negotiation: No
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 10000Mb/s
7.zabbix图形趋势

1270709-20180503091728800-178139210.png

https://blog.csdn.net/aaa1050070637/article/details/53539713

8.windows压测工具

http://blog.163.com/semar@126/blog/static/2323311620108205126230/

转载于:https://www.cnblogs.com/jenvid/p/8983767.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值