2012年11月1日 星期四

iperf-2.0.5 的編譯以及使用 (mips...)

[編譯]

(1)下載iperf  iperf-2.0.5.tar.gz

(2)解壓縮  tar zxvf iperf-2.0.5.tar.gz

(3)指定toolchain export PATH=/opt/toolchains/stbgcc-4.5.3-1.3/bin:$PATH

(4)cd /home/jimmy/work/tmp/blog/iperf-2.0.5

(5)vim config.h 槓掉 #define malloc rpl_malloc

(5)./configure --host=mips CXX=mips-linux-g++ CC=mips-linux-gcc  (big endian)
 
    ./configure --host=mips CXX=mipsel-linux-g++ CC=mipsel-linux-gcc  (little endian)

     ./configure --host=mipsel-linux

(6)make

(7)執行檔就是這個  iperf-2.0.5/src/iperf

(8)看一下檔案格式 file iperf

(9)結束休息.

提供我編譯完的mips版的iperf

https://docs.google.com/open?id=0B8hm-I2M8BD7TWsyN09IQ0ZwT00

windows版iperf

https://docs.google.com/open?id=0B8hm-I2M8BD7dUU0WnUydDEyWjA

aarch64版iperf
https://drive.google.com/file/d/1E6FSTsL-Ccvd2XVRRY1spHj0Mg-79qDv/view?usp=sharing

[使用] 
 server: iperf -s (進階用法: iperf -s -w 2M -l 128k)
  client :iperf -c 192.168.1.100 -t 100 -i 5 (進階用法 iperf -c 19.168.1.100 -t 100 -w 2M -i 5 -l 128k -P4)

參數: -t : 測量時間間格
          -w: tcp windows size
          -l : buffer size 
          -i: 幾秒顯示一次
          -P : clinent跑幾個thread.
  
 

 

沒有留言:

張貼留言