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 248CE457CE; Fri, 16 Aug 2024 14:21:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E2B1942DC5; Fri, 16 Aug 2024 14:21:32 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by mails.dpdk.org (Postfix) with ESMTP id 1B6BA4025D for ; Fri, 16 Aug 2024 14:21:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723810891; x=1755346891; h=message-id:date:subject:from:to:cc:references: in-reply-to:content-transfer-encoding:mime-version; bh=eOc4Tjn9lhXYISC8wktGyscFWbl8IgTw02HZzoOkk64=; b=HcVlpE8Xs+VQxnXbLb+y9aDf/sIhAJUNTSyCvTtb+XgyFSbfj2+5k73K GsvfrycIWVF7o/aCq32V5ejd5WrkybJ9+Xi8QEp2leDp6a0P4tG8/SCnf lZj7oCfOXeZXup1+EdgFHEV9rWhIhMMRA12IJ5VkK8xG1jblo/kLKFk9h ZdtSsVX9QLLP3wvA04qnoMDMc2NuQUM5Dzeq5MhUEuGeaYgXXd2ak3xBy 79UJgiOdRIKspUDqkjWSz85hvI9MKzde95qPh9p3xTJpghmdPz3So+p9S nCJ6KJ3NDVxJ2oOg4SDkJgEOmws/X4CC1IYpysyQS4O8B4oUHZeC+d2Hp Q==; X-CSE-ConnectionGUID: bG99rlxZThSbQtIbqIqzsg== X-CSE-MsgGUID: 9MWPsrVsTM+SvUQvo3tFhw== X-IronPort-AV: E=McAfee;i="6700,10204,11166"; a="21652061" X-IronPort-AV: E=Sophos;i="6.10,151,1719903600"; d="scan'208";a="21652061" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2024 05:21:21 -0700 X-CSE-ConnectionGUID: JEAbJDbTRFGdcbdgcU9jWg== X-CSE-MsgGUID: fmMfg9HATMKVfw3nGUe2hA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,151,1719903600"; d="scan'208";a="64604783" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orviesa004.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 16 Aug 2024 05:21:21 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 16 Aug 2024 05:21:20 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Fri, 16 Aug 2024 05:21:20 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.100) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 16 Aug 2024 05:21:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MPaMHrojjvtyMwaNqbgrT1RMD6aFkngIar8mXVz2snBxLbJLLl4gwI+NyJqjQX39caV6y6oa0zfYU6NhgXqwccDszXNdOYB+M0DkQh7F3SIb9iN6NN9IkGtOof3lLEQEHsGZasFbrF/Re7kdLwt2V4c0JFOQCNGKi6aWiY8lZrtH/yeC/uGC8Z0o9NNS7tvbyMxmC1KRq1e6UZqk2aieTJDHKGAfL83kt/5qOQAjVLgYkd87k1PHp/Pf2mxvUIsa8kkMsivtS9ho/+lPleIEc+thY317/JmRoUNQcMKQRJ5YzO1VwE9rVXJMHKlNPQKJeuQHpj/UuYVfEW7Yx++zNw== 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=BVCrMlZ+fx27auMLT3UziK8D16b2ISciVjeGvcDkvbk=; b=yRGFToWfZ0hr6eCH8Ec5Pz/gNRi2RTAD05gANj/pj9RvVsxmvFBKyWdq74bf5wPT0x9Fd5lH5AdQKPA1NW4JzjrQ4upimqHWcypQG00jvRasm5EhWj7i8YNePZJLl/BpCzYSAGdlKfOfh/op7K0oMdgpD1CI9XR8v6olAcpgp0DbFGM1Ztq6fyVTKBVJqN7y6i8gaYCvJnPu0HwAslykwO0BZn+HeteiHq4fnkrukM/0YL0od2oA/LtXmBMAd5aG6rqMccAmrtu+b5Qn0WVTp5E15tUIvODU85bYQjrsLi4+pqnprPKlxi+wHZfiVRZCBY1eXCdkvN8Bp6LXR/PnvA== 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 CO1PR11MB4834.namprd11.prod.outlook.com (2603:10b6:303:90::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.20; Fri, 16 Aug 2024 12:21:18 +0000 Received: from DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a]) by DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a%7]) with mapi id 15.20.7875.018; Fri, 16 Aug 2024 12:21:18 +0000 Message-ID: Date: Fri, 16 Aug 2024 14:21:12 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/4] usertools/dpdk-hugepages.py: sort by NUMA node From: "Burakov, Anatoly" To: , Robin Jarry CC: References: <8f79ca252aac7d47106e6660fb88ad122cd25fcc.1723810613.git.anatoly.burakov@intel.com> Content-Language: en-US In-Reply-To: <8f79ca252aac7d47106e6660fb88ad122cd25fcc.1723810613.git.anatoly.burakov@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB8PR09CA0003.eurprd09.prod.outlook.com (2603:10a6:10:a0::16) To DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6502:EE_|CO1PR11MB4834:EE_ X-MS-Office365-Filtering-Correlation-Id: 84989f68-d70a-42e8-7948-08dcbdedee1f 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?SUhWV1hzOU5lWUNyVnN6aHBjMWlod3JvUzBxcjN4Y1A5eElqSHdqNDRNUUlH?= =?utf-8?B?SjJHOGd6RnVYajEvOHVaOWMzdi9QcG1KQ1BYemYrVzdiaWFld2FMdWozcjl4?= =?utf-8?B?SVlvMlRPV0VGdW43aGk0TWhEWDhqQ1RUZEVwWWVla2tJZ0J0YkJEcHdDcFNu?= =?utf-8?B?MlRoYVU4TDQvQWZ5WG1SMXMvUXFqUDJkV3hOTUF5eWRzbGRsaVM0amlUMUFZ?= =?utf-8?B?VytBUks1ZndTUk56VEZaZTQrcVRScFd3U281RXRTdi9mQkY2NUVHb1ovSnVW?= =?utf-8?B?aTFLNFF3Yk1JMmlaeFplM2cyejRTSk1Gak1KS0pk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HR4UDVvUW5IdksrQU95cEdMVzVia01iTk9MbC8x?= =?utf-8?B?N3JRenIrOWdBaS81ZThxSys1TXFZbGt6WDk3SVVRS3RxK0U1TUp0ejFnQ2tL?= =?utf-8?B?M2E4bDcwWkhJUXd3eTFUL3R4N2xndlo0TUZzazhBVmtQclhqMWFid2xKbmRH?= =?utf-8?B?V21DeWZjMDFaQ3lOYUdQZjJXV3VRTzBuMWZFTnlnOFl6VFBpSjZNSHNnQnZq?= =?utf-8?B?SkNIQnh1V1pCMlJOTXpudDA1VE1nWlNnSWY1SlZseEpwVEhoWHo4WTNuQktK?= =?utf-8?B?Q2diMkZsY1FCZmIrWkZCSkVCcGVMSVU2TFI1RFhjYjk0dHd0dTF5eVA4WGZL?= =?utf-8?B?U3BBZjlqTEhGQVBMaUtpN21LZXhJNGI0RHlCbE5od20yUzNMOEw2cHMyWnc5?= =?utf-8?B?a3oyQndoRlRmWkpLVS9JQTJvSzM3ZGhnaHJyN2FYSWhoaEFJdE5VYXBtUU9F?= =?utf-8?B?ckpzbzI2dVE0anhVMlJDbkRrSUU2R01PZkVOa2dQWlRjTVQ0b3Z5M1ZaT3Vh?= =?utf-8?B?aVFEeHdjVlg0ZGhmVHA0bGl3Vzd1WHFXMnhsdDkrbnQ5R2NTTTRtTllRR0Q5?= =?utf-8?B?UFpKN3JxTDNja3JVWGpLQT09?= 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?cDJUdjdQc09DQnh3TGU4QzRlU2szeHhEd3RJbkgxbHRsZE1NSUlYcHF2c01z?= =?utf-8?B?OG1UR2lGWk5HNDRjSTUwZndFM25MWFg3dDROK0kxdDV1SWd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kRsZkI5NFVaaTc5TkV3ODdoL1g2MXV2QWxRY3lU?= =?utf-8?B?MWYxRHBvenNlOVNaaHlpeTBwZHRieWF1M3hnT0FTc3NDUU5RcnJDdGJFN3U4?= =?utf-8?B?UG5HRXJ4S0tnQUZPc2lDYmJWTG1xMnhidzMrREQrUHExb2l3OFNiajBlNE5W?= =?utf-8?B?eGVuOEdMYnU2VytOVHFQelBQL3llZWFHT0FvNUVFM0VYOExrcXd2d1RNNzNG?= =?utf-8?B?UnVSdmNEZDJxeUF6bTVzYmRNb241aVNiNWVweE43NFRMakhDZTFuRVRtODZ5?= =?utf-8?B?WkE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 84989f68-d70a-42e8-7948-08dcbdedee1f X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6502.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2024 12:21:18.1113 (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: 0MxNds/QGLEy/mJwG8oRwpt56Vu3/igrTH7zfx6ByMTR9M+7xXyweKxBK7pjwwCn1kWWE48O91Xz9vFgUfQMxWGey0yQK3ZUMsBS7QZulkU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB4834 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/16/2024 2:16 PM, Anatoly Burakov wrote: > Currently, the list of per-NUMA node hugepages is displayed in glob order, > which can be arbitrary. Fix it to sort the glob order. > > Signed-off-by: Anatoly Burakov > --- > usertools/dpdk-hugepages.py | 40 ++++++++++++++++++++++++++----------- > 1 file changed, 28 insertions(+), 12 deletions(-) > > diff --git a/usertools/dpdk-hugepages.py b/usertools/dpdk-hugepages.py > index bf2575ba36..54232ddf22 100755 > --- a/usertools/dpdk-hugepages.py > +++ b/usertools/dpdk-hugepages.py > @@ -74,21 +74,37 @@ def set_hugepages(path, reqpages): > gotpages, reqpages, filename)) > > > +def get_numa_pages_node(node): > + '''Read list of hugepage reservations on specific NUMA node''' > + hp_path = f'/sys/devices/system/node/node{node}/hugepages' > + if not os.path.exists(hp_path): > + return Oops, should have been return [] -- Thanks, Anatoly