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 8E1BB43039; Sat, 12 Aug 2023 02:38:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2A02740151; Sat, 12 Aug 2023 02:38:34 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2071.outbound.protection.outlook.com [40.107.212.71]) by mails.dpdk.org (Postfix) with ESMTP id 9839F400EF for ; Sat, 12 Aug 2023 02:38:33 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SLYw+Y6oPlnzJ3a1GqnyJoCJi9K3PLoHAxiegxQGBkPbfTwfDNQk+u/FgNFUlhhgrvPmllxaI+6nT7QYOp32zpFiraNWOKgiprCTIFAUJQWgP73YV5X19S5IEomyZ3weSqKP5rt+j7J3DPrZZ6MHw0nLqK7xm/39pIsRNUqZyfFKeq259prHlNmlBdZ1JND/Xevem0aSaMWPx0GaNKhBdv5YETY9ol5Q1GGsMy5qsOAG9TTs6mZxHTg7KdiDcFdnp99AEEgawbnsvCCbpULGzFuM0hPj3YDCZsI+sNxk3pQj1nyMwi/kffsFmDnUPKS+PNhNgVHfH2clJgQbNM8yLA== 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=drDTVNAxRelFPEaRpFDxOrMO2ks0BsCOFWg7Lat3Py8=; b=RncjFYVKIqhPRfDYAepHqVtKmo2vYJOgGxJr6vKd6wOXqRWJp04QBdglzMo4nWi4fo7YsHzTrE8FolzppbwivcG/aeiFWS0sneBovXo9BwF92wIb8vEOgqSZAwpyy+psa/3L505qQxQc6C8w4M8E30JZyCdcIA3/SMiTPH4n6f/xfAX04Tje8QTiEdh0TufyJLNJR7wHSQ8Qp/g7z6BL8bXtIGCHrUFBVPHyzkXjMloGJC0qJ/e0UGawmZ8z2PWIPAXjzSprkl9yD+FBKHeUxpAMmyduLbyfZh8f9a6hoaXlJn+DGHbSMqP5aGG8A1G770Yuk2kXGqAKBRFPJ89Ajw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=monjalon.net smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=drDTVNAxRelFPEaRpFDxOrMO2ks0BsCOFWg7Lat3Py8=; b=Cy4cICcmo1abu9X+JBj1b8bxM9sBW6grhQMRhBSHySxhC2Jrk4y57qwJoWOQerlLnLooRR6tR21hr/QNwLGHOS9icS6Jo1B67UgdB3CsQVjg/wQorfPnoKAWrXM3InAgRc38beBg6nCNKrS2V6COU3E/Z2D5kUEC8VZTVpO4mfc= Received: from SA9P223CA0001.NAMP223.PROD.OUTLOOK.COM (2603:10b6:806:26::6) by SJ2PR12MB8955.namprd12.prod.outlook.com (2603:10b6:a03:542::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.30; Sat, 12 Aug 2023 00:38:28 +0000 Received: from SA2PEPF00001505.namprd04.prod.outlook.com (2603:10b6:806:26:cafe::86) by SA9P223CA0001.outlook.office365.com (2603:10b6:806:26::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.31 via Frontend Transport; Sat, 12 Aug 2023 00:38:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by SA2PEPF00001505.mail.protection.outlook.com (10.167.242.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6652.19 via Frontend Transport; Sat, 12 Aug 2023 00:38:27 +0000 Received: from BLR-5CG134626B.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 11 Aug 2023 19:38:25 -0500 From: Vipin Varghese To: , CC: , Vipin Varghese Subject: [PATCH] usertools: suggest use of hwloc for new cpu Date: Sat, 12 Aug 2023 06:07:55 +0530 Message-ID: <20230812003755.978-1-vipin.varghese@amd.com> X-Mailer: git-send-email 2.41.0.windows.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF00001505:EE_|SJ2PR12MB8955:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b0579b2-ea08-4561-a628-08db9acc71de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TVbqns8cwe/xeoAW54vncZYMeug2RyTg1KsDrF4Dcx6lfgmUedgyOe9q+d9+yrjyNV0AbER3Rzsqs95iGlD6XOegtGuShO6Y1hGhOGstj/8oy4FORBJzFScZS49sl+2ZW1w9rgtVjZ7lzMX5qZ2df3OheK9ykfZs5/oCEJv0X2d8zweY6Cu/GLfNKZGV3yQ6D5EwvdfRxfPWVWInBUoRye4i+HOn2v8b4xq13RRCQVq3voJZhOrpOzwwdqgFXTsTYhEkDF+Z/d4XvoZLj/jzhAebyrVMhI2SsYOl2teZ+VbFqGZDecLTn+vnZCkQsRQk5rsLKlRV2nw+mxFZa6S1gKDDqV2GbSHu9++V24vjeT2gWr46b6Pmq5Nkfi4OmtEQrfZRwoS93XktPF5PEuqe7FhiDvCdlWat60TvgNeDSj1xHCp9iZ+Z8QcN3TAMWFUKMulU8if9NALZJt2VwW/BfhGWStRPrDKc/CERr3MuNo+pYo7D+e0wC5tiqXJn8FZkbmMapqf6QIEg0xzmrBbYbdbVBcdHK38lHnHrhNVJSdQ6sdI8U8iQpG4i2b0yk7ZCmb9XW71HNCkMV1EVfJA4cvHxj6JQ3YqcH9iuIkmR3tOXwgECRY3RGk68TF36vwaDga6MuoIj4LftOhrv6MOqbDmaKUAOSnyLwpoYG6/9dq48Eba2/z1MYr6q+sjU56lCwcMp78S/GPJGv/5C10sPQ0lFFB+nrXRbuTaDA6OmXecuqrwPrZE79FuYcJ5iqr28kukkj9VOcNjL0pJzPy+wnQ== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(396003)(346002)(136003)(376002)(39860400002)(82310400008)(451199021)(1800799006)(186006)(40470700004)(46966006)(36840700001)(26005)(5660300002)(356005)(1076003)(8936002)(8676002)(41300700001)(40460700003)(36756003)(47076005)(426003)(2616005)(2906002)(36860700001)(81166007)(16526019)(86362001)(336012)(44832011)(82740400003)(70206006)(40480700001)(54906003)(70586007)(4326008)(6666004)(478600001)(7696005)(110136005)(316002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2023 00:38:27.6698 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7b0579b2-ea08-4561-a628-08db9acc71de X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SA2PEPF00001505.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8955 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 Most modern processor now supports numa partitioning using sub NUMA CPU-IO & Last Level Cache within the same socket. As per the discussion in mailing list, suggesting the make use of hw-loc for such scenarios. Signed-off-by: Vipin Varghese --- --- usertools/cpu_layout.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/usertools/cpu_layout.py b/usertools/cpu_layout.py index 891b9238fa..48c1f06d95 100755 --- a/usertools/cpu_layout.py +++ b/usertools/cpu_layout.py @@ -29,6 +29,16 @@ core_map[key] = [] core_map[key].append(cpu) + +print("") +print(format("=" * (55 + len(base_path)))) +print(" for more porcessors, which support sub Socket Numa & L3 Numa clustering, please use") +print(format("=" * (55 + len(base_path)))) +print(" - lstopo-no-graphics --no-io -.ascii (CPU Mapping)") +print(" - lstopo-no-graphics -.ascii --whole-io --no-caches (IO device Mapping)") +print(format("=" * (55 + len(base_path)))) +print("") + print(format("=" * (47 + len(base_path)))) print("Core and Socket Information (as reported by '{}')".format(base_path)) print("{}\n".format("=" * (47 + len(base_path)))) -- 2.34.1