From: Ferruh Yigit <ferruh.yigit@intel.com>
To: Igor Russkikh <irusskikh@marvell.com>, dev@dpdk.org
Cc: Rasesh Mody <rmody@marvell.com>,
Devendra Singh Rawat <dsinghrawat@marvell.com>,
Wenzhuo Lu <wenzhuo.lu@intel.com>,
Beilei Xing <beilei.xing@intel.com>,
Bernard Iremonger <bernard.iremonger@intel.com>,
David Marchand <david.marchand@redhat.com>
Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: tx pkt clones parameter in flowgen
Date: Fri, 29 Jan 2021 10:30:58 +0000 [thread overview]
Message-ID: <a5826250-5b78-3240-d4a8-550ce6d48659@intel.com> (raw)
In-Reply-To: <20210121180530.2984-1-irusskikh@marvell.com>
On 1/21/2021 6:05 PM, Igor Russkikh wrote:
> When testing high performance numbers, it is often that CPU performance
> limits the max values device can reach (both in pps and in gbps)
>
> Here instead of recreating each packet separately, we use clones counter
> to resend the same mbuf to the line multiple times.
>
> PMDs handle that transparently due to reference counting inside of mbuf.
>
> Reaching max PPS on small packet sizes helps here:
> Some data from our 2 port x 50G device. Using 2*6 tx queues, 64b packets,
> PowerEdge R7525, AMD EPYC 7452:
>
> ./build/app/dpdk-testpmd -l 32-63 -- --forward-mode=flowgen \
> --rxq=6 --txq=6 --disable-crc-strip --burst=512 \
> --flowgen-clones=0 --txd=4096 --stats-period=1 --txpkts=64
>
> Gives ~46MPPS TX output:
>
> Tx-pps: 22926849 Tx-bps: 11738590176
> Tx-pps: 23642629 Tx-bps: 12105024112
>
> Setting flowgen-clones to 512 pushes TX almost to our device
> physical limit (68MPPS) using same 2*6 queues(cores):
>
> Tx-pps: 34357556 Tx-bps: 17591073696
> Tx-pps: 34353211 Tx-bps: 17588802640
>
> Doing similar measurements per core, I see one core can do
> 6.9MPPS (without clones) vs 11MPPS (with clones)
>
> Verified on Marvell qede and atlantic PMDs.
>
> v2:
> - fixed warning on uninit var
> v1:
> - fixes on Ferruh's comments
>
> rfc v2: http://patchwork.dpdk.org/patch/78800/
> - increment ref counter for each mbuf pointer copy
> rfc v1: http://patchwork.dpdk.org/patch/78674/
>
> Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Also a testpmd command to set the 'flowgen-clones' can be useful, for
interactive mode. If you have time for it, can you please work on it too?
Applied to dpdk-next-net/main, thanks.
next prev parent reply other threads:[~2021-01-29 10:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-21 18:05 Igor Russkikh
2021-01-29 10:30 ` Ferruh Yigit [this message]
2021-01-29 10:43 ` [dpdk-dev] [EXT] " Igor Russkikh
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=a5826250-5b78-3240-d4a8-550ce6d48659@intel.com \
--to=ferruh.yigit@intel.com \
--cc=beilei.xing@intel.com \
--cc=bernard.iremonger@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=dsinghrawat@marvell.com \
--cc=irusskikh@marvell.com \
--cc=rmody@marvell.com \
--cc=wenzhuo.lu@intel.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;
as well as URLs for NNTP newsgroup(s).