Etesting

Iperf

Server side:

  • Build:

    1
    2
    3
    4
    5
    wget http://nchc.dl.sourceforge.net/project/iperf/iperf-2.0.5.tar.gz
    tar xf iperf-2.0.5.tar.gz
    cd iperf-2.0.5
    make && make install
    ln -s /usr/local/iperf /usr/bin/iperf
  • Init:

    1
    2
    3
    4
    ifconfig eth2 <server ip>
    ethtool -C eth2 rx-usecs 30 rx-frames 30 tx-frames 30
    service iptables stop
    service network-manager stop
  • Run:

    1
    iperf -s -w 256k

Client side:

  • Build:

    1
    2
    3
    4
    5
    wget http://nchc.dl.sourceforge.net/project/iperf/iperf-2.0.5.tar.gz
    tar xf iperf-2.0.5.tar.gz
    cd iperf-2.0.5
    make && make install
    ln -s /usr/local/iperf /usr/bin/iperf
  • Init:

    1
    2
    3
    4
    ifconfig eth2 <client ip>
    ethtool -C eth2 rx-usecs 30 rx-frames 30 tx-frames 30
    service iptables stop
    service network-manager stop
  • Run:

    1
    2
    iperf -c <server ip> -P 1 -t 100 -i 1 -w 256k
    iperf -c <server ip> -P 4 -t 100 -i 1 -w 256k

热评文章