当前位置: 主页 > 运维经验 > 系统管理 >

测量网络带宽和延迟工具—qperf

时间:2013-05-24 09:49来源:www.80sa.org 作者:admin 点击:
测量网络带宽和延迟工具qperf install:yum install -y qperf -------- configure start: [root@server ~]qperf [root@server ~]# netstat -lntup|grep qperf tcp 0 0 :::19765 :::* LISTEN 21616/qperf -------- [root@client ~]# qperf 192.168.0
欢迎大家分享自己的文档,请点击查阅:分享方法,Linux系统运维
如果你喜欢这文章,可以点击文章结尾处百度分享,分享到你的各种社区收藏,或推荐给朋友……


测量网络带宽和延迟工具—qperf
 
install:yum install -y qperf
--------
configure start:
[root@server ~]qperf &
[root@server ~]# netstat -lntup|grep qperf
tcp 0  0 :::19765   :::*   LISTEN   21616/qperf 
--------
[root@client ~]# qperf 192.168.0.214 tcp_bw tcp_lat conf
tcp_bw:
    bw  =  11.8 MB/sec
tcp_lat:
    latency  =  59.1 us
conf:
    loc_node   =  m1.xywy.com
    loc_cpu    =  8 Cores: Intel Xeon  E5405 @ 2.00GHz
    loc_os     =  Linux 2.6.18-194.el5
    loc_qperf  =  0.4.6
    rem_node   =  yishengquan-db
    rem_cpu    =  8 Cores: Intel Xeon  E5405 @ 2.00GHz
    rem_os     =  Linux 2.6.18-164.el5
    rem_qperf  =  0.4.6
-------------------------------------------------------------------------
To run a UDP latency test and then cause the server to terminate:
[root@client ~]# qperf 192.168.0.214 udp_lat quit
udp_lat:
    latency  =  50.5 us
quit:
-------------------------------------------------------------------------
To get a range of TCP latencies with a message size from 1 to 64K
[root@client ~]# qperf 192.168.0.214 -oo msg_size:1:64K:*2 -vu tcp_lat
tcp_lat:
    latency   =  59.3 us
    msg_size  =     1 bytes
tcp_lat:
    latency   =  59.2 us
    msg_size  =     2 bytes
tcp_lat:
    latency   =  59.5 us
    msg_size  =     4 bytes
tcp_lat:
    latency   =  60.4 us
    msg_size  =     8 bytes
tcp_lat:
    latency   =  61.8 us
    msg_size  =    16 bytes
tcp_lat:
    latency   =  64.6 us
    msg_size  =    32 bytes
tcp_lat:
    latency   =  71.3 us
    msg_size  =    64 bytes
tcp_lat:
    latency   =  82.2 us
    msg_size  =   128 bytes
tcp_lat:
    latency   =  105 us
    msg_size  =  256 bytes
tcp_lat:
    latency   =  152 us
    msg_size  =  512 bytes
tcp_lat:
    latency   =  246 us
    msg_size  =    1 KiB (1,024)
tcp_lat:
    latency   =  376 us
    msg_size  =    2 KiB (2,048)
tcp_lat:
    latency   =  545 us
    msg_size  =    4 KiB (4,096)
tcp_lat:
    latency   =  906 us
    msg_size  =    8 KiB (8,192)
tcp_lat:
    latency   =  1.61 ms
    msg_size  =    16 KiB (16,384)
tcp_lat:
    latency   =  3.05 ms
    msg_size  =    32 KiB (32,768)
tcp_lat:
    latency   =  6.69 ms
    msg_size  =    64 KiB (65,536)
-------------------------------------------------------------------------
 
tcp_bw:client-->server的tcp带宽
tcp_lat:client-->server的延迟时间
conf:show list service and client hostname,cpu and system information
 
More:qperf --help examples
 

转载请注明linux系统运维
http://www.linuxyw.com/linux/yunweijingyan/xitongguanli/20130524/445.html

------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
验证码: 点击我更换图片