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 68A5D4587C; Tue, 27 Aug 2024 22:56:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F28FF402AD; Tue, 27 Aug 2024 22:56:34 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2058.outbound.protection.outlook.com [40.107.22.58]) by mails.dpdk.org (Postfix) with ESMTP id 1B23840041 for ; Tue, 27 Aug 2024 22:56:32 +0200 (CEST) ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=ZDNe+SRSislDLp50hVvsMFdroABqglsYzSaFldRLM2Q6J17Fa6G6lueJY6GEW5OEeUr5neWdXSAeFDqPcI5J9bUEc6nQmE1pGvRYb6OBNQJYaA3+QcC6a7/RYQJ2seoNhmG+ZeoxTv4pm/6uZaPkJd6ASdK7gO02dD8JkLMJTYD2wAzYN7CAbkL6lSrfifwh3uk1jGzC5LNvBLdqewOw9hS1ifaLSx2Zzl3uIxbA+7tBsoKBrUjTdL1uioBMSAEhDxRWJHEJuMeyd8fjD1O/ZoOyQiw5mRHVrh/hZxU6kamsmYb0QGMUUyU8LVZPfbQ25BsQDqud1Mb7lqcdbDpgcA== ARC-Message-Signature: i=2; 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=WCXItF/SVv19HCcHPFr3EINEaHA+RK/TJ/nR+l0mVzA=; b=PRkIm9DyUTWOjyaDTeR9OML9Mr1Hrn4CrA1rLt4BnUOaEAjt5+cLeoUoNBKKRwbpGaMmIuQcrRuniKbuK+IkkYWyhhXpu4+xBXCiO8afw/dHFoRPVeMMgGtxh6jLWndjBUjXZMkicznSFNxvxIu5rGpFq7lpxV2jzeNbmnJ5j1/bwW3OcS8IE2g82/oIAuQzgDlyUG3OwESaPmE67mk7FSXuLsi80PW0p7j6PPGnNSlZZc/fBxuICduOa00Ak0Jp28GOLqyiqeAAeGMfqQjrxq/90/BYPpUlD9+V9lLhYd7whOsURUw6/s03vkge9/7dRhwhU3k7AsskJ+oCRi1qvg== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=dpdk.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WCXItF/SVv19HCcHPFr3EINEaHA+RK/TJ/nR+l0mVzA=; b=K7yySUXm5gTmuWt1RZ5dpVLZIm4mgFbp1QfPFL/OI/cBfGZbxKhe9b2AKBOu+Ws8B7TaLbUwovfIuErMbWfvxIMMmEIfUrL0RS9kpQH1DL4z9illetres9zmyKRDfII2MsgwTMOlzQUgguYZX3UMnL9f0HWm9LNUo/fQIlZdHR4= Received: from AS4PR09CA0011.eurprd09.prod.outlook.com (2603:10a6:20b:5e0::13) by DU2PR08MB7373.eurprd08.prod.outlook.com (2603:10a6:10:2f1::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.12; Tue, 27 Aug 2024 20:56:29 +0000 Received: from AMS0EPF000001AC.eurprd05.prod.outlook.com (2603:10a6:20b:5e0:cafe::9e) by AS4PR09CA0011.outlook.office365.com (2603:10a6:20b:5e0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25 via Frontend Transport; Tue, 27 Aug 2024 20:56:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AMS0EPF000001AC.mail.protection.outlook.com (10.167.16.152) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Tue, 27 Aug 2024 20:56:29 +0000 Received: ("Tessian outbound 22f8cf4ed816:v403"); Tue, 27 Aug 2024 20:56:28 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c4bce2883074ac0f X-CR-MTA-TID: 64aa7808 Received: from L67166c2aabd7.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 398A147B-EE29-4D70-B618-5706D65BCEF3.1; Tue, 27 Aug 2024 20:56:21 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L67166c2aabd7.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 27 Aug 2024 20:56:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=X/GS+EilitpethaF1Z/FqlvaCU5DIvhRWTJSif59p4VNSDfzkwsKYe8pocKNLHeF9z3RR9AW6I8/kvnHmC8g6boXAx/fd9659DHYCsm1SF1mauU4dcFzscHpQmZzykoay2rQHBM0Rr8dimE7a3pTWI5QPbrM6T913P5x9kfXoW0P3L9OyczA2DTyG46K31PQgt2x4yIlK6Jleboi49RJXdgLScmYUBKKetRvB8xOsOTAy2DxQYByb92hcgf069iBV8oUrMRvP6RjhI3S3tdNgnqJcPFDF/gw90mrcDu8jPDp//sI00KjJLmc9G7yxSuG13xD5jsON5zBCsCMQ1cJ5A== 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=WCXItF/SVv19HCcHPFr3EINEaHA+RK/TJ/nR+l0mVzA=; b=UX+6e/vzrKLcZFKIUdVaD6lOaciyTDXT4D7aq+z342UkSORdyQj1oj/BMKBnBCyAEo5xRjojiyHH46sJBCKANztvnxmdJ7J/bIy39ZfGcns0nFaolK+kBVmGjRQTs75biCfNMsTwrKM1D0+aV7zuw5NXilClRdoRv7ssxKaHNY5tB9qQpZvGnLocQYiA4pb0JNv1bzPmZ2QfEfLC72CGHRrVfDO8qNpeHm5lBkDvxIuVOi9amjgCEObmZihq8PrqSG7bNb0fsefUtt4rkqv/F6Wn2jTeSbePFwHGghkYMtzTo/Vfr3DD+lGjX/TFZMx2V+r9QSwWe+Ol/mWUgdpkSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WCXItF/SVv19HCcHPFr3EINEaHA+RK/TJ/nR+l0mVzA=; b=K7yySUXm5gTmuWt1RZ5dpVLZIm4mgFbp1QfPFL/OI/cBfGZbxKhe9b2AKBOu+Ws8B7TaLbUwovfIuErMbWfvxIMMmEIfUrL0RS9kpQH1DL4z9illetres9zmyKRDfII2MsgwTMOlzQUgguYZX3UMnL9f0HWm9LNUo/fQIlZdHR4= Received: from PR3PR08MB5850.eurprd08.prod.outlook.com (2603:10a6:102:92::8) by PAXPR08MB6494.eurprd08.prod.outlook.com (2603:10a6:102:154::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.14; Tue, 27 Aug 2024 20:56:18 +0000 Received: from PR3PR08MB5850.eurprd08.prod.outlook.com ([fe80::2ee0:fadd:256:209e]) by PR3PR08MB5850.eurprd08.prod.outlook.com ([fe80::2ee0:fadd:256:209e%5]) with mapi id 15.20.7897.010; Tue, 27 Aug 2024 20:56:18 +0000 From: Wathsala Wathawana Vithanage To: Vipin Varghese , "ferruh.yigit@amd.com" , "dev@dpdk.org" CC: nd , nd Subject: RE: [RFC 1/2] eal: add llc aware functions Thread-Topic: [RFC 1/2] eal: add llc aware functions Thread-Index: AQHa+JNkJM+trKPw7kG/O9C1NB62H7I7kdUg Date: Tue, 27 Aug 2024 20:56:18 +0000 Message-ID: References: <20240827151014.201-1-vipin.varghese@amd.com> <20240827151014.201-2-vipin.varghese@amd.com> In-Reply-To: <20240827151014.201-2-vipin.varghese@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: PR3PR08MB5850:EE_|PAXPR08MB6494:EE_|AMS0EPF000001AC:EE_|DU2PR08MB7373:EE_ X-MS-Office365-Filtering-Correlation-Id: 2afb1197-8d88-426b-c68f-08dcc6dab920 x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|1800799024|366016|376014|38070700018; X-Microsoft-Antispam-Message-Info-Original: =?us-ascii?Q?6Zjco3G/AMOVYeoyVA0s107mR84mSNIKZK0GN5GOuMMlaMEnAUFgdwQSNFX0?= =?us-ascii?Q?PNpiK0OYUG63CGwM50H4kwblajMGrTU10v6YfCUeuCJ/849A0+3rzaz4me13?= =?us-ascii?Q?GgRhzNXmdQ+diLPrLpDLwVXvr3Roy6PgccWqKKOC0uPgkNEWsAKckyDRbAn0?= =?us-ascii?Q?97YdbTD9wdEaHyIQJulpbF3PxN03Uk5inl5wMU9vy7/y8QWx5/sUv+K97m3F?= =?us-ascii?Q?+5Dq0pWxI1NGyL2DbZ/089OPnHq7eCbuhOejddzPapv+VxFYb9pogmzZPT4i?= =?us-ascii?Q?2gOCNjO8IpQz4M3FW0TXrmPSbWKzF+d+UmgB5TKZFkPRkUumlT0szdZ8fTV5?= =?us-ascii?Q?rJo5il7yjqxk0myijfjJUMnqnizp7CZ23XG/IEmsALLZMduXUKHRnAtEDKZJ?= =?us-ascii?Q?fZpuLX8YZEOG6SW/yXcK5HkaAOB8+azKKsZuRvEsq7jBUWnWJYCrjomTouMQ?= =?us-ascii?Q?Vr+owgv1okWlTqfNf1fs1KcTKQ2wWJNJBkqez9Z95x6jjL2jXVg733srnbur?= =?us-ascii?Q?OEoOJxc4U4F4mxzh/isHT4/BO2YI45dDVhyCRn0eT1gkHYz/9zhOBBljo0wD?= =?us-ascii?Q?b6Dan2k6oc6ULk3K0dr5SdMmWENDPQTMQpYkE5nGXPMjFfcnVaEZG/LwSCt3?= =?us-ascii?Q?vf0+KWddVt2103Ewy5twrZxJthnzMTAtdOxlSIWmxVdCUeP9MDYUNthYR2P9?= =?us-ascii?Q?rGrmKmf5LnrR+3moIuF1z2aib83+3MFI9SGz/ie1JlANeoVGdQeN2VhGIB8d?= =?us-ascii?Q?Y70x593L3yqF2PXsQKq5EQL0rlg+WVkTi5lTwd5oku05xeXIF4KEpddqPDLf?= =?us-ascii?Q?uba3/0jalflyc2swcTxGkacNeaAePydL2AjhmAcseyBE1Ldka0yGzp9ccxMl?= =?us-ascii?Q?2r2pXs70T15/nV3HCE5O+eCJ53phEuqKTswuVNGLwqJetHpjQo40sDCZwO7P?= =?us-ascii?Q?pMbGeB7jAB6NFqk2UlqepIV3oTXdAU2vUXqzzLGlk86Xe6jn/0ZYxmwa3wZY?= =?us-ascii?Q?WzStPNHF4lrL9BslhpvLkanlLRPyKOTNoRKoOvbpUiJY1HFJ6JGrAR+l9agr?= =?us-ascii?Q?TCGc+0Syyp7kLz0RybS59YDpDDOs6sSPDishYGHY0kK8s9TkanA0fdfBI8iO?= =?us-ascii?Q?pKZnNi0EccVLXHcO2zZnzEE9ntsStQnU4TFlzykYnvlRcRGqauqUT/mrsQE/?= =?us-ascii?Q?eyOVb1d5QsqiKRG76l4isQk04ktceafgmHJ0zufWajLNqYzNh7PwBiutRUWr?= =?us-ascii?Q?NV5E6WSVCl1o6+PpbxrKO/5gcNOEBKjIHVnitRkfDDvlmEuYhZjSvXiviQvz?= =?us-ascii?Q?OrD57oxiRynbOhQDQ8lGaeOSaXmU/aHagRa2KKSKXYKDg9JQg4jDt7VyPEw3?= =?us-ascii?Q?c/2wH7Yv0pE+e+6Gj5AxnUzFH+HCzcTWkzIsLVsXo8dTsVYFSA=3D=3D?= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PR3PR08MB5850.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(38070700018); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6494 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:102:92::8]; domain=PR3PR08MB5850.eurprd08.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF000001AC.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 8ccffdcc-4728-4dd5-2a22-08dcc6dab2c1 X-Microsoft-Antispam: BCL:0; ARA:13230040|35042699022|1800799024|376014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?BgK64Bn1uuVY1AVyY3o4Je/qyUjBkWd4zCdpg/dmvMeOAXJic7rj2Mq43nq8?= =?us-ascii?Q?Eh4BU39UBBrkAxnInTbxrrAwK0z6u3BdGfOW73wALDRKjuO6HPQh0tjkwth4?= =?us-ascii?Q?BVY1twLlrnxRL8vk1rWss6nIdp/8bwRPp4XNZ9lB0VgBL4wPL1GByVP2JhUX?= =?us-ascii?Q?Iv69SwEk06eg9lnsbleS1GsCzI0yavaVTK9FbH58ryd6Fh9QF/Wln6ffWPNi?= =?us-ascii?Q?yNIk5X3zdCgSq38Hp+VXv85bCE4oC/nThU+B/e1BQxuC/ruhpQByVg8F3d4c?= =?us-ascii?Q?BCy9pPdhXDDrg3B//brBxi0PoJA2fN/p8yJDsN6ggqbZHYq6q4m/wp1Acrq+?= =?us-ascii?Q?R56maUWnyTKbqciEbHsuoAmyxzPBt1nwQ3j1cF129Zix09gogy5zK34E66cH?= =?us-ascii?Q?6tkIH/Q62WNfl0+9Nqa24Xi69VVkaldSRY1Q80TC3ScFckVIzNtQgXl1iCYk?= =?us-ascii?Q?+wPRgiLc5thSsagJfH1eNu9gfrRuQTRJto53Z3yPqmGjl2HhB6FH9jkaSmHA?= =?us-ascii?Q?cwoY7raD7wzippF113CtHLjpGwtKKPIsPjfVs0sJ1zm0VBmsKlw+v+Y1OZV6?= =?us-ascii?Q?c94VZpSvVHMHCC2yN6vIBMRg257N4W5boIFQspJqUjEK6mulb+KhA2OZKLDh?= =?us-ascii?Q?HFJVu9bMUXLytSg2+Zu/v8nslm+sRdI8AMIpAycFqeJPc9eTXm4DAC6WTx/i?= =?us-ascii?Q?k6xKVagh5AFJdZP/LNlcrdDeV8zy/ZrnOp5L4TGhoddjDJqSDjTGMS8kTGMv?= =?us-ascii?Q?DcH1jUHYv1gMybemjVfHkcowjL0NB8+1Yf2mAnMzidhLWa7y6L1K5YyY1te8?= =?us-ascii?Q?BNtSOM6NFjI3gd1MGAE7QsXsC6TEWPcVRHlDgGY96zcaJNxoelHYAaa/XmND?= =?us-ascii?Q?vinslK89BRKLIFAb9KqHIQJiU4b6T8y2lEFc7jg0Jq0E56pldhWmz/eHTVGc?= =?us-ascii?Q?HVL8Mgc9JuYhxRZFcjCNoXfjPBCxJ58G2MynNy5twOlixWg94tMrFsIKdwYq?= =?us-ascii?Q?9ZNOTc9vzudQN48rQh4xJ5VIKfSta0yh/kdIUh/owDwVs8x7DhVYn7JE7JT6?= =?us-ascii?Q?JO/YV1tR0XqyhEAmHTMTFX5WxAhxx216XELSS43p+R47npH8I4SLogfRUWC4?= =?us-ascii?Q?xZx4Zf6lnI+h7QleOnJGSCJQ0jGmIjYbXTDijbR7IZyaaFAMNv0Ss1Bh80CE?= =?us-ascii?Q?FQ8yc+dYWe2bkGC4LC6hEDlSQPc5pm8UFvpt5oTcG24ZogHacNHytGNNdih2?= =?us-ascii?Q?m0ewNI8QVR3Yblt7OS/t/PTmlU//8lqgHCRQf2wdBRGcmxckhk3FDZe0a7oS?= =?us-ascii?Q?+320a5kd8vnRrcMxOuXCUQmsK1fmqIyeU7kIOow/ATjpFRfxH/kPLURngfia?= =?us-ascii?Q?r1/9e/Gy+QIxsv0mWh9lWnK+qehl0EIJOg9kjXDAtgo/L1y9e4r2lhVd/T+k?= =?us-ascii?Q?b4dXyZAZMhl8Gt79qpFENHbx193wuo5q?= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230040)(35042699022)(1800799024)(376014)(82310400026)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2024 20:56:29.0402 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2afb1197-8d88-426b-c68f-08dcc6dab920 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF000001AC.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB7373 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 > -unsigned int rte_get_next_lcore(unsigned int i, int skip_main, int wrap) > +#define LCORE_GET_LLC \ > + "ls -d /sys/bus/cpu/devices/cpu%u/cache/index[0-9] | sort -r > | grep -m1 index[0-9] | awk -F '[x]' '{print $2}' " >=20 This won't work for some SOCs.=20 How to ensure the index you got is for an LLC? Some SOCs may only show uppe= r-level caches here, therefore cannot be use blindly without knowing the SO= C. Also, unacceptable to execute a shell script, consider implementing in C. --wathsala