Iperf, saidar - WindyHana's Solanara

목차

개요

IPerf2

설치

root@wl ~/src # wget http://downloads.sourceforge.net/project/iperf/iperf-2.0.5.tar.gz
root@wl ~/src # tar xvfz iperf-2.0.5.tar.gz
root@wl ~/src # cd iperf-2.0.5
root@wl ~/src/iperf-2.0.5 # vi ./Makefile.in 1)
AM_CXXFLAGS = -lrt
AM_FLAGS = -lrt
root@wl ~/src/iperf-2.0.5 # vi ./src/Makefile.in 1)
AM_CXXFLAGS = -lrt
AM_FLAGS = -lrt
root@wl ~/src/iperf-2.0.5 # vi ./compat/Makefile.in 1)
AM_CXXFLAGS = -lrt
AM_FLAGS = -lrt
root@wl ~/src/iperf-2.0.5 # ./configure
root@wl ~/src/iperf-2.0.5 # make
root@wl ~/src/iperf-2.0.5 # make install
1) Makefile.in에서, AM_CXXFLAGSAM_FLAGS-Wall-lrt로 변경한다. 솔라리스는 nanosleep(3RT)librt(3LIB)에 있다. -Wall은 GCC용 옵션이기 때문에 CC에서 컴파일시 삭제해야 한다.

실행

사용 예

JPerf

자바로 만든 iperf의 GUI 판이다. 기능은 동일하다.

iperf3

설치

root@wl ~/src # wget http://downloads.es.net/pub/iperf/iperf-3.1.3.tar.gz
root@wl ~/src # tar xvfz iperf-3.1.3.tar.gz
root@wl ~/src # cd iperf-3.1.3
root@wl ~/src/iperf-3.1.3 # ./configure1)
root@wl ~/src/iperf-3.1.3 # vi ./src/portable_endian.h 2)
...
#elif defined(__sun) && defined(__SVR4) && defined(__SunOS_5_11)
...
// #include <endian.h>
...
root@wl ~/src/iperf-3.1.3 # make
root@wl ~/src/iperf-3.1.3 # make install
1) 솔라리스는 sendfile(3EXT), sendfilev(3EXT)를 지원하지만 iperf3의 소스상 지원하지 않도록 되어있는 것을 확인했다. (configure 스크립트와 소스에서 src/net.c를 수정하면 지원가능하게 할 수 있을것으로 생각한다) 따라서 iperf3 의 -Z 파라메터를 사용할 수 없다. 이후 버전에서는 지원할 가능성이 있다.
2) 솔라리스 10에서 설치하려 하는 경우, portable_endian.h파일을 수정해야 한다. (솔라리스 11에서는 수정할 필요 없다) 솔라리스 10은 be64toh, htobe64 이 없으며, endian.h 도 제공하지 않기 때문에 각각을 주석처리한다. 만약 솔라리스 10 Sparc 을 사용한다면, Big Endian 을 사용하고 있기 때문에 소스를 수정해야 한다.

실행

사용예

서버측 호스트에서 아래와 같이 실행한다.
root@wl ~ # iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 127.0.0.1, port 59336
[  5] local 127.0.0.1 port 5201 connected to 127.0.0.1 port 42076
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  5]   0.00-1.00   sec   120 KBytes   983 Kbits/sec  0.009 ms  0/15 (0%)
[  5]   1.00-2.00   sec   128 KBytes  1.05 Mbits/sec  0.015 ms  0/16 (0%)
[  5]   2.00-3.00   sec   128 KBytes  1.05 Mbits/sec  0.017 ms  0/16 (0%)
[  5]   3.00-4.00   sec   128 KBytes  1.05 Mbits/sec  0.015 ms  0/16 (0%)
[  5]   4.00-5.00   sec   128 KBytes  1.05 Mbits/sec  0.014 ms  0/16 (0%)
[  5]   5.00-6.00   sec   128 KBytes  1.05 Mbits/sec  0.014 ms  0/16 (0%)
[  5]   6.00-7.00   sec   128 KBytes  1.05 Mbits/sec  0.017 ms  0/16 (0%)
[  5]   7.00-8.00   sec   128 KBytes  1.05 Mbits/sec  0.021 ms  0/16 (0%)
[  5]   8.00-9.00   sec   128 KBytes  1.05 Mbits/sec  0.021 ms  0/16 (0%)
[  5]   9.00-10.00  sec   128 KBytes  1.05 Mbits/sec  0.019 ms  0/16 (0%)
[  5]  10.00-10.00  sec  0.00 Bytes  0.00 bits/sec  0.019 ms  0/0 (-NaN%)
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  1.24 MBytes  1.04 Mbits/sec  0.019 ms  0/159 (0%)
클라이언트측 호스트에서 아래와 같이 실행한다.
root@wl ~ # iperf3 -c localhost -u
Connecting to host localhost, port 5201
[  5] local 127.0.0.1 port 42076 connected to 127.0.0.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  5]   0.00-1.00   sec   120 KBytes   983 Kbits/sec  15
[  5]   1.00-2.00   sec   128 KBytes  1.05 Mbits/sec  16
[  5]   2.00-3.00   sec   128 KBytes  1.05 Mbits/sec  16
[  5]   3.00-4.00   sec   128 KBytes  1.05 Mbits/sec  16
[  5]   4.00-5.00   sec   128 KBytes  1.05 Mbits/sec  16
[  5]   5.00-6.00   sec   128 KBytes  1.05 Mbits/sec  16
[  5]   6.00-7.00   sec   128 KBytes  1.05 Mbits/sec  16
[  5]   7.00-8.00   sec   128 KBytes  1.05 Mbits/sec  16
[  5]   8.00-9.00   sec   128 KBytes  1.05 Mbits/sec  16
[  5]   9.00-10.00  sec   128 KBytes  1.05 Mbits/sec  16
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  1.24 MBytes  1.04 Mbits/sec  0.019 ms  0/159 (0%)
[  5] Sent 159 datagrams

