DPDK usage discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: "Yan, Xiaoping (NSB - CN/Hangzhou)" <xiaoping.yan@nokia-sbell.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: using dpdk-testpmd as traffic generator for dpdk application performance test
Date: Tue, 6 Sep 2022 08:26:23 -0700	[thread overview]
Message-ID: <20220906082624.79e04895@hermes.local> (raw)
In-Reply-To: <000cbcc0b8074fdba1d203463065b941@nokia-sbell.com>

On Tue, 6 Sep 2022 10:46:08 +0000
"Yan, Xiaoping (NSB - CN/Hangzhou)" <xiaoping.yan@nokia-sbell.com> wrote:

> Hi,
> 
> I'm trying to use dpdk-testpmd TX-ONLY mode as traffic generator for performance test.
> With command like below, the testpmd is sending traffic in quit high rate.
> Is there some way to configure the generated packet rate?
> I tried to set txtimes (set txtimes 1000,1000), but it seems no effect on packet rate.
> Also do we have some way to show current packet rate in testpmd?
> Thank you.
> 
> I'm using dpdk 21.11, and using Mellanox CX-6 SRIOV VF for testing.
> 
> Testpmd command used:
> dpdk-testpmd -l "32,33" --legacy-mem --socket-mem "1000,4000" -a 0000:b1:04.7 -- -i --nb-cores=1 --portmask=0x1 --rxd=2048 --txd=2048
> testpmd> port stop 0
> testpmd> vlan set filter on 0
> testpmd> rx_vlan add 1111 0
> testpmd> port start 0
> testpmd> set fwd txonly
> testpmd> set txpkts 64
> testpmd> set eth-peer 0 4A:8F:F1:22:C8:F3
> testpmd> start  

There multiple other packet generators using DPDK (trex, pkt-gen, etc).
The purpose of testpmd is to test drivers; if you need something with more control use another program.


      reply	other threads:[~2022-09-06 15:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-06 10:46 Yan, Xiaoping (NSB - CN/Hangzhou)
2022-09-06 15:26 ` Stephen Hemminger [this message]

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=20220906082624.79e04895@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=users@dpdk.org \
    --cc=xiaoping.yan@nokia-sbell.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).