linux测速软件的使用 iperf
2013-12-28 11:18
561 查看
PC端的编译过程: 使用的版本是:iperf-2.0.5.tar.gz
直接:./configure --disable-ipv6
然后make ///<----编译好后的二进制在src文件夹下。
在pc端运行: iperf -s -i 1
arm版本的iperf编译过程: ///<---------------需要终端可以执行
删除configure文件的第6567行: $as_echo "#define malloc rpl_malloc" >>confdefs.h
然后
./configure --disable-ipv6 --host=arm-fsl-linux-gnueabi
然后
make
在板子上运行:iperf -t 20 -i 1 -c 192.168.1.167(这个是PC端的IP)
我的arm板子上的信息:
[root@ARM src]# ./iperf -t 20 -i 1 -c 192.168.11.3
------------------------------------------------------------
Client connecting to 192.168.11.3, TCP port 5001
TCP window size: 20.7 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.11.13 port 38098 connected with 192.168.11.3 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 768 KBytes 6.29 Mbits/sec
[ 3] 1.0- 2.0 sec 1.12 MBytes 9.44 Mbits/sec
[ 3] 2.0- 3.0 sec 1.00 MBytes 8.39 Mbits/sec
[ 3] 3.0- 4.0 sec 768 KBytes 6.29 Mbits/sec
[ 3] 4.0- 5.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 5.0- 6.0 sec 1.25 MBytes 10.5 Mbits/sec
[ 3] 6.0- 7.0 sec 640 KBytes 5.24 Mbits/sec
[ 3] 7.0- 8.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 8.0- 9.0 sec 1.12 MBytes 9.44 Mbits/sec
[ 3] 9.0-10.0 sec 1.12 MBytes 9.44 Mbits/sec
[ 3] 10.0-11.0 sec 640 KBytes 5.24 Mbits/sec
[ 3] 11.0-12.0 sec 512 KBytes 4.19 Mbits/sec
[ 3] 12.0-13.0 sec 1.12 MBytes 9.44 Mbits/sec
[ 3] 13.0-14.0 sec 640 KBytes 5.24 Mbits/sec
[ 3] 14.0-15.0 sec 512 KBytes 4.19 Mbits/sec
Every 1s: /sbin/ifconfig eth0 | grep bytes 2013-12-28 02:50:19
RX bytes:564900 (551.6 KiB) TX bytes:17460743 (16.6 MiB)
^C
[root@ARM src]#
[root@ARM src]#
一下转自:http://blog.chinaunix.net/uid-20648944-id-2943611.html
1. # iptraf -g //这个最直观
2. iperf Iperf 是一个网络性能测试工具。Iperf可以测试最大TCP和UDP带宽性能。Iperf具有多种参数和UDP特性,可以根据需要调整。Iperf可以报告带宽,延迟抖动和数据包丢失
TCP:
server(pc): iperf -s -i 1
client(ls1b): iperf -t 20 -i 1 -c 192.168.1.167 (pc-ip)
UDP:
server(pc): iperf -u -s -i 1
client(ls1b): iperf -t 10 -i 1 -u -b 1000M -c 192.168.1.90
3. # ifconfig -a
eth0:Link encap:Ethernet HWaddr 00:1e:64:63:ab:fe
inet addr:192.168.3.103 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::21e:64ff:fe63:abfe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:70283 errors:0 dropped:0 overruns:0 frame:0
TX packets:46701 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:73276012 (73.2 MB) TX bytes:6267375 (6.2 MB)
4. # mii-tool -w -v //更详细的用法 man mii-tool
5. ethtool是用来显示和更改网卡设置的工具 更详细的用法 man ethtool
# ethtool eth0 //显示网络端口设置功能
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: Not reported
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: no
# ethtool -i eth0 //显示跟硬件相关的信息
driver: r8169
version: 2.3LK-NAPI
firmware-version:
bus-info: 0000:05:00.0
6. # watch -n 1 "/sbin/ifconfig eth0 | grep bytes"
直接:./configure --disable-ipv6
然后make ///<----编译好后的二进制在src文件夹下。
在pc端运行: iperf -s -i 1
arm版本的iperf编译过程: ///<---------------需要终端可以执行
删除configure文件的第6567行: $as_echo "#define malloc rpl_malloc" >>confdefs.h
然后
./configure --disable-ipv6 --host=arm-fsl-linux-gnueabi
然后
make
在板子上运行:iperf -t 20 -i 1 -c 192.168.1.167(这个是PC端的IP)
我的arm板子上的信息:
[root@ARM src]# ./iperf -t 20 -i 1 -c 192.168.11.3
------------------------------------------------------------
Client connecting to 192.168.11.3, TCP port 5001
TCP window size: 20.7 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.11.13 port 38098 connected with 192.168.11.3 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 768 KBytes 6.29 Mbits/sec
[ 3] 1.0- 2.0 sec 1.12 MBytes 9.44 Mbits/sec
[ 3] 2.0- 3.0 sec 1.00 MBytes 8.39 Mbits/sec
[ 3] 3.0- 4.0 sec 768 KBytes 6.29 Mbits/sec
[ 3] 4.0- 5.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 5.0- 6.0 sec 1.25 MBytes 10.5 Mbits/sec
[ 3] 6.0- 7.0 sec 640 KBytes 5.24 Mbits/sec
[ 3] 7.0- 8.0 sec 0.00 Bytes 0.00 bits/sec
[ 3] 8.0- 9.0 sec 1.12 MBytes 9.44 Mbits/sec
[ 3] 9.0-10.0 sec 1.12 MBytes 9.44 Mbits/sec
[ 3] 10.0-11.0 sec 640 KBytes 5.24 Mbits/sec
[ 3] 11.0-12.0 sec 512 KBytes 4.19 Mbits/sec
[ 3] 12.0-13.0 sec 1.12 MBytes 9.44 Mbits/sec
[ 3] 13.0-14.0 sec 640 KBytes 5.24 Mbits/sec
[ 3] 14.0-15.0 sec 512 KBytes 4.19 Mbits/sec
Every 1s: /sbin/ifconfig eth0 | grep bytes 2013-12-28 02:50:19
RX bytes:564900 (551.6 KiB) TX bytes:17460743 (16.6 MiB)
^C
[root@ARM src]#
[root@ARM src]#
一下转自:http://blog.chinaunix.net/uid-20648944-id-2943611.html
1. # iptraf -g //这个最直观
2. iperf Iperf 是一个网络性能测试工具。Iperf可以测试最大TCP和UDP带宽性能。Iperf具有多种参数和UDP特性,可以根据需要调整。Iperf可以报告带宽,延迟抖动和数据包丢失
TCP:
server(pc): iperf -s -i 1
client(ls1b): iperf -t 20 -i 1 -c 192.168.1.167 (pc-ip)
UDP:
server(pc): iperf -u -s -i 1
client(ls1b): iperf -t 10 -i 1 -u -b 1000M -c 192.168.1.90
3. # ifconfig -a
eth0:Link encap:Ethernet HWaddr 00:1e:64:63:ab:fe
inet addr:192.168.3.103 Bcast:192.168.3.255 Mask:255.255.255.0
inet6 addr: fe80::21e:64ff:fe63:abfe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:70283 errors:0 dropped:0 overruns:0 frame:0
TX packets:46701 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:73276012 (73.2 MB) TX bytes:6267375 (6.2 MB)
4. # mii-tool -w -v //更详细的用法 man mii-tool
5. ethtool是用来显示和更改网卡设置的工具 更详细的用法 man ethtool
# ethtool eth0 //显示网络端口设置功能
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: Not reported
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: no
# ethtool -i eth0 //显示跟硬件相关的信息
driver: r8169
version: 2.3LK-NAPI
firmware-version:
bus-info: 0000:05:00.0
6. # watch -n 1 "/sbin/ifconfig eth0 | grep bytes"
相关文章推荐
- Linux下rz,sz与ssh的配合使用
- Linux的inode的理解
- linux驱动开发--字符设备:通过cdd_cdev结构中的led变量区分是哪个节点,private_data使用
- linux终端查单词关联vim
- centos上安装autoconf-2.69
- linux驱动开发--字符设备:创建一组设备节点
- linux驱动开发--字符设备:自动创建设备节点
- Linux 进程状态
- GIT在Linux上的安装和使用简介
- linux下find查找命令用法
- 我为什么要学习Linux?
- CentOS安装KVM虚拟化(firadio-supermicro)
- Linux新手之路 - fdisk mke2fs mount
- s3c6410 完全由SD卡启动Linux流程
- [Linux]linux mount命令-o参数sync选项的用法
- (转载)Ubuntu Server 12.04 安装教程
- centos6.3安装zabbix2.0.2记录
- CentOS安装JDK1.7
- linux文件系统的创建和挂载
- 在Windows Azure上基于CentOS 6.3部署MySQL 5.6主从式数据库(2)