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 73D4EA00C5; Fri, 8 May 2020 00:28:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1CA6F1DA51; Fri, 8 May 2020 00:28:05 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80079.outbound.protection.outlook.com [40.107.8.79]) by dpdk.org (Postfix) with ESMTP id CF5181D9FC for ; Fri, 8 May 2020 00:28:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j08gBf7x244UeZOKDEgbwYQA2F4+HB2JwwYOdLOIiLc=; b=TTkLm0SsQdk3n/5XfuJEqwhFjN8tQ3WdO99XtB/P7LDWqeld9AQ/MSPuSseGNgpi8ALmVdrPEEiJbCGxlYw813T1lib4ns2GGu1S8M18/OOzvXGvJTUWaYRbq08G9EDMbqbZp4GoIf/rjPisTsLQlCuYl6l3e/A2clQHqYU1AJM= Received: from DB8PR09CA0029.eurprd09.prod.outlook.com (2603:10a6:10:a0::42) by DB6PR0801MB1765.eurprd08.prod.outlook.com (2603:10a6:4:38::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.21; Thu, 7 May 2020 22:28:01 +0000 Received: from DB5EUR03FT025.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:a0:cafe::37) by DB8PR09CA0029.outlook.office365.com (2603:10a6:10:a0::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27 via Frontend Transport; Thu, 7 May 2020 22:28:01 +0000 Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT025.mail.protection.outlook.com (10.152.20.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.27 via Frontend Transport; Thu, 7 May 2020 22:28:01 +0000 Received: ("Tessian outbound fb9de21a7e90:v54"); Thu, 07 May 2020 22:28:01 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 228229693c1a076a X-CR-MTA-TID: 64aa7808 Received: from 29a0fca15ab3.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 958668AA-1311-4D13-9BE5-9478631BAAD2.1; Thu, 07 May 2020 22:27:56 +0000 Received: from EUR03-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 29a0fca15ab3.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 07 May 2020 22:27:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mjfWAfzwHV9eF3gJKAm6IaaqoynsIvtVayAwIIMTJoJIY5YjMlDehctOA1mluUW8KA8L1FMYphnNgkPz306T0Mda59E70cYFG5n6tLuOr1sPTAQH4TSXglrm4VjejB43l5uMEWPFq7P/LJNeghDxOSHGA4NyR91tcqEyDBYeFnDG49VHJCSZBqSwLg25H+JEh6FvXcc9YDKLNtAJN6BO48Ud60r3L3t8dbRUhAfIukgH9cMzvijOg6IuaTjsj6Vy5cBc2tyG0s0N2F/c/DE8xty5xGz/SWycWSggmJbvspAPgdnWL/p9xZsI4rUwlMGUB9N+dKgzvHbaSXvZ6uEAzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j08gBf7x244UeZOKDEgbwYQA2F4+HB2JwwYOdLOIiLc=; b=esppqukgXLhWikO3uzBrnyj71TNzPcUjtMMiCiqBGIHhgWORnuxj43ZiKsDODOpkYhZr9vZhWTQBJD9mQQQRDrQhrHR+GlVz6bmDU0PSffJIjxQCvQ9SXp16f0P+SiFBIR2FFtlQmf+vE25qgU66rBV/+t3sdzhfjFzS3o5Sr55gUl8I13y8izeFshBeIOJvrF6ODypJlp104rUmCYSkfMKkOQ0W7lnwTaKzMX+OFQQD2CmA/GITSdBA3fuOqzlHnLH2AP0Nc4sDzH6rRWbI52vL5m3i2GDX4Gk8SmeB/L1cLLqchT4IWOeGaEnSLGaK4Ny4Py1VJdtlQTA6MarIrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j08gBf7x244UeZOKDEgbwYQA2F4+HB2JwwYOdLOIiLc=; b=TTkLm0SsQdk3n/5XfuJEqwhFjN8tQ3WdO99XtB/P7LDWqeld9AQ/MSPuSseGNgpi8ALmVdrPEEiJbCGxlYw813T1lib4ns2GGu1S8M18/OOzvXGvJTUWaYRbq08G9EDMbqbZp4GoIf/rjPisTsLQlCuYl6l3e/A2clQHqYU1AJM= Received: from VI1PR08MB4622.eurprd08.prod.outlook.com (2603:10a6:803:bc::17) by VI1PR08MB3565.eurprd08.prod.outlook.com (2603:10a6:803:84::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.29; Thu, 7 May 2020 22:27:53 +0000 Received: from VI1PR08MB4622.eurprd08.prod.outlook.com ([fe80::d15c:d586:718a:2166]) by VI1PR08MB4622.eurprd08.prod.outlook.com ([fe80::d15c:d586:718a:2166%7]) with mapi id 15.20.2979.030; Thu, 7 May 2020 22:27:53 +0000 From: Dharmik Thakkar To: Jerin Jacob CC: Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , John McNamara , Marko Kovacevic , dpdk-dev , nd Thread-Topic: [dpdk-dev] [PATCH 3/5] doc: add cycles per packet in testpmd user guide Thread-Index: AQHWI/GixkGBL44+E0GK8KmczSReOqicF8AAgAEd2YA= Date: Thu, 7 May 2020 22:27:53 +0000 Message-ID: <9F0C53CB-158B-4D4C-BA7E-5253A5CC26F4@arm.com> References: <20200506215847.7628-1-dharmik.thakkar@arm.com> <20200506215847.7628-3-dharmik.thakkar@arm.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [72.182.82.154] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3ae3daf9-cf9a-4bbc-2692-08d7f2d5e70d x-ms-traffictypediagnostic: VI1PR08MB3565:|DB6PR0801MB1765: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:7691;OLM:7691; x-forefront-prvs: 03965EFC76 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Lp+xNFBJr9YaGqDoFe+gPQBSc1F9pKWb2MvKWD4lg8UQieKT6RBSzgvu6HmVRFaYidtONL4oN1S33kyWlgUtJU0d4VjBjMBD3JGn02r2oDXvYYVovIlsNEZO8T0fwvCzUmyKDL5a7v2OnsV2x+y0rQkeZ32yebhc56RE9390BxCEDSbuDGAwgoCi+J5ZGKjohjH/G6IalNh1nXYuwWIFJz2vbT7ElJK6ueREx0OHOYA+aYjNHeLj4I9yqH8+se0fuTCFYUGbqdXY0lEiJBjp8+DnTdPDURiMQlU0/oFVWPyP+jdmk3NPGmXqK2WMe9l+Jwt0PtIVAGl5neqBGBB7PvxTV04DNllvstHrCUKcMOFCWSSa7hNzXnhC7Ovs0TBKhnQvnZTrDJUo14FqNrt7OoK4M9TTi6xbIfS06EQigWqc51N7/fj+Fz7+nZ7wk4A1I+QSNXc0ltSItGu5bAKJ30fdVge6kFDUxU3C6bmrLFvZf83vper+X6QpbWkTcONqTSWP0KyhVs4WSVTSpbCZ/w== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB4622.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(136003)(396003)(346002)(39860400002)(376002)(33430700001)(66446008)(316002)(478600001)(91956017)(76116006)(2616005)(186003)(5660300002)(66556008)(6506007)(83300400001)(66476007)(26005)(33440700001)(83320400001)(66946007)(83280400001)(83310400001)(86362001)(83290400001)(71200400001)(2906002)(64756008)(6512007)(4326008)(36756003)(53546011)(6486002)(8676002)(8936002)(33656002)(54906003)(6916009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: ZGA3YZDvhNIbkkxjdbgeAyO8txowGxkP33L4OJ6sW/e1d7DC0bjfh9vnA1V64gkuS/788/fvFVrRj6qNiNrnWEmeRWv3oFd79SrykqdXWV1kuZGz7G1CG7Hn7xpWWdgQ2tiPCM/JJhhNxhU56VBcDAra8EIhmpjji87qeGzgu9jGtHU6Hw2ouOgYrQxL1bb6IxavgSNDXFhmgXbnlNgX7X9k18xoF1mlslBnHtFg+8wKgjakRa0e6itR7YJoxH8Yhru6/5mmYJqmW3YszPiC2KoxSzsr1s4UwGSu35C+dlikYkMkbXosB1NPlDrwmlcej5ptj6mL8ifbvQ22cFKHdYmXbFBeiNDPAjcEocFCDhlKnLHftHthb9DlZibIT6bmIicS2ai5jVJMKn17ivGM+TSE2TAbcqSteFXpvC2i3hkU/M9S40eyAHjl0EHRHfBXVvvwFbjn9UtDPhSHZpkbqPsObnazuFkmeyfNfHadkxlo/MLr5zYWC/i/0pOpcz+GgflMsVSw9PIi/SoHD7mEqr948lRgDEBCq2aQi416esujAsoMBS4FHcD1wG14X7zpA0+tXh+tfiLmUMYY4bLSxlX5s1fxVW8/gUw1CrH/3TQKmn7huB/l586pIX6xA9rJILkxV4POjqcCI5A5BmddSh1r4c2xYyuUaZtpsWyIqeKOsOV1sjPE+o/m/nM6Y4AXgj6SJ+cilQkmO8ybBj70y/KMMXbviPAPlqQ7p6d0oWKql9yYEpjlwtm0nOxd7J2/vLWLAjXmNsy+jljJVrnudjocyO5blnZhUJp6HAkor0M= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <8423FA7EA2AE3642969EDE829C9873D5@eurprd08.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3565 Original-Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT025.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(396003)(136003)(346002)(376002)(46966005)(33430700001)(70206006)(36756003)(6862004)(70586007)(26005)(6512007)(356005)(2906002)(186003)(8936002)(86362001)(336012)(81166007)(6486002)(4326008)(47076004)(54906003)(33656002)(316002)(33440700001)(82310400002)(5660300002)(8676002)(6506007)(82740400003)(478600001)(53546011)(2616005); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 9350618e-ede4-4ccf-1cc7-08d7f2d5e283 X-Forefront-PRVS: 03965EFC76 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c2xcCqDcyXQWDjftuuePN1IEwoXuRBwECcaL0Vq82dftyueqkMpvzqMUzYOrqJVcFnIpcGRCc8uXMYkvh/DCa7eBfKwacFNNXIK1rqnxyAOBd/mqN0VXQOdCPiQRM69G7KTIl0Xkx81dDkL0c1L9abPx+pPJh/350qUaML/ZxybMRGMxAAAq6ArW8WR9sPJ21E7YJOCzQY5VnhDD7HthInVzRps8st+9j88H9Ijz4fvNhB8s2uhxU2+JvtUp/ejxyqJWxgKZAstpCdolV5f2uRQrIgw2l2PIjEgUUwvHoq6QZq3XQbCuuvm1lTFWDnkyByzj8i3eEmN+Y86frfXLeY5YClOnhuK/rxEATz7OnGbSNzyyFWSWDYboioZco2heTZwN9PomOKGnI2A0ermCwsoCOSBJhGTtHt+GFRRwtqStStwPsTs+m0VxQEKu+GHOiSeVXybPmGpYxOFwmRk8HJi9urwCwabCuJUHhhlNSEz8C+2QDylhI4egfDDeqsXUAFwq8zRnwlrWA9AOGI75dWvRgJUL2EJw2uEfENS1epidBEJz5AeUdMelElAxNnG1uI3HtsRiD/n7QrvIFzXFnQ== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2020 22:28:01.4369 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3ae3daf9-cf9a-4bbc-2692-08d7f2d5e70d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1765 Subject: Re: [dpdk-dev] [PATCH 3/5] 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" Hi Jerin, > On May 7, 2020, at 12:24 AM, Jerin Jacob wrote: >=20 > On Thu, May 7, 2020 at 3:30 AM Dharmik Thakkar = wrote: >>=20 >> Update documentation for 'show fwd' testpmd runtime function to show >> CPU cycles/packet example. >>=20 >> Signed-off-by: Dharmik Thakkar >> Reviewed-by: Honnappa Nagarahalli >> Reviewed-by: Phil Yang >> --- >> doc/guides/testpmd_app_ug/testpmd_funcs.rst | 51 +++++++++++++-------- >> 1 file changed, 31 insertions(+), 20 deletions(-) >>=20 >> diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/te= stpmd_app_ug/testpmd_funcs.rst >> index a360ecccfd3f..2e565ccdbcd4 100644 >> --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst >> +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst >> @@ -351,26 +351,37 @@ Example for the io forwarding engine, with some pa= cket drops on the tx side:: >>=20 >> testpmd> show fwd stats all >>=20 >> - ------- Forward Stats for RX Port=3D 0/Queue=3D 0 -> TX Port=3D 1/= Queue=3D 0 ------- >> - RX-packets: 274293770 TX-packets: 274293642 TX-dropped: = 128 >> - >> - ------- Forward Stats for RX Port=3D 1/Queue=3D 0 -> TX Port=3D 0/= Queue=3D 0 ------- >> - RX-packets: 274301850 TX-packets: 274301850 TX-dropped: = 0 >> - >> - ---------------------- Forward statistics for port 0 ------------= ---------- >> - RX-packets: 274293802 RX-dropped: 0 RX-total: 274= 293802 >> - TX-packets: 274301862 TX-dropped: 0 TX-total: 274= 301862 >> - ------------------------------------------------------------------= ---------- >> - >> - ---------------------- Forward statistics for port 1 ------------= ---------- >> - RX-packets: 274301894 RX-dropped: 0 RX-total: 274= 301894 >> - TX-packets: 274293706 TX-dropped: 128 TX-total: 274= 293834 >> - ------------------------------------------------------------------= ---------- >> - >> - +++++++++++++++ Accumulated forward statistics for all ports++++++= +++++++++ >> - RX-packets: 548595696 RX-dropped: 0 RX-total: 548= 595696 >> - TX-packets: 548595568 TX-dropped: 128 TX-total: 548= 595696 >> - ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++++ >> + ------- Forward Stats for RX Port=3D 0/Queue=3D 0 -> TX Port=3D 1/= Queue=3D 0 ------- >> + RX-packets: 43536504 TX-packets: 43536488 TX-dropped: = 0 >> + >> + ------- Forward Stats for RX Port=3D 1/Queue=3D 0 -> TX Port=3D 0/= Queue=3D 0 ------- >> + RX-packets: 149738504 TX-packets: 149738504 TX-dropped: = 0 >> + >> + ------- Forward Stats for RX Port=3D 1/Queue=3D 1 -> TX Port=3D 0/= Queue=3D 1 ------- >> + RX-packets: 149753052 TX-packets: 149753052 TX-dropped: = 0 >> + >> + ---------------------- Forward statistics for port 0 ------------= ---------- >> + RX-packets: 43538881 RX-dropped: 72 RX-total: 435= 38953 >> + TX-packets: 299491753 TX-dropped: 0 TX-total: 299= 491753 >> + ------------------------------------------------------------------= ---------- >> + >> + ---------------------- Forward statistics for port 1 ------------= ---------- >> + RX-packets: 299493085 RX-dropped: 8357 RX-total: 299= 501442 >> + TX-packets: 43539683 TX-dropped: 0 TX-total: 435= 39683 >> + ------------------------------------------------------------------= ---------- >> + >> + +++++++++++++++ Accumulated forward statistics for all ports++++++= +++++++++ >> + RX-packets: 343031966 RX-dropped: 8429 RX-total: 343= 040395 >> + TX-packets: 343031436 TX-dropped: 0 TX-total: 343= 031436 >> + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++++ >> + >> + CPU cycles/packet=3D14.28 (total cycles=3D4899533541 / total RX pa= ckets=3D343031966) at 200 MHz >> + >> +.. note:: >> + >> + Measuring CPU cycles/packet requires enabling CONFIG_RTE_TEST_PMD_RE= CORD_CORE_TX_CYCLES configuration option. >=20 > IMO, it a very useful feature for CI/CD and development as we don't > need to see any Traffic generator to see any regression. >=20 > I think, enabling CONFIG_RTE_TEST_PMD_RECORD_CORE_TX_CYCLES > configuration is overhead to use in all the environments. >=20 > How about adding a "new forward" engine with and remove > CONFIG_RTE_TEST_PMD_RECORD_CORE_TX_CYCLES. > The new forward engine will have > CONFIG_RTE_TEST_PMD_RECORD_CORE_TX_CYCLES code enabled. > So the application can use the forward engine dynamically. aka the > same build works for both cases. Yes, this can be done as a separate patch. The idea of this patch is to update the documentation with the missing CPU = cycles/packet information. >=20 >=20 >> + On aarch64 platforms, by default, the cycles are counted using gener= ic counter which runs at a lower frequency than the CPU clock. >> + To get the cycles/packet at CPU clock frequency, please scale the cy= cles/packet to CPU clock frequency. Alternatively, use the PMU based cycle = counter. >>=20 >> clear fwd >> ~~~~~~~~~ >> -- >> 2.20.1