> Just how much "oomph" does your embedded device have? I would suggest
> adding a -c command and running the test again:
It's a 300MHz PowerPC processor with a lightweight busybox linux on it.
> netperf -H MyPC -c
# netperf -H controller -c
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to master
(192.168.1.185) port 0 AF_INET
Recv Send Send Utilization Service
Demand
Socket Socket Message Elapsed Send Recv Send Recv
Size Size Size Time Throughput local remote local
remote
bytes bytes bytes secs. 10^6bits/s % S % U us/KB us/KB
87380 16384 16384 10.01 83.37 100.00 -1.00 98.257
-1.000
> If the embedded device is single core, netperf reporting 100% CPU
> utilization is pretty obvious. If it has two cores, netperf reporting
> 50% CPU util suggets (but does not guarantee) that one core was
> saturated. You can add a -d option and netperf will emit the details
> of its CPU calculation.
# netperf -H controller -d
scan_sockets_args called with the following argument vector
netperf -H controller -d
Program name: netperf
Local send alignment: 8
Local recv alignment: 8
Remote send alignment: 8
Remote recv alignment: 8
Report local CPU 0
Report remote CPU 0
Verbosity: 1
Debug: 1
Port: 12865
Test name: TCP_STREAM
Test bytes: 0 Test time: 10 Test trans: 0
Host name: controller
installing catcher for all signals
Could not install signal catcher for sig 65, errno 22
remotehost is controller and port 12865
establish_control called with host 'controller' port '12865' remfam
AF_UNSPEC
local '0.0.0.0' port '0' locfam AF_UNSPEC
getaddrinfo returned the following for host 'controller' port '12865' family
AF_UNSPEC
cannonical name: 'master'
flags: 2 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP
addrlen 16
sa_family: AF_INET sadata: 50 65 192 168 1 185
getaddrinfo returned the following for host '0.0.0.0' port '0' family
AF_UNSPEC
cannonical name: '0.0.0.0'
flags: 3 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP
addrlen 16
sa_family: AF_INET sadata: 0 0 0 0 0 0
bound control socket to 0.0.0.0 and 0
successful connection to remote netserver at controller and 12865
complete_addrinfo using hostname controller port 0 family AF_UNSPEC type
SOCK_STREAM prot IPPROTO_TCP flags 0x0
getaddrinfo returned the following for host 'controller' port '0' family
AF_UNSPEC
cannonical name: 'master'
flags: 2 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP
addrlen 16
sa_family: AF_INET sadata: 0 0 192 168 1 185
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: 3 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP
addrlen 16
sa_family: AF_INET sadata: 0 0 0 0 0 0
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to master
(192.168.1.185) 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
send_tcp_stream: send_socket obtained...
recv_response: received a 256 byte response
remote listen done.
About to start a timer for 10 seconds.
recv_response: received a 256 byte response
remote reporting results for 10.01 seconds
calculate_confidence: itr 1; time 10.012977; res 83.279937
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.01 83.28
shutdown_control: shutdown of control connection requested.
--
Guillaume Dargaud
http://www.gdargaud.net/