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 E70EE429A2; Fri, 21 Apr 2023 03:48:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7ED5B410DD; Fri, 21 Apr 2023 03:48:01 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 5543640E6E for ; Fri, 21 Apr 2023 03:47:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682041679; x=1713577679; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Lf2uN2cyuaoVrjCaQXXUoYbga2efA+6eEiPbM0E6EUA=; b=kGxvEV1VbIVRFpuHLRLzRxi5mTU4eGOvkPKo9i5k59+cd6uK+v8PFfbl CVOwK6uyrtLyAXhqg6taWiZscHzq90EJFIu6G5VgE92B95SivGpCdn0cn pc4uaktNaeG/kIaV5BLS29jBnUuiSPH06cF+eiMQMVhJdRh2Th7waOyMf Lyfj4tgkYz3qoTgS+UM9LwUGOb0lOJfzn7qvG+SB3KPJX2mfDb/q+n2md 5CVcSz1Mjdp+6eQcPQTx8oECTjSAWBA/Uem5+v61OToAu7PIRbakK375t GWW0bw9iu7GzYxT1Ahx52AADQSRG53dDbPff7F3VoekIpIpURtQ3j4nvR g==; X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="334764135" X-IronPort-AV: E=Sophos;i="5.99,214,1677571200"; d="scan'208";a="334764135" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2023 18:47:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="642348361" X-IronPort-AV: E=Sophos;i="5.99,214,1677571200"; d="scan'208";a="642348361" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga003.jf.intel.com with ESMTP; 20 Apr 2023 18:47:58 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 20 Apr 2023 18:47:57 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Thu, 20 Apr 2023 18:47:57 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.46) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Thu, 20 Apr 2023 18:47:57 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rj0oilPFvn2tibmIDxahUHSopr0i+0jEtmRC8IhQ84zVrneXYW9X0BJBvCbYPpZQX9H4Y8A8Vd6ayvODiVwBH323SMBbuHOAoqO9EfNndkDL8xgrdeLHad2d0L1jS2FUVyrwVzSElTB4UePqJgTs9zjMszrdtVe5GSnzMUnzVN9sPDSMdgurgy0XhOU4AVh9k8H5dwuEFLykeMVEw5M0+s0sLtNnSi+EJQrsu/2ws09qyUiZjxcBWfdFOFUW9gaUG000lwPvCZdOkqfvUshxPtv1S2PNdeiL0LHAj4SuFuhFMUYAbw1058J+F61dy2mugICQRGjzIdkMSs+H7ngtLA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8g32OOU/6/nsMVL75DFMCVbajNfpyP7Det82krl8q28=; b=dsQJkyWA5ICaq0k4W37u0n1YB5d5cIEkcAkJFkJpxB3SYvAJn8BLPhfKIjc9UeQkcpSfeBGVz3a/czLkwFiq8QmyXYTMQQBxA/NMt67BJMU2tMDfknW+yJa/pThAV2f6C95OFCvhfbc8W4mLbjyuiQkq6lLdu70AnaoYfaGAgh2ARMJO+gE7WQ7JxOLxji2abQFVlT8xJ4R6o0xs+CpNclypV3uEzyBoOhfg+qKhhlk6NOypg9Q/4Gql4BWUACF8mMOGpf+XHMowZklP2exegTIkDnESobBwNfgwgvSCs2zGppDSM9PDCbdBmThStOOK7MlirP5Ht8zsnu2u2ZhRgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SN7PR11MB7491.namprd11.prod.outlook.com (2603:10b6:806:349::8) by PH8PR11MB8015.namprd11.prod.outlook.com (2603:10b6:510:23b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.22; Fri, 21 Apr 2023 01:47:56 +0000 Received: from SN7PR11MB7491.namprd11.prod.outlook.com ([fe80::e162:f0e1:1dbb:7ea5]) by SN7PR11MB7491.namprd11.prod.outlook.com ([fe80::e162:f0e1:1dbb:7ea5%6]) with mapi id 15.20.6298.050; Fri, 21 Apr 2023 01:47:55 +0000 From: "Lu, Wenzhuo" To: Stephen Hemminger , "thomas@monjalon.net" CC: "dev@dpdk.org" Subject: RE: [PATCH] usertools: enhance CPU layout Thread-Topic: [PATCH] usertools: enhance CPU layout Thread-Index: AQHZcbqyUgtKtnewDUayIV8T16K5IK8xR0QAgAOrduA= Date: Fri, 21 Apr 2023 01:47:55 +0000 Message-ID: References: <1681795541-68384-1-git-send-email-wenzhuo.lu@intel.com> <20230418094646.799b2fc3@hermes.local> In-Reply-To: <20230418094646.799b2fc3@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN7PR11MB7491:EE_|PH8PR11MB8015:EE_ x-ms-office365-filtering-correlation-id: 033d9970-1b70-4199-8178-08db420a6d47 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: U9f9vkxhHUOXtYd07e1m3vFQBYoE9Cxwha5qyH4wfbZpSb/tDtAunGHpP7q9Fxj2ogxZMXefW8G5eTGIZk0Hn57viDay4A+ILIQ2ZImbwPBrSixZzKZxbdHKQABjehEiZoHZRP7wm65/QSH83zma9DVQfhDMnYzyJQ7J1N1r3adkSokf6KOPGp15ohD35VU/kjug9N35QB8gd/KtKrRh+3a1ZdEBSq1kIWXB9MLxVesRqjaDX37XuHovWcDQI4SAvb5RLqVGRBNlwctVniy+RdbjqAPVzA/BtpmvPEOFx1sb0byA13OipfiDL/FIeNsk1stRUtlM0KWcEDEC0hM4lSJB9OiIBegNHuh4OvXaJKCx62mow3hF6bB9x5jCRjWlf8solrgOmSSB2iuH1VRf38ykQmUDTrCjRxmrlZ2SdPBiGati7+tLiCu3cswo+fFUx0036aQGpcQDHQM33vP4q3MR8HLu36LuwqjUwG+vzWOiJooYag0VySNX/o518NAkozif1zZ/wooKgTdrgBHgLzNSuILkadh4Rm1UIVQz9EVaDkus1FRJm9hocVGK+jMsqCUNQQ8wSzfa6ORazMw4t6aGyqOASSJe7DgE9+wvpZSD/BZOdkZNMhAggLQxfHBg x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN7PR11MB7491.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(366004)(136003)(376002)(346002)(396003)(39860400002)(451199021)(8676002)(8936002)(122000001)(7696005)(55016003)(52536014)(5660300002)(26005)(53546011)(33656002)(9686003)(6506007)(186003)(38070700005)(41300700001)(38100700002)(82960400001)(2906002)(83380400001)(76116006)(66476007)(66946007)(66556008)(66446008)(64756008)(4326008)(316002)(110136005)(478600001)(71200400001)(86362001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?avWVKwU2b8iQeYGMeE1hYibqQboBGbwJ5yJqu2BlbruNsyuBS1lQ5JgLGrEb?= =?us-ascii?Q?7XU/ruJbS9KfXHnQlTFiiVxF/eqSmHjDp8JatUhJMpWtRSpzl0wt/ScROjKc?= =?us-ascii?Q?mdtnhX5jE8jlhuE8gVJuf/AZlnRYFD0mVFutAbwWsQaf6DVlYfNXTzSPSkqy?= =?us-ascii?Q?VBNBAPnUb5oieqLeRv9NSZEB9qJtQNiA6NJ7JgcfS1txbkVaBIY/1j7ylAo5?= =?us-ascii?Q?+Q8r67343Yf6eMOfPoPLSREsAViO1ACcrdKW2rgKAKJeOY0lLzLV31q+Gjyt?= =?us-ascii?Q?qnHr0p5AHHsBgwj2nV9TPji/TPWGCF8byUNdz3gsU/vAr7YsRlgGheWZDi9d?= =?us-ascii?Q?iiFud6aRi5pc+WMDjKNvun60gES9cGt3Hhnrix71RJKr986rVC9vyh00H1DC?= =?us-ascii?Q?4iShxAHNd7hDFK/qpy/xDuSp0CsIDB/HFwvQBBYvYevQ2g4p9y4bdi5vldjW?= =?us-ascii?Q?dBpE/wfeSiGRp4H6a+awirfp2yYaL65bCTXz8n21l/fNHhmlEx1G5AaKVGaq?= =?us-ascii?Q?W0tBxDF+WNEDMbmKpsYUnlqPKbk7Zynh72oTyDrDvivbCTHOragEphbS6J7k?= =?us-ascii?Q?oRxe+m9zu8/xQI36XsfL1WkuylGKaoNFR0psja1k457OuKhemLTmFbRzk97a?= =?us-ascii?Q?qN3tqwCOlakrJhQjQn2hOufr7qPpv2/YbiYCGc9Z60L9efzKL1q66N+GEkvx?= =?us-ascii?Q?5embV5HREnmZQWU5D4dve1mMH+osYTNS78BYZ3N0NYUhtq5o3OXtPj5sfN3W?= =?us-ascii?Q?8zkg1LntAzty5q1eWcSKqLUz49zShI/0HtNPTngWxu5hrM9yNTKxWvgoZyBu?= =?us-ascii?Q?6DfdUypEZFm50NA5RlhEp/oEmuVAXYdwpbNa+2KRe7XV3z/JLYjclvOxJ0WE?= =?us-ascii?Q?LHcJMn8Is58Dk4JmztecnQF4eU6izJwi2yuopg9//Ky/TbSgiTuqOv+UIMK6?= =?us-ascii?Q?x6W8h4w+K4chDVBmW7YbNG/mP4rQI5jNSMQ+qKZWfnQ4hvXZyLF0y0csOy1H?= =?us-ascii?Q?vW3AOAd58KIIeuukd9eatmsPuJu+BlD57MoOP372pp+VlmwRieKUveNqajGh?= =?us-ascii?Q?Wbh0WU+9fY9aWR63Lm9KU1eJD0HNo5yIxcluAVthP67ieGWuMCIDwN5waG/J?= =?us-ascii?Q?WiPK17ExkesuP3iO86VLfmWkvv4gYhMqmtfn9oARncpKvFKS1LdbaUEr27z7?= =?us-ascii?Q?DIy+oJNhpA1cR5oYPf6NszwFeNizstkIt6l1EuIMZpqE0QpfbGTU5vmFIplK?= =?us-ascii?Q?tkSOClTZIPhnzeds285gkP0MJM62/uEf2oc1mtGcauUsESiFOueQuTm5vBHb?= =?us-ascii?Q?GuP72GP0LfmPpGH05Fs7wpQF57pSpTqdPhQxE/t8xr+YpHMHeuTb3amGC85w?= =?us-ascii?Q?qb11yIe8bkWDWvr0Gtc7EKMPz03UEgDCWTOP4Mw1skYU8DlFhEaGKKj17aSs?= =?us-ascii?Q?bUNrXVW9/l5M09gkDP66lCVlNZvce8dH1FOf+i2Tqh066tocyTXmZpv7Cw6o?= =?us-ascii?Q?iNlQ+K16raEOojhyBBkjaKVW7La5AG5BlwIf3wTyjUh+77X8sotLknV/Vjrj?= =?us-ascii?Q?ra4hhWRHQrocp6kUN5LvkXpFFLJAxu95ZkDPoC+u?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN7PR11MB7491.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 033d9970-1b70-4199-8178-08db420a6d47 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2023 01:47:55.3442 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: UwhIjJWBW2AsxZfOkJ+qZxoqc8oGyPzDdkiSrzpUSX4WG8Wv7Fg0uTSM9CZYfRicJi1frFiveFvuBtwojUk1kA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR11MB8015 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi Stephen, > -----Original Message----- > From: Stephen Hemminger > Sent: Wednesday, April 19, 2023 12:47 AM > To: Lu, Wenzhuo > Cc: dev@dpdk.org > Subject: Re: [PATCH] usertools: enhance CPU layout >=20 > On Tue, 18 Apr 2023 13:25:41 +0800 > Wenzhuo Lu wrote: >=20 > > The cores in a single CPU may be not all the same. > > The user tool is updated to show the > > difference of the cores. > > > > This patch addes below informantion, > > 1, Group the cores based on the die. > > 2, A core is either a performance core or an > > efficency core. > > A performance core is shown as 'Core-P'. > > An efficency core is shown as 'Core-E'. > > 3, All the E-cores which share the same L2-cache > > are grouped to one module. > > > > The known limitation. > > 1, To tell a core is P-core or E-core is based on if > > this core shares L2 cache with others. > > > > Signed-off-by: Wenzhuo Lu >=20 > Side note: > This tool only exists because of lack of simple tool at the time. > Looking around, found that there is a tool 'lstopo' under the hwloc packa= ge > that gives output in many formats including graphical and seems to do a b= etter > job than the DPDK python script. >=20 > Not sure how much farther DPDK should go in this area? > Really should be a distro tool. Many thanks for your review and comments. Have to say I'm a green hand in this field. Just imitate the existing code = to write mine. So, still trying to understand and handle the comments :) Better to understand more about our opinion of this script before send a v2= patch. I've used 'lstopo'. It's a great tool. To my opinion, considering there're Linux tools to show all kinds of inform= ation, the reason that DPDK has its own tool is to summarize and emphasize = the information that is important to DPDK. Here it's that some cores are mo= re powerful than others. When the users use a testpmd-like APP, they can ch= oose the appropriate cores after DPDK reminds them about the difference bet= ween cores. Add Thomas for more suggestions. Thanks.