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 1BB6AA054A for ; Tue, 6 Sep 2022 17:26:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9FE9640143; Tue, 6 Sep 2022 17:26:27 +0200 (CEST) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTP id B4DE2400D6 for ; Tue, 6 Sep 2022 17:26:26 +0200 (CEST) Received: by mail-pg1-f169.google.com with SMTP id t65so14357pgt.2 for ; Tue, 06 Sep 2022 08:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date; bh=ZVoN/CSmtWFaW9JzgvbutbB2Cvi/m6v5rx4AEUlN9Lg=; b=N6ReOV9oBuS0eVfHpgq/uR2RwtS7/D5FRMHI4eDVxcLcRKVdcg1jy3FDD/mQgqPP5C mMPdwFbhdKlKqV6rUaSNEHBYefOP7bhnPs3i2iMyjGRgfTeA81JC9VUDa7lC5sC19wIr BFb6kLt5TBUJOboxCee0A62ZOmlIMivH7dLAEwXLCfBELPp+YPluNUtTVrzSb4WL8kOD s6Jo87uvCANS/O49X/Ot7jYzkdAnVqPy/YIFkzP9ab0+7ROYo0s6HglvLFot6S0RkDtM FAHo4QIJxv/AowjxNsELWsmL8HKbqNPamgiQnYfGAwotpOGDsZYfIWFa/v6Gh67XbQ1A FH3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date; bh=ZVoN/CSmtWFaW9JzgvbutbB2Cvi/m6v5rx4AEUlN9Lg=; b=6f0s3iuHgJINti/gp4+asRt/6S/ZlEWXv7TkPzGD9t50f7P+5bMB3mkqrdBHolZaFC YG4104frSpEGEQKqgfCnYtO5vETF39IDeWK5LHxAl1E9d8TYlV+N/gQUY8aE9V90HjeU 0z1E/05mdtSbOgrIWCUX2UrYi7jusJPdN1w4kbknoIdXoIE7Uhy8o7gkwDmlFZYJBrxk 0wGXyl66V7yQVgkZ2OlVAmZkyMPeV1GzMFpd874E8e7DAQTUe5RIHUFK3DM/o5TYIWfb 71qqgLRsUJ3uPUFf/VhpsbRfSm2BFuG6a+WSMudBpKwZc9nJTBMzCVUGtZhxKEHUhnO+ dCAw== X-Gm-Message-State: ACgBeo0YF5IvU/qW9h9UJJhCh13dSvaZoLr5N/5NY520LuNzcfOyDAlu 18mAcOSLSV3M5JdQMQEH1O1bFg== X-Google-Smtp-Source: AA6agR6TBzi7GmS43Udxl9iWhDplM7pzVbGcg1zfXARUDQGGGvPSybHy4EnMwVE11qWNDVMK1rDAsg== X-Received: by 2002:a63:902:0:b0:434:760f:9c83 with SMTP id 2-20020a630902000000b00434760f9c83mr6391200pgj.608.1662477985832; Tue, 06 Sep 2022 08:26:25 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id d19-20020a621d13000000b0053e42167a33sm1464966pfd.53.2022.09.06.08.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 08:26:25 -0700 (PDT) Date: Tue, 6 Sep 2022 08:26:23 -0700 From: Stephen Hemminger To: "Yan, Xiaoping (NSB - CN/Hangzhou)" Cc: "users@dpdk.org" Subject: Re: using dpdk-testpmd as traffic generator for dpdk application performance test Message-ID: <20220906082624.79e04895@hermes.local> In-Reply-To: <000cbcc0b8074fdba1d203463065b941@nokia-sbell.com> References: <000cbcc0b8074fdba1d203463065b941@nokia-sbell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Tue, 6 Sep 2022 10:46:08 +0000 "Yan, Xiaoping (NSB - CN/Hangzhou)" 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.