Lab Environment:
VMware Workstation 11
Under the centos6.7 system
Server side: 192.168.239.140 Firewall off Setenforce 0
Client side: 192.168.239.138 firewall off Setenforce 0
SECURECRT (SSH remote connection software)
Software Introduction:
Qperf measures bandwidth and latency between, nodes. It can work over TCP/IP as well as
The RDMA transports. On one of the nodes, Qperf are typically run with no arguments desig-
Nating it the server node. One may and then run Qperf on a client node to obtain measurements
such as bandwidth, latency and CPU utilization.
In its more basic form, Qperf is run on one node in server mode by invoking it with no argu-
ments. On the other node, it's run with the arguments:the name of the server node fol-
Lowed by the name of the test. A list of tests can found in the section, tests. A vari-
Ety of options also be specified.
Use of the software:
We can go straight to man. Qperf
NAME
Qperf-measure RDMA and IP performance
Synopsis
Qperf
Qperf Servernode [OPTIONS] TESTS
EXAMPLES Example
To run a TCP bandwidth and latency test:
Qperf MyServer TCP_BW Tcp_lat
To run a SDP bandwidth test for seconds:
Qperf myserver-t SDP_BW
To run a UDP latency test and then cause the server to terminate:
Qperf MyServer Udp_lat quit
To measure the RDMA UD latency and bandwidth:
Qperf MyServer Ud_lat UD_BW
To measure RDMA UC bi-directional Bandwidth:
Qperf MyServer RC_BI_BW
To get a range of TCP latencies with a message size from 1 to 64K
Qperf Myserver-oo Msg_size:1:64k:*2-vu Tcp_lat
Of course, the simple use of the words are relatively easy to get started.
Experimental process:
One, server-side deployment (remember firewall first off)
1. Qperf Software Installation
[email protected] ~]# Yum install-y qperf
2. Qperf Software Startup
[Email protected] ~]# Qperf
II. client Deployment (firewall off)
1. Qperf Software Installation
[email protected] ~]# Yum install-y qperf
2 . Measure TCP Bandwidth and latency
[Email protected] ~]# qperf 192.168.239.140 TCP_BW Tcp_lat
TCP_BW:
BW = 390 Mb/sec
Tcp_lat:
Latency = 64.7 US
Can see that my bandwidth is 390MB latency is 64.7 us
3. measure TCP bandwidth and delay, configuration of both machines
[Email protected] ~]# qperf 192.168.239.140 tcp_bw Tcp_lat conf
TCP_BW:
BW = 389 MB/SEC
Tcp_lat:
Latency = 61.7 US
Conf
Loc_node = Localhost.localdomain
LOC_CPU = Intel Core i5-3230m @ 2.60GHz
Loc_os = Linux 2.6.32-431.el6.x86_64
Loc_qperf = 0.4.9
Rem_node = Localhost.localdomain
REM_CPU = Intel Core i5-3230m @ 2.60GHz
Rem_os = Linux 2.6.32-431.el6.x86_64
Rem_qperf = 0.4.9
4, We can change the size of the message (msg_size), such as from 1 bytes to 64K, each multiplication of the way to observe the bandwidth and delay changes
[Email protected] ~]# qperf 192.168.239.140-oo msg_size:1:64k:*2-vu Tcp_lat
Tcp_lat:
Latency = ~ US
msg_size = 1 bytes
Tcp_lat:
Latency = 53.9 US
msg_size = 2 bytes
Tcp_lat:
Latency = 52.1 US
msg_size = 4 bytes
Tcp_lat:
Latency = 54.1 US
Msg_size = 8 bytes
Tcp_lat:
Latency = 53.5 US
msg_size = bytes
Tcp_lat:
Latency = 53.3 US
msg_size = bytes
Tcp_lat:
Latency = 53.8 US
msg_size = bytes
Tcp_lat:
Latency = 59.7 US
msg_size = bytes
Tcp_lat:
Latency = 53.8 US
msg_size = bytes
Tcp_lat:
Latency = 56.2 US
msg_size = bytes
Tcp_lat:
Latency = 55.7 US
Msg_size = 1 KiB (1,024)
Tcp_lat:
Latency = 88.9 US
Msg_size = 2 KiB (2,048)
Tcp_lat:
Latency = 81.9 US
Msg_size = 4 KiB (4,096)
Tcp_lat:
Latency = 102 US
Msg_size = 8 KiB (8,192)
Tcp_lat:
Latency = 212 US
Msg_size = KiB (16,384)
Tcp_lat:
Latency = 278 US
Msg_size = KiB (32,768)
Tcp_lat:
Latency = 501 US
Msg_size = KiB (65,536)
We can see clearly that as the message increases the delay significantly increases.
Thank you all ~~~~~~ hope you learn something.
This article from "A few" blog, declined reprint!
centos6.7 use Qperf to test bandwidth and latency on your network!