DPDK usage discussions
 help / color / mirror / Atom feed
From: Francesco <francesco.montorsi@gmail.com>
To: users@dpdk.org
Subject: How to limit testpmd packet generation rate when forward-mode=txonly
Date: Wed, 10 Nov 2021 17:12:12 +0100
Message-ID: <CAKW0qijg1wD_Cz35jsj0dAetCEoSra86VNunXCFWxdzGNf5EFg@mail.gmail.com> (raw)

Hi all,
I'm using testpmd as very simple packet generator to test the
capability of receive packets of my DPDK application. I'm using a
Mellanox CX5 100Gbps card for the test.

I can successfully launch testpmd with options "--forward-mode=txonly
--stats-period=3" to push 10.5MPPS on each of the 2 ports of the NIC
(using just 1 CPU core !!). This is good but I have a couple of
questions which probably are very basic hopefully:

1) can I limit the TX rate to e.g. half the value I'm getting now
(e.g. to 5MPPS) ?

2) if I want to use more than 1 CPU core for testpmd how can I achieve
that? I played with --nb-cores=5 and running testpmd in interactive
mode and then issuing "port config all txq 4" but still no luck...
testpmd will keep using only 1 CPU core

3) when I run testpmd in batch mode I get a nice report about
"throughput (since last show)" every stats period. How can I tell
testpmd to show me PPS/bytes-per-second reporting also when I start
the application with "-i" (interactive mode)?

Thanks a lot for any hint,

Francesco Montorsi

             reply	other threads:[~2021-11-10 16:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-10 16:12 Francesco [this message]
2021-11-10 17:25 ` Stephen Hemminger

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKW0qijg1wD_Cz35jsj0dAetCEoSra86VNunXCFWxdzGNf5EFg@mail.gmail.com \
    --to=francesco.montorsi@gmail.com \
    --cc=users@dpdk.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git