XDP-Newbies Archive mirror
 help / color / mirror / Atom feed
From: Srivats P <pstavirs@gmail.com>
To: Xdp <xdp-newbies@vger.kernel.org>
Subject: Full 40Gbps with i40e for large packets?
Date: Fri, 24 Jun 2022 18:51:33 +0530	[thread overview]
Message-ID: <CANzUK5-ooeCADg0+N47TN29J5Pcknb8CF+3mrC7_jWDp-J-zNw@mail.gmail.com> (raw)

Hi,

Using the xdpsock txonly benchmark in zero-copy mode with the i40e
driver, I get ~22 Mpps for 64 Byte packets.

However, for 1518 byte packets, although the theoretical pps rate for
40Gbps is ~3.25 Mpps (which is much lower than 22 Mpps), I am not able
to get the full rate - only around 39G or 39.5Gbps (i.e. < 3.25Mpps).
My assumption is AF_XDP performance is more pps dependent than packet
size related and so I thought full 40G should be achievable.

Settings:
 * tuned set to "throughput performance"
 * hardware tx ring size set to 512 descriptors - increasing it to up
to the max of 4096 doesn't have any noticeable changes

Increasing the packet size to 3000 or 4096 does bump up the Gbps rate
to around 39.9Gbps.

Is there a way to get the full 40Gbps (or close, say 39.9Gbps) tx rate
with 1518 byte packets?

Srivats

             reply	other threads:[~2022-06-24 13:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-24 13:21 Srivats P [this message]
2022-06-24 13:47 ` Full 40Gbps with i40e for large packets? Willy Tarreau
2022-06-24 15:53   ` Srivats P
2022-06-24 17:20     ` Willy Tarreau
     [not found]   ` <CAH57y_QcP9a1j0BpZcf7y+ENFXEnjh9TBYNFUNM40nNVPg8how@mail.gmail.com>
2022-06-24 18:35     ` Willy Tarreau

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=CANzUK5-ooeCADg0+N47TN29J5Pcknb8CF+3mrC7_jWDp-J-zNw@mail.gmail.com \
    --to=pstavirs@gmail.com \
    --cc=xdp-newbies@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 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 read-only IMAP folder(s) and NNTP newsgroup(s).