From: Jean-Michel Hautbois <jhautbois@gmail.com>
To: Rick Jones <rick.jones2@hp.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>, netdev@vger.kernel.org
Subject: Re: TCP communication for raw image transmission
Date: Thu, 5 Jan 2012 10:13:32 +0100 [thread overview]
Message-ID: <CAL8zT=iSP+GncMEJ38eaCZ85P-tBDMUjUeaFr-x3j_rksUaK2A@mail.gmail.com> (raw)
In-Reply-To: <4F0382BB.5060601@hp.com>
2012/1/3 Rick Jones <rick.jones2@hp.com>:
> On 01/02/2012 08:52 AM, Eric Dumazet wrote:
>>
>> Le lundi 02 janvier 2012 à 17:40 +0100, Jean-Michel Hautbois a écrit :
>>
>>> Mmmh, using netperf you would like to know what the client (my ARM
>>> board) can do ?
>>> How would you test it ? I can have an ARM board on one side, and the
>>> x86 on the other...
>>>
>>
>> x86> netserver&
>> arm> netperf -H<arm_ip_address> -l 60 -t TCP_STREAM
>>
>> 1) check cpu usage on<arm> while test is running
>> (for example : vmstat 1 )
>> 2) check bandwith of test run
>
>
> The "&" at the end of the netserver command is (should be) redundant -
> netserver will by default daemonize itself.
>
> I would suggest amending the netperf command line to something more like:
>
> netperf -H <x86IP> -c -l 60 -t TCP_STREAM -- -m <dataofoneline> -D
I did it, and here are the results (when plugged directly between x86
and arm, and not throught the switch, as before) :
/ # netperf -H 192.168.0.1 -c -l 60 -t TCP_STREAM -- -m 1344 -D
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to
192.168.0.1 (192.168.0.1) port 0 AF_INET : nodelay
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 1344 60.01 45.43 100.00 -1.00 180.325 -1.000
And without specifying the data size :
/ # netperf -H 192.168.0.1 -c -l 60 -t TCP_STREAM
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to
192.168.0.1 (192.168.0.1) 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 60.01 61.94 99.98 -1.00 132.230 -1.000
This is far better than the first tests, but this means my best bet is
to send as much data as possible (here, 16384)...
I will do a benchmark with a little script which will test several
frame sizes (or is there a way to know the theorical better value ?).
JM
next prev parent reply other threads:[~2012-01-05 9:13 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-02 15:21 TCP communication for raw image transmission Jean-Michel Hautbois
2012-01-02 15:59 ` Eric Dumazet
2012-01-02 16:08 ` Jean-Michel Hautbois
2012-01-02 16:29 ` Eric Dumazet
2012-01-02 16:40 ` Jean-Michel Hautbois
2012-01-02 16:52 ` Eric Dumazet
2012-01-02 16:52 ` Eric Dumazet
2012-01-02 17:04 ` Jean-Michel Hautbois
2012-01-02 17:20 ` Jean-Michel Hautbois
2012-01-02 17:41 ` Eric Dumazet
2012-01-02 18:00 ` Jean-Michel Hautbois
2012-01-02 18:02 ` Jean-Michel Hautbois
2012-01-03 7:36 ` Jean-Michel Hautbois
2012-01-03 8:06 ` Eric Dumazet
2012-01-05 8:50 ` Jean-Michel Hautbois
2012-01-03 22:35 ` Rick Jones
2012-01-05 9:13 ` Jean-Michel Hautbois [this message]
2012-01-05 9:40 ` Eric Dumazet
2012-01-05 9:48 ` Jean-Michel Hautbois
2012-01-05 9:55 ` Eric Dumazet
2012-01-05 9:57 ` Jean-Michel Hautbois
2012-01-05 10:04 ` Eric Dumazet
2012-01-05 18:41 ` Rick Jones
2012-01-05 18:53 ` Eric Dumazet
2012-01-05 19:26 ` Rick Jones
2012-01-05 18:32 ` Rick Jones
2012-01-05 9:49 ` Eric Dumazet
2012-01-04 9:57 ` David Laight
2012-01-04 11:16 ` Jean-Michel Hautbois
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAL8zT=iSP+GncMEJ38eaCZ85P-tBDMUjUeaFr-x3j_rksUaK2A@mail.gmail.com' \
--to=jhautbois@gmail.com \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=rick.jones2@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).