From: Willy Tarreau <w@1wt.eu>
To: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: Daniel Borkmann <dborkman@redhat.com>,
David Miller <davem@davemloft.net>,
gregkh@linuxfoundation.org, stephen@networkplumber.org,
netdev@vger.kernel.org, Eric Leblond <eric@regit.org>,
Eric Dumazet <eric.dumazet@gmail.com>,
Luigi Rizzo <rizzo@iet.unipi.it>
Subject: Re: [RFC 1/2] netmap: infrastructure (in staging)
Date: Mon, 29 Apr 2013 00:33:55 +0200 [thread overview]
Message-ID: <20130428223355.GA28736@1wt.eu> (raw)
In-Reply-To: <5172ACCB.9050203@mojatatu.com>
Hi Jamal,
On Sat, Apr 20, 2013 at 10:57:15AM -0400, Jamal Hadi Salim wrote:
> On 13-04-20 07:31 AM, Daniel Borkmann wrote:
>
> >Also, I just looked over Netmap's Usenix paper from 2012, where they
> >compare netmap against pktgen, and while they state the version of the
> >FreeBSD
> >kernel
> >where they did the evaluation on, they just don't even mention the Linux'
> >kernel version, their Linux kernel setup etc. Not even mentioning a
> >comparison
> >of PF_PACKET+fanout (similarly as the PF_RING project seems to avoid this
> >comparison and only presents perf numbers where they just count packets !).
> >Also, I've seen other papers published in 2012 on this topic, where they
> >compare performance with a 2.6.2x kernel, hm, quite sad actually.
>
> I hope I can put your doubts to rest. Netmap does provide the
> performance it claims to. I did play with it about 6-9 months back and i
> was able to loopback wirerate 10Gbps (~14.4Mpps) 64B packets on a
> _single core_. i.e i send to from machine A to B which echoes back to
> the sender via a driver hack i had on the intel driver and i count the
> packets. I should note that this was with machines that have circa 2010
> capabilities (and they were cheap too).
I second this. I experimented packet filtering and generation at line rate
on a single core with netmap. This is ~28 Mpps on 2 cores. I could barely
achieve 8.8 Mpps using the all 6 cores in this machine using AF_PACKET and
mmap.
There are currently shortcomings to netmap, including the loss of the csum
information from incoming packets, and lack of support for gso/tso for outgoing
ones. I don't much like the way it bypasses the driver using netif_rx() etc...
and would prefer a design which sits between the NIC and the driver so as to
be as much transparent as possible. But for some specific usages, it can be
great. And it's true that for capturing line-rate traffic on production
systems without eating all their resources, it's nice as well.
I don't know if it's mature enough for being usable as-is in the kernel,
but I think it could get enough attention to significantly improve.
Regards,
Willy
next prev parent reply other threads:[~2013-04-28 22:34 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 19:06 [RFC 1/2] netmap: infrastructure (in staging) Stephen Hemminger
2013-04-19 19:09 ` [RFC 2/2] ixgbe: netmap support Stephen Hemminger
2013-04-19 19:45 ` [RFC 1/2] netmap: infrastructure (in staging) Greg KH
2013-04-19 19:58 ` David Miller
2013-04-19 20:16 ` Stephen Hemminger
2013-04-19 20:31 ` Eric Dumazet
2013-04-19 20:38 ` David Miller
2013-04-19 20:49 ` Stephen Hemminger
2013-04-19 20:53 ` David Miller
2013-05-07 17:20 ` chetan loke
2013-04-19 20:37 ` David Miller
2013-04-20 11:31 ` Daniel Borkmann
2013-04-20 14:57 ` Jamal Hadi Salim
2013-04-20 15:19 ` "Oleg A. Arkhangelsky"
2013-04-28 22:33 ` Willy Tarreau [this message]
2013-04-20 23:20 ` Vincent JARDIN
2013-04-23 7:04 ` Naoto MATSUMOTO
2013-04-23 7:10 ` David Miller
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=20130428223355.GA28736@1wt.eu \
--to=w@1wt.eu \
--cc=davem@davemloft.net \
--cc=dborkman@redhat.com \
--cc=eric.dumazet@gmail.com \
--cc=eric@regit.org \
--cc=gregkh@linuxfoundation.org \
--cc=jhs@mojatatu.com \
--cc=netdev@vger.kernel.org \
--cc=rizzo@iet.unipi.it \
--cc=stephen@networkplumber.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 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).