sar -n DEV 102:41:03 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s02:41:04 PM eth0 1626689.00 8.00 68308.62 1.65 0.00 0.00 0.0002:41:04 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.0002:41:04 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s02:41:05 PM eth0 1599900.00 1.00 67183.30 0.10 0.00 0.00 0.0002:41:05 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Field | Unit | Description |
rxpck/s | pps | Number of packets received per second; that is, the receiving pps |
txpck/s | pps | Number of packets sent per second; that is, the sending pps |
rxkB/s | kB/s | Receiving bandwidth |
txkB/s | kB/s | Sending bandwidth |
Test cases | Client command | SAR monitored metrics |
UDP 64 | netperf -t UDP_STREAM -H <server ip> -l 10000 -- -m 64 -R 1 & | PPS |
TCP 1500 | netperf -t TCP_STREAM -H <server ip> -l 10000 -- -m 1500 -R 1 & | Bandwidth |
TCP RR | netperf -t TCP_RR -H <server ip> -l 10000 -- -r 32,128 -R 1 & | PPS |
Metric | Description |
64-byte UDP packet send and received (packets/sec) | Data throughput of UDP during batch data transfer, which reflects the maximum forwarding capacity of an ENI (data loss may occur). |
1500-byte TCP inbound and outbound bandwidth (Mbits/sec) | Data throughput of TCP during batch data transfer, which reflects the maximum bandwidth capacity of an ENI (data loss may occur). |
TCP-RR (times/sec) | Transaction throughput when multiple request/response communications are made during one TCP persistent connection, which reflects the TCP forwarding capacity without losing any packets. |
yum install -y sysstat wget tar automake make gcc
wget -O netperf-2.7.0.tar.gz -c https://codeload.github.com/HewlettPackard/netperf/tar.gz/netperf-2.7.0
tar zxf netperf-2.7.0.tar.gz
cd netperf-netperf-2.7.0
./autogen.sh && ./configure && make && make install
pkill netserver && pkill netperf
netserver
sar -n DEV 1
pkill netserver && pkill netperf
netserver
sar -n DEV 1
#!/bin/bashcount=$1for ((i=1;i<=count;i++))doecho "Instance:$i-------"# You can replace the following commands with the client commands provided in test cases.# Enter the server IP address after -H.# Enter the test duration after -l. Set the duration to 10000 to prevent netperf from ending prematurely.netperf -t UDP_STREAM -H <server ip> -l 10000 -- -m 64 -R 1 &done
Was this page helpful?