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 574E44582E; Wed, 21 Aug 2024 10:49:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3E58B40E2E; Wed, 21 Aug 2024 10:49:55 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 3D33A4003C for ; Wed, 21 Aug 2024 10:49:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724230193; x=1755766193; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=jW2yeZv0GgohNyYUP9joZRqwmojIPE+mVTDPjRjVwIw=; b=MHErxo3LWqkq3VmkSzX/mMgo4A5u7w5PsJum7EJKMB6PxP52GrbQV+AO N+8N4b39QXYYpjZJ87Op0iL5qi36+8fseQa9+Xk1kuF1DXWwUT4k15+LD hIyocR60aB/4OFck5Km/h0s6MvORiDbrJbsKm/w8FM7/n4ykrB/2PBwYq qQmB8A0K6gg0vl4yGQVBAIWMXQHFl1cYKR2vlrOMGavLJfQsvr3lAVac+ ojFlmRS6Ng+/1sJx1DDQtlPr+pO/RMcEWFxLHLPqH9L+ZDt/FAsENu3oO 6Sa8rlrCPgp85OLHDXOhXmSf1icByHp8nzkE2+lngGDKP3ngfUEhfGQIq A==; X-CSE-ConnectionGUID: QOM0KWK0Q32uTIBA0Ao9AA== X-CSE-MsgGUID: RsRNimdyTuCmrzsHPfqz8Q== X-IronPort-AV: E=McAfee;i="6700,10204,11170"; a="22189400" X-IronPort-AV: E=Sophos;i="6.10,164,1719903600"; d="scan'208";a="22189400" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2024 01:49:52 -0700 X-CSE-ConnectionGUID: xUM1p1B/T4iIyeDBXDoA9Q== X-CSE-MsgGUID: MQ75VmFXRq2tKkMc86ET0w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,164,1719903600"; d="scan'208";a="84202363" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 21 Aug 2024 01:49:52 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 21 Aug 2024 01:49:51 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 21 Aug 2024 01:49:51 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Wed, 21 Aug 2024 01:49:51 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 21 Aug 2024 01:49:50 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BDNLpM8s3EzEZ1qH1bTbIovU3WnfNeav46v+BU4c7zN0ltRVaN0m9XT9IuZTCdrTICw6aiOC2q5/O/uV3Lu9AWJ3NqRP/OWozGVHAPAhL0No5NO7D34/FtdULuFs+7Dv8oGm+PlUtNCg/GdKVqsb485knbJFIfutrNhlFW/XguYWqDJxJj5zSN8dlVZBr/7Dy+nPUdKN4u1gIy0A+JwxW/ep/6TUNwikmh9FfP60VTux3MVfmn1IkBm142jHUwaR1+I3Bex6r5E5rfih5D4fnvoQ3ceyHfm+maVTUoNOauTtn4KPIVKiuttDlaUNCPEyXQqvQiNKjZaJ5vN51qvD8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=2mWxKnBBlRY0n+7/cVAGApCN9DA77KqOaxmMCXV9V98=; b=kwbahbH/Jx/5Ys6+sB1IRI30N1+iquSE4W6WdJ5Y/usJc01b42oA1T64arLOuu7lU/1CL4g+j2ZFD0jzD91xtSxBYq2AL6MjYINkEBZAKslG/H/XlNJca+uk7QvFrPTvjRjW4UU4TXjG+cRrNYAnxqCl9XOY8MNOrmj2brTVXIx3tDTTk5KbN5O9bWmNJFDaRux+G825vgyEKRECSPH0fw79gj+S6mGwyhi/Dif8OkEHBXNSBxulp/GX2tqtVG8wiMsYB5zgbGO1ftT+B5GheVT34DhKUjFDgK5m9lVC/N95muJzCJCAc26/WL2QWoGh46joZeTwiovql2Uwg+R8ew== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) by DM6PR11MB4628.namprd11.prod.outlook.com (2603:10b6:5:28f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.16; Wed, 21 Aug 2024 08:49:44 +0000 Received: from DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a]) by DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a%4]) with mapi id 15.20.7897.014; Wed, 21 Aug 2024 08:49:44 +0000 Message-ID: <4e161cee-910c-4e42-962a-333e408e711d@intel.com> Date: Wed, 21 Aug 2024 10:49:38 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/4] usertools/cpu_layout: print out NUMA nodes To: Robin Jarry , CC: References: <2e995fbdd90061cdee290262043b469213566bc4.1724168117.git.anatoly.burakov@intel.com> Content-Language: en-US From: "Burakov, Anatoly" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DB7PR03CA0080.eurprd03.prod.outlook.com (2603:10a6:10:72::21) To DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6502:EE_|DM6PR11MB4628:EE_ X-MS-Office365-Filtering-Correlation-Id: 3f14053b-9fae-4e96-03ee-08dcc1be33d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?b3dRVmMyK3c1WXNWZkVFS01SeEo3dnpNdkhnZ0wzU1JZdFg5S01Ockh1bnl5?= =?utf-8?B?ZzVodXh0VVlOdGp3WUFLUGJQYnpad3ZOV2c2VVE4WGlMYXdnYTNTOXFrb2xF?= =?utf-8?B?blVLSWc1K09VamVKZW1YN21yc3R4TzYwbnR6VzFQc0pKM01NL0N6TXZGTXJ3?= =?utf-8?B?ZkNuamlScGtEMkhYb1U0RTFzd0xTMDNRdktIRWJocHV2NmQ4S00zaldTUEtC?= =?utf-8?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= =?utf-8?B?Unk5WmVvRytqRWR5ZjV6dnlRT0tvdTFPZHVxZ0E5a3NIdHdGSVI0SUZzaDVp?= =?utf-8?B?NnArMVNOL3dCUDNWTS81cTBLYmVGeklyOXdTL01BdEloY09helRvSTZYbmYx?= =?utf-8?B?Q2xCRVpnNWFnd3pJdTQ5MXRKbmlVdVNDeXJpMXJmM3BBdVZQRXZ3cVVNdFBK?= =?utf-8?B?UmtpVDlYYmhDeEF0MGRUV3YxRS8wQllnV3RncjA1UGtmMTVKSkREcTArSysz?= =?utf-8?B?cnhtSWYzc3FQZi9BMGc2MjlwODV4SVNORXREUFRGSjJKNzVPQVpCMWFsVWpk?= =?utf-8?B?ZCtYMUFGTDRCOWVUMTZSU0pGUU9qZk1BNVJpU2paeit5MFFHVHFGVUhMOTl5?= =?utf-8?B?WURJNmY2WGFQbGZ5UWQ2ZXhKZjlCOUNUYjdXOWdGb1YzZG4rNERZYmRPZEhN?= =?utf-8?B?eEV6SlY0bURtbUdPSHQ5eEhwZlVkUWNHZEp4Znp3ZTg2TytWVFlpU1oxOFYv?= =?utf-8?B?Nmt4L1psUGxPUk5IZy9Za3ZJdE1MckpFNXJTcUtKWkRPWkZzUU83ckQyenRt?= =?utf-8?B?MmkwQWg1eHJWVDE5Sms0U0FXYnJHQ05tclk0WEdIZ0gwQmZndlBxSGhxdlp6?= =?utf-8?B?SUxDN3RtWG5tRzcwK2ZFaGNxeUozaXAxVVUwaGxiOW1CcTJGbGQ2UzNUT1R2?= =?utf-8?B?Z1M0bVBnMEFJTUpzVmFFQT09?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB6502.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?am44MDJKYTI4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UV3SVRUei9Md2VH?= =?utf-8?B?dndrNXBiK0lDWktyeUswR1hvYXYwd0xDcnlkUmJPSk0wN21KQmxPOC91NjVz?= =?utf-8?B?QWJCRTUyVm5FY3RRZTlWZ283K3lzdTBNd2lCUWM1ekNqSm1EbkMzUFhDQTJC?= =?utf-8?B?YlVvNmNHMnZ5V3dWSnVRMkRxcmYrUGZYc2lTYkJVU1lRTC94aDlnektwMjFK?= =?utf-8?B?SktoWnNhbm81TXk4eWVuaEhjL0tRQSswZnhuek9FdWlsb2NmODFINkVGQmMx?= =?utf-8?B?QWVaczFtYXVib2hpTDRYT21DK24wdm5pbjZZZisyMFBtYXdFVDdrQlBhMXp5?= =?utf-8?B?cVhrdDRzZW1qMkkrd2FRQjlpT2Z1TUtZVitqbmpTK21neDZiSnlRbjJEWE9u?= =?utf-8?B?cUE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 3f14053b-9fae-4e96-03ee-08dcc1be33d5 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6502.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2024 08:49:43.9151 (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: olbImp6Q6dj4vjhAKzILYrJuRi24bjM3zEl0JnH3+fwLXMri3/V4rOUXkTRrJa6D0kkGjCbM02+e7NLPUlLOtQGB6lndZGsGxlLxCQL0BsA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4628 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 On 8/20/2024 9:22 PM, Robin Jarry wrote: > Anatoly Burakov, Aug 20, 2024 at 17:35: >> In traditional NUMA case, NUMA nodes and physical sockets were used >> interchangeably, but there are cases where there can be multiple NUMA >> nodes per socket, as well as all CPU's being assigned NUMA node 0 even in >> cases of multiple sockets. Use sysfs to print out NUMA information. >> >> Signed-off-by: Anatoly Burakov >> --- >> >> Notes: >>     v2 -> v3: >>     - Sort imports alphabetically > > Looks good to me, can you format the code for that commit as well? > Hi, (duplicating here for posterity) My IDE is already set up to auto-format with Ruff since our last conversation, so this is already formatted. I ran ruff format command just in case but it produced no changes. -- Thanks, Anatoly