DPDK usage discussions
 help / color / mirror / Atom feed
* How to limit testpmd packet generation rate when forward-mode=txonly
@ 2021-11-10 16:12 Francesco
  2021-11-10 17:25 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Francesco @ 2021-11-10 16:12 UTC (permalink / raw)
  To: users

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-10 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10 16:12 How to limit testpmd packet generation rate when forward-mode=txonly Francesco
2021-11-10 17:25 ` Stephen Hemminger

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).