From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2AE27A0093; Wed, 20 May 2020 05:21:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 551251D15A; Wed, 20 May 2020 05:21:02 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 5A0241D14F for ; Wed, 20 May 2020 05:21:01 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B913F30E; Tue, 19 May 2020 20:21:00 -0700 (PDT) Received: from dp6132.usa.Arm.com (dp6132.usa.arm.com [10.118.91.150]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ADCFF3F52E; Tue, 19 May 2020 20:21:00 -0700 (PDT) From: Dharmik Thakkar To: Wenzhuo Lu , Beilei Xing , Bernard Iremonger , John McNamara , Marko Kovacevic Cc: dev@dpdk.org, nd@arm.com, Dharmik Thakkar Date: Wed, 20 May 2020 03:20:22 +0000 Message-Id: <20200520032023.2649-1-dharmik.thakkar@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200508223829.3228-3-dharmik.thakkar@arm.com> References: <20200508223829.3228-3-dharmik.thakkar@arm.com> Subject: [dpdk-dev] [PATCH v3 1/2] doc: add cycles per packet in testpmd user guide X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Update documentation for 'show fwd' testpmd runtime function to show CPU cycles/packet example. Signed-off-by: Dharmik Thakkar Reviewed-by: Honnappa Nagarahalli Reviewed-by: Phil Yang --- v3: - Keep existing stats and add a note providing CPU cycles/packet example (Ferruh) - Remove platform specific information (Ferruh) - Remove performance numbers from CPU cycles/packet example (Ferruh) - Fix typo in CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES (Ferruh) v2: - Use shorter lines, up to 100. --- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index 3ded179ee72a..a808b6a308f2 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -372,6 +372,12 @@ Example for the io forwarding engine, with some packet drops on the tx side:: TX-packets: 548595568 TX-dropped: 128 TX-total: 548595696 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.. note:: + + Enabling CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES appends "CPU cycles/packet" stats, like: + + CPU cycles/packet=xx.dd (total cycles=xxxx / total RX packets=xxxx) at xxx MHz clock + clear fwd ~~~~~~~~~ -- 2.17.1