[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ttylinux] Have anyone used netperf in ttylinux?



On 06/16/14 18:44, Shen Lin wrote:
Thank you for your kindleness to help me.
Netperf is a C/S netflows tester. Before using netperf, you should start
netserver in the destination. So I do these:

# ./netserver
Starting netserver with host 'IN(6)ADDR_ANY' port '12865' and family
AF_UNSPEC

# ps -ef|grep netserver
  4569 root       0:00 ./netserver
  4573 root       0:00 grep netserver

# ./netperf -d -H 127.0.0.1 -l 5

The '-I 5' did not work for me, so I omitted it.

I did this:

    wget ftp://ftp.netperf.org/netperf/netperf-2.6.0.zip
    unzip netperf-2.6.0.zip
    cd netperf-2.6.0/
    ./configure
    make
    make install

Then I turned off the firewall because I don't remember what
it does on the localhost interface (probably nothing):

# service firewall stop
#
# /usr/local/bin/netserver
Starting netserver with host 'IN(6)ADDR_ANY' port '12865' and family AF_UNSPEC
#
# /usr/local/bin/netperf -d -H 127.0.0.1
Could not install signal catcher for sig 33, errno 22
Could not install signal catcher for sig 65, errno 22
remotehost is 127.0.0.1 and port 12865
resolve_host called with host '127.0.0.1' port '12865' family AF_INET
getaddrinfo returned the following for host '127.0.0.1' port '12865' family AF_INET
        cannonical name: '127.0.0.1'
flags: 22 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
        sa_family: AF_INET sadata: 50 65 127 0 0 1 0 0 0 0 0 0 0 0 0 128
resolve_host called with host '0.0.0.0' port '0' family AF_UNSPEC
getaddrinfo returned the following for host '0.0.0.0' port '0' family AF_UNSPEC
        cannonical name: '0.0.0.0'
flags: 22 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
        sa_family: AF_INET sadata: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
establish_control called with host '127.0.0.1' port '12865' remfam AF_INET
                local '0.0.0.0' port '0' locfam AF_UNSPEC
bound control socket to 0.0.0.0 and 0
successful connection to remote netserver at 127.0.0.1 and 12865
recv_response: received a 656 byte response
complete_addrinfo using hostname 127.0.0.1 port 0 family AF_INET type SOCK_STREAM prot IPPROTO_TCP flags 0x0 getaddrinfo returned the following for host '127.0.0.1' port '0' family AF_INET
        cannonical name: '127.0.0.1'
flags: 22 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
        sa_family: AF_INET sadata: 0 0 127 0 0 1 0 0 0 0 0 0 0 0 0 128
local_data_address not set, using local_host_name of '0.0.0.0'
complete_addrinfo using hostname 0.0.0.0 port 0 family AF_UNSPEC type SOCK_STREAM prot IPPROTO_TCP flags 0x1 getaddrinfo returned the following for host '0.0.0.0' port '0' family AF_UNSPEC
        cannonical name: '0.0.0.0'
flags: 23 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
        sa_family: AF_INET sadata: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
MIGRATED TCP STREAM TEST from 0.0.0.0 () port 0 AF_INET to 127.0.0.1 () port 0 AF_INET
create_data_socket: socket 4 obtained...
netperf: get_sock_buffer: send socket size determined to be 16384
netperf: get_sock_buffer: receive socket size determined to be 87380
enable_enobufs failed: setsockopt
send_omni_inner: 2 entry send_ring obtained...
recv_response: received a 656 byte response
remote listen done.
remote port is 57440
About to start a timer for 10 seconds.
netperf: get_sock_buffer: receive socket size determined to be 262134
netperf: get_sock_buffer: send socket size determined to be 1323660
disconnect_data_socket sock 4 init 1 do_close 1 protocol 6
recv_response: received a 656 byte response
remote results obtained
calculate_confidence: itr  1; time 10.000941; res  11445.741865
                               lcpu -1.000000; rcpu -1.000000
                               lsdm -1.000000; rsdm -1.000000
Recv   Send    Send
Socket Socket  Message  Elapsed
Size   Size    Size     Time     Throughput
bytes  bytes   bytes    secs.    10^6bits/sec

 87380  16384  16384    10.00    11445.74
shutdown_control: shutdown of control connection requested.