From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3953CA0542 for ; Tue, 6 Sep 2022 12:48:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3DC240143; Tue, 6 Sep 2022 12:48:30 +0200 (CEST) Received: from CNSHPPMGWESA02.NOKIA-SBELL.COM (unknown [116.246.26.45]) by mails.dpdk.org (Postfix) with ESMTP id 79113400D6 for ; Tue, 6 Sep 2022 12:48:28 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.93,294,1654531200"; d="scan'208,217";a="5274701" Received: from unknown (HELO CNSHPPEXCH1606.nsn-intra.net) ([135.251.51.106]) by CNSHPPMGWESA02.NOKIA-SBELL.COM with ESMTP; 06 Sep 2022 18:46:08 +0800 Received: from CNSHPPEXCH1601.nsn-intra.net (135.251.51.101) by CNSHPPEXCH1606.nsn-intra.net (135.251.51.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 6 Sep 2022 18:46:08 +0800 Received: from CNSHPPEXCH1601.nsn-intra.net ([135.251.51.101]) by CNSHPPEXCH1601.nsn-intra.net ([135.251.51.101]) with mapi id 15.01.2375.031; Tue, 6 Sep 2022 18:46:08 +0800 From: "Yan, Xiaoping (NSB - CN/Hangzhou)" To: "users@dpdk.org" Subject: using dpdk-testpmd as traffic generator for dpdk application performance test Thread-Topic: using dpdk-testpmd as traffic generator for dpdk application performance test Thread-Index: AdjB22Vsfnu1K5aISRahdiYyKNgx/g== Date: Tue, 6 Sep 2022 10:46:08 +0000 Message-ID: <000cbcc0b8074fdba1d203463065b941@nokia-sbell.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [135.251.51.115] Content-Type: multipart/alternative; boundary="_000_000cbcc0b8074fdba1d203463065b941nokiasbellcom_" MIME-Version: 1.0 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --_000_000cbcc0b8074fdba1d203463065b941nokiasbellcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I'm trying to use dpdk-testpmd TX-ONLY mode as traffic generator for perfor= mance 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 p= acket 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=3D1 --portmask=3D0x1 --rxd=3D2048 --txd=3D2048 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 --_000_000cbcc0b8074fdba1d203463065b941nokiasbellcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I’m trying to use dpdk-te= stpmd TX-ONLY mode as traffic generator for performance test.

With command like below, the te= stpmd is sending traffic in quit high rate.

Is there some way to configure = the generated packet rate?

I tried to set txtimes (set txt= imes 1000,1000), but it seems no effect on packet rate.

Also do we have some way to sho= w 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&quo= t; --legacy-mem --socket-mem "1000,4000" -a 0000:b1:04.7 -- -i --= nb-cores=3D1 --portmask=3D0x1 --rxd=3D2048 --txd=3D2048

testpmd> port stop 0

testpmd> vlan set filter on = 0

testpmd> rx_vlan add 1111 0<= o:p>

testpmd> port start 0

testpmd> set fwd txonly=

testpmd> set txpkts 64<= /o:p>

testpmd> set eth-peer 0 4A:8= F:F1:22:C8:F3

testpmd> start

 

 

 

 

 

 

--_000_000cbcc0b8074fdba1d203463065b941nokiasbellcom_--