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 6505BA034F for ; Wed, 10 Nov 2021 18:25:36 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3A37F4113D; Wed, 10 Nov 2021 18:25:36 +0100 (CET) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mails.dpdk.org (Postfix) with ESMTP id 2A14A4113C for ; Wed, 10 Nov 2021 18:25:35 +0100 (CET) Received: by mail-pg1-f182.google.com with SMTP id f5so2832048pgc.12 for ; Wed, 10 Nov 2021 09:25:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TBeuqoL4qu/SEJp32/UUul8e7r8WQc2iI5MFAZ2kxoI=; b=ER8+wsBDKUs3VnTF5+6uTGn1RoeznceJoe7urbAL4QSgJSWvQeZuZDKctVpBmW1zQR U0xTn6m1pbDt5mACleK8XMgFi4Ms4GwiVxsaOyjcF8JGE4nWdmpp/pz3TKsWuD+zAe/U 3yamVbq8XrUQBwLZy7Q00xuks86nMzKSllWMYcE88yT5AOep/vG3RLU4nwO6kNgEgV9n UtDrG9qs9+JfJz2RefdYRchL8uTCd/lPWSjdtpMHGaTwvj/VUMyrcR8CDeQvy8RCd+8P GJcr6ynh5AB598HIqk8SjEj0/ciVgQzr/OTB7BjpunY1Gj+jhUH4+BJpZFDckHZa+9x7 bfvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TBeuqoL4qu/SEJp32/UUul8e7r8WQc2iI5MFAZ2kxoI=; b=taz2NyOencGyOSCiwXrGpxdZk5Aseq/In7b/sSoIvfrQxFdSW70brbtleRlfIIlq+H eIB2qiPfh2kXcgBh2CIcmFoTSrI+S+moNVh4xJ/Sq81THj3ixoPgVXo14LcojS10XMLW BPMt6djU86+RyenIhhtfSAM2GoIUS6U1ZFRvkWIZmwiZGkoj/28TNfHYJ7sXAQ7eYhbF H9qa7fQMFxzFK+vbI0RLEgwEFnoOFe8XDyOxzmqxRu4lPgn5Bbz6D3OF2W2aSs05pOeE 5hQayCf9M54jNFF4ImfBouzrowPE0jR3fKaNhvrNmHiyQyLrJQsdaOctQuAlu2tKJ6BD V7EA== X-Gm-Message-State: AOAM533NSruAbVplB2IgE0qDqDRdm/mbBM82pnPcl74ll7sOkjFeC0KC z12xtOSXi+8ka+l07xDwmHMnT+GYJzijgA== X-Google-Smtp-Source: ABdhPJzr+pI35GaQy9r8884blBqsypFWpAs9oHBXNijTnmbvFmQTRrZxG6Me66xoQqPf6YL0E3yzcA== X-Received: by 2002:a63:1125:: with SMTP id g37mr349005pgl.118.1636565134347; Wed, 10 Nov 2021 09:25:34 -0800 (PST) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id x20sm212969pjp.48.2021.11.10.09.25.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 09:25:34 -0800 (PST) Date: Wed, 10 Nov 2021 09:25:31 -0800 From: Stephen Hemminger To: Francesco Cc: users@dpdk.org Subject: Re: How to limit testpmd packet generation rate when forward-mode=txonly Message-ID: <20211110092531.1caeb7a4@hermes.local> In-Reply-To: References: 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 Wed, 10 Nov 2021 17:12:12 +0100 Francesco wrote: > 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 Use a real packet generator like trex if you need more control.