iperf Done.

bwm-ng

설치

root@wl ~/src # wget https://www.gropp.org/bwm-ng/bwm-ng-0.6.1.tar.gz
root@wl ~/src # tar xvfz bwm-ng-0.6.1.tar.gz
root@wl ~/src # cd bwm-ng-0.6.1
root@wl ~/src/bwm-ng-0.6.1 # CC=/usr/sfw/bin/gcc ./configure
root@wl ~/src/bwm-ng-0.6.1 # make
root@wl ~/src/bwm-ng-0.6.1 # make install

실행

root@wl ~ # bwm-ng
  bwm-ng v0.6.1 (probing every 0.500s), press 'h' for help
  input: kstat type: rate
  |         iface                   Rx                   Tx                Total
  ==============================================================================
            gani0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
            iprb0:           1.58 KB/s           26.75 KB/s           28.34 KB/s
         vboxnet0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
  ------------------------------------------------------------------------------
            total:           1.58 KB/s           26.75 KB/s           28.34 KB/s
root@wl ~ # bwm-ng -i kstatdisk
  bwm-ng v0.6.1 (probing every 0.500s), press 'h' for help
  input: kstatdisk type: rate
  |         iface                   Rx                   Tx                Total
  ==============================================================================
              sd0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
            sd0,a:           0.00 KB/s            0.00 KB/s            0.00 KB/s
  ------------------------------------------------------------------------------
            total:           0.00 KB/s            0.00 KB/s            0.00 KB/s

saidar

설치

root@wl ~/src # wget http://www.mirrorservice.org/pub/i-scream/libstatgrab/libstatgrab-0.91.tar.gz
root@wl ~/src # tar xvfz libstatgrab-0.91.tar.gz
root@wl ~/src # cd libstatgrab-0.91
root@wl ~/src/libstatgrab-0.91 # ./configure
root@wl ~/src/libstatgrab-0.91 # make
root@wl ~/src/libstatgrab-0.91 # make install

실행

root@wl ~ # saidar
Hostname  : wl             Uptime : 16d 16:57:50      Date : 2015-01-01 00:00:00

Load 1    :   0.13   CPU Idle  :  99.50%  Running   :     1   Zombie    :     0
Load 5    :   0.21   CPU System:   0.50%  Sleeping  :    77   Total     :    79
Load 15   :   0.24   CPU User  :   0.00%  Stopped   :     1   No. Users :     1

Mem Total :   3966M  Swap Total:   4095M  Mem Used  : 94.95%  Paging in :     0
Mem Used  :   3766M  Swap Used :   1524K  Swap Used :  0.04%  Paging out:     0
Mem Free  :    200M  Swap Free :   4094M  Total Used: 46.73%

Disk Name      Read         Write         Network Interface        rx        tx
c0t0d0s0         0B            0B         elxl0                    0B        0B
                                          iprb0                    0B        0B
Total            0B            0B         vboxnet0                 0B        0B

                                          Mount Point            Free      Used
                                          /                   100898M      0.00%
                                          /devices                 0B         -
...
RSS ATOM XHTML 1.0 CSS3