From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-c.ads.isi.edu ([128.9.180.198]:29252 "EHLO mail-c.ads.isi.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbgAQRyM (ORCPT ); Fri, 17 Jan 2020 12:54:12 -0500 Date: Fri, 17 Jan 2020 12:54:09 -0500 From: Ryan Goodfellow Subject: Re: zero-copy between interfaces Message-ID: <20200117175409.GC69024@smtp.ads.isi.edu> References: <14f9e1bf5c3a41dbaec53f83cb5f0564@isi.edu> <20200113124134.3974cbed@carbon> <20200113152759.GD68570@smtp.ads.isi.edu> <20200113180411.24d8bd40@carbon> MIME-Version: 1.0 In-Reply-To: <20200113180411.24d8bd40@carbon> Sender: xdp-newbies-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline To: Jesper Dangaard Brouer Cc: "xdp-newbies@vger.kernel.org" On Mon, Jan 13, 2020 at 06:04:11PM +0100, Jesper Dangaard Brouer wrote: > On Mon, 13 Jan 2020 10:28:00 -0500 > Ryan Goodfellow wrote: >=20 > > On Mon, Jan 13, 2020 at 12:41:34PM +0100, Jesper Dangaard Brouer wrote: > > > On Mon, 13 Jan 2020 00:18:36 +0000 > > > Ryan Goodfellow wrote: > > > =20 > > > > The numbers that I have been able to achive with this code are the = following. MTU > > > > is 1500 in all cases. > > > >=20 > > > > mlx5: pps ~ 2.4 Mpps, 29 Gbps (driver mode, zero-copy) > > > > i40e: pps ~ 700 Kpps, 8 Gbps (skb mode, copy) > > > > virtio: pps ~ 200 Kpps, 2.4 Gbps (skb mode, copy, all qemu/kvm = VMs) > > > >=20 > > > > Are these numbers in the ballpark of what's expected? =20 > > >=20 > > > I would say they are too slow / low. > > >=20 > > > Have you remembered to do bulking? > > > =20 > >=20 > > I am using a batch size of 256. >=20 > Hmm... >=20 > Maybe you can test with xdp_redirect_map program in samples/bpf/ and > compare the performance on this hardware? Hi Jesper, I tried to use this program, however it does not seem to work for bidirecti= onal traffic across the two interfaces? Now that I have an i40e card that is working here is an update to the numbe= rs. At 1500 MTU the i40e runs at 9.7 GBPS (using the X710-DA4 10G interface), w= ith approx 800 Kpps. Dropping the MSS size down to 700 in iperf3 yields similar near-line rate performance at 1.6 Mpps. This appears to be the limit as dro= pping the MSS further results in degraded performance at similar packet rates (co= uld be an iperf3 artifact). --=20 ~ ry