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 3B01145879; Tue, 27 Aug 2024 17:10:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C1A4C40E1B; Tue, 27 Aug 2024 17:10:40 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2050.outbound.protection.outlook.com [40.107.243.50]) by mails.dpdk.org (Postfix) with ESMTP id 1AAC940E19 for ; Tue, 27 Aug 2024 17:10:39 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=n5SWNDmgNtxx1m7ZjGXbjIkuNz6YEa7saEUv/598lHlyq7untK35NkFTpaHGUPEDNhVT0z3F8opw+UrqmESvWBkpf4oa+9KGKBqLRZpnnn0s2SrOKm2l6/EFY/fhgd9/RxyyOhDYVABhturtTQzgVV6+n2WI1zYe8z/vz5jZE0r440ebemIvL9U6yHX024nII/5CyQRM88kz1WT3D1P024M0jbmoWJ6dI9E2gGcQfzo7IxZjghbI3vRcHUhcDR+VqvUsv3JyAL0doATnfONhcdUlV7ZZ3c50kuglk6LmINQYUOSuYaU8FfGb+LemSYuG/+skaXuMCAT++gJhXrIz2w== 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=zQ0ATG6bOqeVEyN0KtbJvfyiEK+vyHBBYP1SQcCIcIE=; b=frrEroRTmhvrguhXsKUxYZvfaRjGxixFKSDgwIBSQdZU44zkTKxe0aQDNdZpoxzF6zXd3CJahGQmBH2v7ahKx1+m2e722WKlimEx8Avj2QjyWQqIcHnkpmL7wPSb2wrSA1YO1eFb57rMLrk11oF/26R+NoOmmsHFXLCNqZTjws6Wg8jvgtyEeVkCYuQPrW92LpP1dPGF79dA4GXnFIe96A2sm1jRlZ/dOJldxcHV4dTa6RazHEnualH2y84ozQH1X/TKcR8rqNcen2t7HKoLfeI1SwJj8wsLmsgdUXf6edNUJsNJOVtofeGMbLuQJIAhmAkeRazu/W+lJ4PNvFcbDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org 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 (0) 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=zQ0ATG6bOqeVEyN0KtbJvfyiEK+vyHBBYP1SQcCIcIE=; b=g0cnd/2Kb0KKrRwV/fkM5tGZ5ZJoU8tIA5I8F8+GUZBtH3RStDIqvCMhjM7Q4/O6LKt6+kEwgzEr2OTIHG7Tt9rg97W/FpNoAuarLhBpEGC6+Qx4FHfxW/K0jVz7Yy04P+TSNM1yuj9oRb+Sw+ombIN6bWDhNraOf+R+lUdfd+k= Received: from BN8PR15CA0037.namprd15.prod.outlook.com (2603:10b6:408:80::14) by SJ0PR12MB7007.namprd12.prod.outlook.com (2603:10b6:a03:486::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Tue, 27 Aug 2024 15:10:32 +0000 Received: from BN1PEPF00006000.namprd05.prod.outlook.com (2603:10b6:408:80:cafe::82) by BN8PR15CA0037.outlook.office365.com (2603:10b6:408:80::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24 via Frontend Transport; Tue, 27 Aug 2024 15:10:32 +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 BN1PEPF00006000.mail.protection.outlook.com (10.167.243.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7918.13 via Frontend Transport; Tue, 27 Aug 2024 15:10:32 +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.39; Tue, 27 Aug 2024 10:10:30 -0500 From: Vipin Varghese To: , Subject: [RFC 0/2] introduce LLC aware functions Date: Tue, 27 Aug 2024 20:40:12 +0530 Message-ID: <20240827151014.201-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: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN1PEPF00006000:EE_|SJ0PR12MB7007:EE_ X-MS-Office365-Filtering-Correlation-Id: 87d9556b-36c6-4d78-f1d3-08dcc6aa652b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?bY8YTTR8ecdHDxswJ47CkqW2lGWTeS1SfFiZ2C05HHZ+46H81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L91N7PwujMon+kAURz6nZhfrffN?= =?us-ascii?Q?2pJbBPP+BUDsVf2zo+Ssbwelk1C8Kcvwbq7eQ7YbZg4jSfhYSo/4AyUgJvnc?= =?us-ascii?Q?SWHNdZHP68HVntK/9MMV+qSG7Z4CbRdL8vbPwZlV56ULMHuGkj4WQUEz8XrZ?= =?us-ascii?Q?ArHuYTT1FRRvnpE9O5SSLw9j6d+m4HkulwFsJFHp+rA5IfZzCho+ytGGZRH3?= =?us-ascii?Q?f5HYVKwsQ3DOJhJtWk10LS9x29xg0ejkMOF3EL/iH8vLpbyiHcA2fxOhpSoX?= =?us-ascii?Q?AemIGQX2B/6z7wt0cORo8qrFVn/l/lMRhOKuKuCifRyk6WNE3MweEsqk8caU?= =?us-ascii?Q?3v0fEbXylPsVZh4tcnKpqfkH1e81TRv8vzgThQfvzfZbqy5VymdjDl4t1nEd?= =?us-ascii?Q?Jgla95P8qg9aFYjHa1AUXx8JFvh7I5Gn3JkZ1I8Tl6pQ+2/S0W7i4D/ZAAzR?= =?us-ascii?Q?viMCYfbGVdTk24RL21ikXqXywQcR2y000tOxiR+51mIeSeiy7hZySZqsrEMH?= =?us-ascii?Q?tX7x7xm5nkH4TQIq13RPRN062DcTx6Id?= 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:(13230040)(1800799024)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2024 15:10:32.2324 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 87d9556b-36c6-4d78-f1d3-08dcc6aa652b 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: BN1PEPF00006000.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7007 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 As core density continues to increase, chiplet-based core packing has become a key trend. In AMD SoC EPYC architectures, core complexes within the same chiplet share a Last-Level Cache (LLC). By packing logical cores within the same LLC, we can enhance pipeline processing stages due to reduced latency and improved data locality. To leverage these benefits, DPDK libraries and examples can utilize localized lcores. This approach ensures more consistent latencies by minimizing the dispersion of lcores across different chiplet complexes and enhances packet processing by ensuring that data for subsequent pipeline stages is likely to reside within the LLC. < Function: Purpose > --------------------- - rte_get_llc_first_lcores: Retrieves all the first lcores in the shared LLC. - rte_get_llc_lcore: Retrieves all lcores that share the LLC. - rte_get_llc_n_lcore: Retrieves the first n or skips the first n lcores in the shared LLC. < MACRO: Purpose > ------------------ RTE_LCORE_FOREACH_LLC_FIRST: iterates through all first lcore from each LLC. RTE_LCORE_FOREACH_LLC_FIRST_WORKER: iterates through all first worker lcore from each LLC. RTE_LCORE_FOREACH_LLC_WORKER: iterates lcores from LLC based on hint (lcore id). RTE_LCORE_FOREACH_LLC_SKIP_FIRST_WORKER: iterates lcores from LLC while skipping first worker. RTE_LCORE_FOREACH_LLC_FIRST_N_WORKER: iterates through `n` lcores from each LLC. RTE_LCORE_FOREACH_LLC_SKIP_N_WORKER: skip first `n` lcores, then iterates through reaming lcores in each LLC. Vipin Varghese (2): eal: add llc aware functions eal/lcore: add llc aware for each macro lib/eal/common/eal_common_lcore.c | 279 ++++++++++++++++++++++++++++-- lib/eal/include/rte_lcore.h | 89 ++++++++++ 2 files changed, 356 insertions(+), 12 deletions(-) -- 2.34.1