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 5B0CD42CB7; Wed, 14 Jun 2023 12:48:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 367CA40E0F; Wed, 14 Jun 2023 12:48:13 +0200 (CEST) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2056.outbound.protection.outlook.com [40.107.102.56]) by mails.dpdk.org (Postfix) with ESMTP id 965B240DDB for ; Wed, 14 Jun 2023 12:48:11 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KoaA6A+Yek6ccf+G2AY4NQKOIfeF5gMri3p35VK+uGhpGp8ZYA8ruB859pltbqKVtOMef0mXYmDlh3k3PWSnfcX67pzhkxxUEjmWJCUqvlIKUIy8pVq/bWGaS64FRG209cZGqSARewCbTBDu/ogk/D+ejiDL8eosxX2uTf4X18sJp+9IA6LAM6jNOKLNIZOUlOtorCc0YrpP8KPEkxxyN6FG3u7GkLqrHYWglntZFclpPD4UfZiYxQRK2eQU6Z5LabhhOW4UrqZ4dixKZ5TF7M7fWDDlwygsUd09Xnlb8sVsj8uWDoszmRziOHY6uBzvID3T3bJo4E3F/KMo6u1NLw== 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=WCjEN1yuUKsn+56bhQ7zGanm9svugILVVl3q6QXw/tw=; b=U/u01h4cuGgTV98ZwF9a0hSO0Vx2SwRc8ehPGQNCj/K4syS8r88/MVVRHj2oc+F7qtlI9tCCdf5PmDNCdGmG/s+PWVT6dXPXzs0WbUwemaBI/Z3DGy5nhgx7W9R5415Q9aW7W7cR7st2RNt8lCMT5ZhJKI6fJ2dOsUhueS6QtnrTm5h7u7jBJvPqXkDDGg7IKkqnNhDuvTgK2dKv3sPB0NEHXVvnNVoU/l8zI1c1zazYuooIpoTaA+8MR9P6d0Y7rJ3jw+nsMNAnVL5j3rBHHakv/sTPpNWcedLvLRw86xclwHLcAa+j7p/FhLv9ry/G9LnD0U4MviGmDBb0Pvrlrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WCjEN1yuUKsn+56bhQ7zGanm9svugILVVl3q6QXw/tw=; b=IHIPdIAlNG6BjYruityLIrZKr2GZ4QRUDllkBxFJ4WrUCxyezA05LjPVXsEbVZ8mZ/um4Dck+mAxRk+WYPPtqoZzk35VL3TQREu1lY3hBPPw6+QO505J2S/6Shnrc4GPKRmRH0hJNih2+XTlMUYT+nTBmPdCFhWg5bMBr/NAPDA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by DM4PR12MB8476.namprd12.prod.outlook.com (2603:10b6:8:17e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.37; Wed, 14 Jun 2023 10:48:09 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::16e3:326c:5c2a:be42]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::16e3:326c:5c2a:be42%3]) with mapi id 15.20.6477.037; Wed, 14 Jun 2023 10:48:09 +0000 Message-ID: <4bdbc7a6-ae16-898c-a9e3-5b196396b662@amd.com> Date: Wed, 14 Jun 2023 11:48:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: "Varghese, Vipin" , Thomas Monjalon , Dmitry Kozlyuk Cc: "david.marchand@redhat.com" , "Tummala, Sivaprasad" , "dev@dpdk.org" , Narcisa Ana Maria Vasile , Dmitry Malloy , Pallavi Kadam References: <20220326073207.489694-1-vipin.varghese@amd.com> <3129842.AJdgDx1Vlc@thomas> From: Ferruh Yigit Subject: Re: [PATCH] usertools: enhance logic to display NUMA In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DUZPR01CA0290.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b7::28) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|DM4PR12MB8476:EE_ X-MS-Office365-Filtering-Correlation-Id: 26900940-7c7c-46cb-cf09-08db6cc4d747 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0tZbSQjnjgfaDDg7/PdYm4UbKyDeJDHPhwwqoFNxR98TemoT69OQMbEDaIxn1s3Rs8/YsUW45NgqwovXdR1+5fBqCF1TJAFw9Wf8/ffE0ANfZBnDmtd+4gTgyxoFmWMVxmEwqTyNsqFsRxB6dGmwrhSMb3mxEua1L3rEjOIGHEbicW80AomA8h+nMbe8vm9sPMYskq2eIgJlKeXhXDd4IlXOzvOgTKcXXVQoxCOBkCORnAStuNmqsopeW3PSkuTVuaWoB2mCbJOiTpgpHXa1dPQhzYEJbN4d9GNUr0tJZcuSiuFTfSyodqor9e6phGgI5+R43TPDfrTS63RILNPGjCjBpXSivfV2krel7gt3nqv3gZdLdKiXs6zDwrS3uybwA868b05S8rp5FW7Gazi7vasdmnr0H3V4HYIFySzZuYoz0AiLL3GpMq3IK5zo0ZGAUD4WAh8PbyH3zJHhpOfVOeLLJ36DD/YOxOOISndfYyMAb1vfdSby3d7juR8MvBl5wnP1p4wI3N1GczQ50BNgQjcDFsqQXH3YlXwRW7Pwrje0SkHM67qUSTIiuLI90TkN88+UHdhFoB8OzW7u5FYkTrrRKoaDutTLCZ0ShZp4oheJan/5mnd4R68Y7jho0SFt9OCeqCpFygOwRgZeUdmO/Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(366004)(346002)(136003)(396003)(376002)(451199021)(31686004)(83380400001)(38100700002)(316002)(41300700001)(6486002)(53546011)(6666004)(6506007)(26005)(6512007)(4326008)(66476007)(66556008)(66946007)(8936002)(44832011)(86362001)(5660300002)(36756003)(31696002)(8676002)(2906002)(110136005)(2616005)(54906003)(478600001)(186003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eUdKQmNSeVd1RXFiMmdrb1oreVM5dEVDMHpiMWVUYUJYVG5IMllKTG9xQ3lt?= =?utf-8?B?S2IzUEg0Tng1YlJEaUFRZDFucitwQ0ZXYldmUlVsTWlaSkd4MmppOUYydWE4?= =?utf-8?B?L1lFUXl6dUI5ZVFaZms0d0JCWEhrL2N5Mm5xVkIyeUttb0thd2RENHdxMjhX?= =?utf-8?B?OTVta3ZOM25RVWYyVmp1Vk5kbE1kNXJMNXVKMXNNeVMzS3JMMVVpQmVXVjdR?= =?utf-8?B?b2hreXZWRFJGMVBESVNraGNZeW9iN1FxU3FpTnR3dFJtNlo5bTFWOERXTThY?= =?utf-8?B?ZXJJT2RSYmYzZTJKam9pU25mZXV4RTdGS3dCbHh3Lz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5z3QsUtW+J++42FtPi?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26900940-7c7c-46cb-cf09-08db6cc4d747 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2023 10:48:09.0460 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tCbX4wPGLUnuyqcVrZ8UfzhElSZsL3spiknOEeQtjKlEnXOLikP4vV/oEtMDe6Ya X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB8476 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 On 3/28/2022 3:56 AM, Varghese, Vipin wrote: > Hi Thomas, > > > > 26/03/2022 08:32, Vipin Varghese: >>> enhance python logic to accomadate NUMA information. Current logic >>> considers physical socket with CPU threads to core map. With new AMD >>> SKU vairant NUMA is no longer same as SOCKET. Single physical socket >>> can be partitioned to variant of 1,2 and 4. >>> >>> The changes address the new mapping with Socket-NUMA to CPU cores. >>> >>> Signed-off-by: Vipin Varghese >>> --- >>> usertools/cpu_layout.py | 76 >>> +++++++++++++++++++++++++---------------- >>> 1 file changed, 47 insertions(+), 29 deletions(-) >> Honestly, I'm not sure it is a good idea to keep this script in the DPDK repo. >> Can it be replaced with hwloc usage? > > thanks for the suggestion, it is genuine and useful. Following is my observations > > - It takes some effort to identify the NUMA with `Group` > - One needs to install ` lstopo-no-graphics` on distro and manually build and add on custom Linux. > > >> What is the output on the new AMD SKU for this command? >> lstopo-no-graphics --merge > > I have tried ` lstopo-no-graphics --merge` on a ` 2 Socket AMD EPYC 7713 64-Core Processor` with > possible NUMA configuration such as 1, 2 and 4. > Hi Thomas, Should we document preferred tool and usage in DPDK, if so where is good location for it? Also @Dmitry, is there solution for Windows for this issue (a tool to replace cpu_layout.py)? Thanks, ferruh