From: Jesper Dangaard Brouer <brouer@redhat.com>
To: Dave Taht <dave.taht@gmail.com>
Cc: "Dave Taht" <dave@taht.net>, bloat <bloat@lists.bufferbloat.net>,
"Christina Jacob" <christina.jacob.koikara@gmail.com>,
"Joel Wirāmu Pauling" <joel@aenertia.net>,
"cerowrt-devel@lists.bufferbloat.net"
<cerowrt-devel@lists.bufferbloat.net>,
"David Ahern" <dsa@cumulusnetworks.com>,
"Tariq Toukan" <tariqt@mellanox.com>,
brouer@redhat.com
Subject: Re: [Cerowrt-devel] [Bloat] Linux network is damn fast, need more use XDP (Was: DC behaviors today)
Date: Thu, 7 Dec 2017 09:49:49 +0100 [thread overview]
Message-ID: <20171207094949.0459d5b8@redhat.com> (raw)
In-Reply-To: <CAA93jw4yOz2KoJGz4t9KqFrr=Zx+=N_r-c_W9iQCpGCBCgDVgg@mail.gmail.com>
(Removed netdev list)
On Mon, 4 Dec 2017 09:00:41 -0800 Dave Taht <dave.taht@gmail.com> wrote:
> > If you have not heard, the netdev-community have worked on something
> > called XDP (eXpress Data Path). This is a new layer in the network
> > stack, that basically operates a the same "layer"/level as DPDK.
> > Thus, surprise we get the same performance numbers as DPDK. E.g. I can
> > do 13.4 Mpps forwarding with ixgbe on a single CPU (more CPUs=14.6Mps)
> >
> > We can actually use XDP for (software) offloading the Linux routing
> > table. There are two methods we are experimenting with:
> >
> > (1) externally monitor route changes from userspace and update BPF-maps
> > to reflect this. That approach is already accepted upstream[4][5]. I'm
> > measuring 9,513,746 pps per CPU with that approach.
> >
> > (2) add a bpf helper to simply call fib_table_lookup() from the XDP hook.
> > This is still experimental patches (credit to David Ahern), and I've
> > measured 9,350,160 pps with this approach in a single CPU. Using more
> > CPUs we hit 14.6Mpps (only used 3 CPUs in that test)
>
> Neat. Perhaps trying xdp on the itty bitty routers I usually work on
> would be a win.
Definitely. It will be a huge win for small routers. This is part of my
grand scheme. We/I just need to implement XDP in one of these small
router's driver.
That said, XDP skip many layers and features of the network stack that
you likely need on these small routers e.g. like NAT...
> > [4] https://github.com/torvalds/linux/blob/master/samples/bpf/xdp_router_ipv4_user.c
> > [5] https://github.com/torvalds/linux/blob/master/samples/bpf/xdp_router_ipv4_kern.c
>
> thx very much for the update.
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Principal Kernel Engineer at Red Hat
LinkedIn: http://www.linkedin.com/in/brouer
next prev parent reply other threads:[~2017-12-07 8:49 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-03 17:44 [Cerowrt-devel] quad core arm Dave Taht
2017-12-03 18:18 ` Joel Wirāmu Pauling
2017-12-03 19:18 ` Matt Taggart
2017-12-03 19:55 ` Dave Taht
2017-12-03 20:47 ` Joel Wirāmu Pauling
2017-12-04 4:19 ` [Cerowrt-devel] DC behaviors today Dave Taht
2017-12-04 9:13 ` Mikael Abrahamsson
2017-12-04 9:31 ` Joel Wirāmu Pauling
2017-12-04 10:18 ` Mikael Abrahamsson
2017-12-04 10:27 ` Joel Wirāmu Pauling
2017-12-04 10:43 ` [Cerowrt-devel] [Bloat] " Pedro Tumusok
2017-12-04 10:47 ` Joel Wirāmu Pauling
2017-12-04 10:57 ` Pedro Tumusok
2017-12-04 10:59 ` Joel Wirāmu Pauling
2017-12-04 12:44 ` Mikael Abrahamsson
2017-12-04 19:59 ` dpreed
2017-12-08 7:05 ` Mikael Abrahamsson
2017-12-12 15:09 ` Luca Muscariello
2017-12-12 18:36 ` Dave Taht
2017-12-12 22:53 ` dpreed
2017-12-12 23:20 ` Jonathan Morton
2017-12-13 10:20 ` Mikael Abrahamsson
2017-12-13 10:45 ` Luca Muscariello
2017-12-13 15:26 ` Neil Davies
2017-12-13 16:41 ` Jonathan Morton
2017-12-13 18:08 ` dpreed
2017-12-13 19:55 ` Neil Davies
2017-12-13 21:06 ` Jonathan Morton
2017-12-14 8:22 ` Mikael Abrahamsson
2017-12-17 21:37 ` Benjamin Cronce
2017-12-18 8:11 ` Mikael Abrahamsson
2017-12-17 11:52 ` Matthias Tafelmeier
2017-12-18 7:50 ` Mikael Abrahamsson
2017-12-19 17:55 ` Matthias Tafelmeier
2017-12-27 15:15 ` Matthias Tafelmeier
2018-01-20 11:55 ` Joel Wirāmu Pauling
2017-12-04 12:41 ` [Cerowrt-devel] " Mikael Abrahamsson
2017-12-04 10:56 ` [Cerowrt-devel] Linux network is damn fast, need more use XDP (Was: [Bloat] DC behaviors today) Jesper Dangaard Brouer
2017-12-04 17:00 ` [Cerowrt-devel] [Bloat] Linux network is damn fast, need more use XDP (Was: " Dave Taht
2017-12-04 20:49 ` Joel Wirāmu Pauling
2017-12-07 8:43 ` Jesper Dangaard Brouer
2017-12-07 8:49 ` Jesper Dangaard Brouer [this message]
2017-12-04 17:19 ` Matthias Tafelmeier
2017-12-03 19:49 ` [Cerowrt-devel] quad core arm Dave Taht
2017-12-04 0:19 ` Michael Richardson
2017-12-04 23:18 ` Matt Taggart
2017-12-04 0:11 ` Michael Richardson
2017-12-04 0:34 ` Joel Wirāmu Pauling
2017-12-04 23:40 ` Matt Taggart
2017-12-04 23:58 ` Joel Wirāmu Pauling
2017-12-05 10:13 ` Toke Høiland-Jørgensen
2017-12-06 8:59 ` Dave Taht
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
List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171207094949.0459d5b8@redhat.com \
--to=brouer@redhat.com \
--cc=bloat@lists.bufferbloat.net \
--cc=cerowrt-devel@lists.bufferbloat.net \
--cc=christina.jacob.koikara@gmail.com \
--cc=dave.taht@gmail.com \
--cc=dave@taht.net \
--cc=dsa@cumulusnetworks.com \
--cc=joel@aenertia.net \
--cc=tariqt@mellanox.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