Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-18 Thread Magnus Karlsson
On Fri, May 17, 2019 at 8:20 PM Jakub Kicinski wrote: > > On Thu, 16 May 2019 14:37:51 +0200, Magnus Karlsson wrote: > > Applications > > method cores irqstxpushrxdrop l2fwd > > ---

Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-17 Thread Jakub Kicinski
On Thu, 16 May 2019 14:37:51 +0200, Magnus Karlsson wrote: > Applications > method cores irqstxpushrxdrop l2fwd > --- > r-t-c 2 y 35.9 11.28.6

Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-17 Thread Magnus Karlsson
On Fri, May 17, 2019 at 1:50 AM Samudrala, Sridhar wrote: > > On 5/16/2019 5:37 AM, Magnus Karlsson wrote: > > > > After a number of surprises and issues in the driver here are now the > > first set of results. 64 byte packets at 40Gbit/s line rate. All > > results in Mpps. Note that I just used m

Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-16 Thread Samudrala, Sridhar
On 5/16/2019 5:37 AM, Magnus Karlsson wrote: After a number of surprises and issues in the driver here are now the first set of results. 64 byte packets at 40Gbit/s line rate. All results in Mpps. Note that I just used my local system and kernel build for these numbers so they are not performanc

Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-16 Thread Magnus Karlsson
On Wed, May 8, 2019 at 2:10 PM Magnus Karlsson wrote: > > On Tue, May 7, 2019 at 8:24 PM Alexei Starovoitov > wrote: > > > > On Tue, May 07, 2019 at 01:51:45PM +0200, Magnus Karlsson wrote: > > > On Mon, May 6, 2019 at 6:33 PM Alexei Starovoitov > > > wrote: > > > > > > > > On Thu, May 02, 2019

Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-14 Thread Björn Töpel
On Mon, 13 May 2019 at 22:44, Jonathan Lemon wrote: > > Tossing in my .02 cents: > > > I anticipate that most users of AF_XDP will want packet processing > for a given RX queue occurring on a single core - otherwise we end > up with cache delays. The usual model is one thread, one socket, > one c

Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-13 Thread Samudrala, Sridhar
On 5/13/2019 1:42 PM, Jonathan Lemon wrote: Tossing in my .02 cents: I anticipate that most users of AF_XDP will want packet processing for a given RX queue occurring on a single core - otherwise we end up with cache delays. The usual model is one thread, one socket, one core, but this isn't e

Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-13 Thread Jonathan Lemon
Tossing in my .02 cents: I anticipate that most users of AF_XDP will want packet processing for a given RX queue occurring on a single core - otherwise we end up with cache delays. The usual model is one thread, one socket, one core, but this isn't enforced anywhere in the AF_XDP code and is up

Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-08 Thread Magnus Karlsson
On Tue, May 7, 2019 at 8:24 PM Alexei Starovoitov wrote: > > On Tue, May 07, 2019 at 01:51:45PM +0200, Magnus Karlsson wrote: > > On Mon, May 6, 2019 at 6:33 PM Alexei Starovoitov > > wrote: > > > > > > On Thu, May 02, 2019 at 10:39:16AM +0200, Magnus Karlsson wrote: > > > > This RFC proposes to

Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-07 Thread Alexei Starovoitov
On Tue, May 07, 2019 at 01:51:45PM +0200, Magnus Karlsson wrote: > On Mon, May 6, 2019 at 6:33 PM Alexei Starovoitov > wrote: > > > > On Thu, May 02, 2019 at 10:39:16AM +0200, Magnus Karlsson wrote: > > > This RFC proposes to add busy-poll support to AF_XDP sockets. With > > > busy-poll, the drive

Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-07 Thread Magnus Karlsson
On Mon, May 6, 2019 at 6:33 PM Alexei Starovoitov wrote: > > On Thu, May 02, 2019 at 10:39:16AM +0200, Magnus Karlsson wrote: > > This RFC proposes to add busy-poll support to AF_XDP sockets. With > > busy-poll, the driver is executed in process context by calling the > > poll() syscall. The main

Re: [RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-06 Thread Alexei Starovoitov
On Thu, May 02, 2019 at 10:39:16AM +0200, Magnus Karlsson wrote: > This RFC proposes to add busy-poll support to AF_XDP sockets. With > busy-poll, the driver is executed in process context by calling the > poll() syscall. The main advantage with this is that all processing > occurs on a single core

[RFC bpf-next 0/7] busy poll support for AF_XDP sockets

2019-05-02 Thread Magnus Karlsson
This RFC proposes to add busy-poll support to AF_XDP sockets. With busy-poll, the driver is executed in process context by calling the poll() syscall. The main advantage with this is that all processing occurs on a single core. This eliminates the core-to-core cache transfers that occur between the