From: Rick Jones <rick.jones2@hp.com>
To: Jean-Michel Hautbois <jhautbois@gmail.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>, netdev <netdev@vger.kernel.org>
Subject: Re: Regression on TX throughput when using bonding
Date: Thu, 14 Jun 2012 10:46:12 -0700 [thread overview]
Message-ID: <4FDA2364.9090508@hp.com> (raw)
In-Reply-To: <CAL8zT=joBA5pgXB7QfDM5qhOizmdneghXsSnwN5G74-yoGzg_Q@mail.gmail.com>
On 06/14/2012 08:43 AM, Jean-Michel Hautbois wrote:
> As suggested by Eric, here is a description I wish to be as precise as possible.
> I send three RAW video frames, 1920x1088@30fps on three udp sockets to
> the same NIC.
> Each sending is in a thread, so I will focus on the numbers for one thread.
>
> This generates burst of send(), as this : each 1/30s send 3.133.440
> bytes to the ethernet interface.
> This is in fact something similar to this :
> while (n != 0)
> {
> sendto(socket, packet, 4000);
> n -= 4000;
> packet += 4000
> }
>
> My interface is a bond with a 10Gbps interface and MTU set to 4096.
> This means I have 784 packets each 1/30s which are sent on my
> interface by one thread, then I wait for the next burst, and so on.
> The videos are not necessarily the same video, so the threads may send
> simultaneously or not...
>
> My socket is in blocking mode.
If desired, here is how to simulate that with netperf:
./configure --enable-intervals
make
And an example over loopback:
raj@tardy:~/netperf2_trunk$ src/netperf -l 10 -t UDP_STREAM -H localhost
-w 33 -b 783 -- -s 1M -S 1M -m 4000
MIGRATED UDP STREAM TEST from ::0 (::) port 0 AF_INET6 to tardy (::1)
port 0 AF_INET6 : interval
Socket Message Elapsed Messages
Size Size Time Okay Errors Throughput
bytes bytes secs # # 10^6bits/sec
2097152 4000 9.99 260739 0 835.18
2097152 9.99 260442 834.23
Adjust the -s and/or -S options to match what Jean-Michel's application
uses for socket buffer sizes. Run another two simultaneous instances to
get the three streams. Adjust the run length with the -l option.
happy benchmarking,
rick jones
prev parent reply other threads:[~2012-06-14 17:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-14 8:58 Regression on TX throughput when using bonding Jean-Michel Hautbois
2012-06-14 9:21 ` Eric Dumazet
2012-06-14 9:40 ` Jean-Michel Hautbois
2012-06-14 9:50 ` Eric Dumazet
2012-06-14 10:00 ` David Miller
2012-06-14 10:07 ` Eric Dumazet
2012-06-14 10:31 ` David Miller
2012-06-14 16:42 ` [PATCH] net: remove skb_orphan_try() Eric Dumazet
2012-06-15 7:15 ` Oliver Hartkopp
2012-06-15 22:31 ` David Miller
2012-06-14 10:15 ` Regression on TX throughput when using bonding Jean-Michel Hautbois
2012-06-14 14:14 ` Jean-Michel Hautbois
2012-06-14 14:29 ` Eric Dumazet
2012-06-14 15:43 ` Jean-Michel Hautbois
2012-06-14 17:46 ` Rick Jones [this message]
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=4FDA2364.9090508@hp.com \
--to=rick.jones2@hp.com \
--cc=eric.dumazet@gmail.com \
--cc=jhautbois@gmail.com \
--cc=netdev@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.