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 570C3A034F for ; Wed, 10 Nov 2021 17:12:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2D7D541153; Wed, 10 Nov 2021 17:12:24 +0100 (CET) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mails.dpdk.org (Postfix) with ESMTP id 2B0D241152 for ; Wed, 10 Nov 2021 17:12:23 +0100 (CET) Received: by mail-wr1-f48.google.com with SMTP id d27so4924762wrb.6 for ; Wed, 10 Nov 2021 08:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=dLDlqhaFwZMGqdvyFezlMS8LATHlwBN6+jz8nkp79IM=; b=Os4rn1aXnkymGjtYuxnLdMfhTCgRLbA2PE1k9MKJ/T83qOQXOqRmlJSdymDYphrdsQ ApJzLKV5kIicB1XAmDJe0neB2MFOAz/kcBE3wV5LeXNemhwu9QWxbrEgKBkD2YLhbXzu h6Y3WOBxCiIwyHLA4wBKG8LuyRerCQR9DsB/fqGa8nzv79hm3D0HtANIux/w0gG348hU 87XWUQ1UW+7YgXeTSc9VNpdGrsdb4iUdlY43jRst6xMEPOys+MT4Vw2tSBvxIF7Vo0t/ O8ryDpteHY6MpkgaI+DBP24Fo2hNtfQeY4+wUQYMHROSAlhNUXlU/b5U7dK0V0nogNSH zgZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dLDlqhaFwZMGqdvyFezlMS8LATHlwBN6+jz8nkp79IM=; b=ZzNyuGr5BeK1Wy2yRrykf+Yn63GdmM1VqWRgvDESJ43020O7lpgbEOY2pnQRS+nPhR +WA4z0BO6wZzLeV5/+ccBqZL0UjM42rMz/adrIIfsvs+bktoIlcC9QUO6ELl8SQKzFPq 3HHavbzKDtzC28/VA0jrrC+shqfKf8fNLVSijREctICHka2RDXTQ0uaJEyTtm2MTssPn C1PqdjHVUYz5u4bzzA9umCOSfD+2UxR/SDEnbqMkaYHNDq377+6Ddi0/K2g6Ftl9MVXJ SlzmFO60n+l4nEYXRv/Pg10QsC0bIA78VKPsNVPz0Uv4iWthGn6xky+FO/2J1H94bVIi /oJw== X-Gm-Message-State: AOAM533PAW+pDkjSN74JgWtODSq8ijR39jy9RP9FznHR0G2h0mVeLLWZ HMeGZSQiU8fVR/1vyWz63pjB7SBgIMUw0yocwWNAqYLXijttXQ== X-Google-Smtp-Source: ABdhPJzSrzeBgEY71zWRZOVoZF0qnIiP/NgDh2HvM+4cF5SQ29kJMdYt+hDKO1QQtAg2gZ7l47huMqofjHj2GqmdH08= X-Received: by 2002:adf:c78d:: with SMTP id l13mr237723wrg.134.1636560742657; Wed, 10 Nov 2021 08:12:22 -0800 (PST) MIME-Version: 1.0 From: Francesco Date: Wed, 10 Nov 2021 17:12:12 +0100 Message-ID: Subject: How to limit testpmd packet generation rate when forward-mode=txonly To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" 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 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