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 973F74234D; Tue, 10 Oct 2023 17:26:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6993F4029F; Tue, 10 Oct 2023 17:26:12 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2046.outbound.protection.outlook.com [40.107.100.46]) by mails.dpdk.org (Postfix) with ESMTP id 4CA7A40297 for ; Tue, 10 Oct 2023 17:26:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GF+6oP4vil2FV6aesbRKWhcRdw5hWREXMxQ5duxchI1gkOubINetBM1ZDEfDkQmZrCRY18dnzRy3pEtvpiBKp66kPBsKUHXdr7dMg4+jdMMn4KPFxbfF+JLC6ms0BHoqsy5JBlufQ9Gvcnkj1yS5p8R2BMmtE3ICZIkFsJvQUG9d58sKiDCz8W/8Rk5jtqvCu040qZWnYlni3z2l1+NlmoLad1uXsLxphJiXUXyVmhU7zmv6vCe3fpHNERIdAuFdTGHUXa0ddVvFnQfHxiwrpje5CBWJuh/dhpVghLwrRG/HRso3jh+tUep/lnHLGL/im8JPojvaW9+fTjVK4i1QAg== 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=xvYFsM7eBg6aeI7aiBs8u7amRVgoDDEwXw69Z0tkDRQ=; b=ipHCtWZ7u0lZfXciPwaIshSkF7n4YMKAe/q3vvFIipvfarl4xrow4sWwdjRFTNSjFRXtlleXUuZTG36zVoaBCJaSoPUtyJsySzDs+detbe+gC2hPjPiCvyR2XpmOUTST/0qzrHmpy2gtkqG13RIfLUgLdvrsgTooyv07FgnIFyNjiJ5omsMd3r7+dX96629b3WTR8mm3eutqAb5MNexfaSAW1HCMa20Grmago4hCzgtUD9iL4Ypm7XsTkRpdWrTWBeLz5dtl496osnMQZxyrEGFj0fMWAuGsRHA8kOdUjY8APtdFhC6yC53cXsBPMRYJnEDXDdH80xTPSL5l14Z25w== 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 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=xvYFsM7eBg6aeI7aiBs8u7amRVgoDDEwXw69Z0tkDRQ=; b=A69N8Ohps0Vu7WA9Xoqukr+X6m2MluVMPV75g4e2TD2sSHPsTnZR9nWzcghdMy/kd5LL7SanoBJaAOsA0CA4NHNJNcMHy7T9usJ/Jpk51BXyW25UGvOLgBKrRVF4oLBm03v3B31UL/8cqYJbjmh4anOXUUqiBAaYDERU9NtC7/s= Received: from BY5PR04CA0027.namprd04.prod.outlook.com (2603:10b6:a03:1d0::37) by CH2PR12MB4859.namprd12.prod.outlook.com (2603:10b6:610:62::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Tue, 10 Oct 2023 15:26:07 +0000 Received: from DS1PEPF00017090.namprd03.prod.outlook.com (2603:10b6:a03:1d0:cafe::42) by BY5PR04CA0027.outlook.office365.com (2603:10b6:a03:1d0::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38 via Frontend Transport; Tue, 10 Oct 2023 15:26:07 +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 DS1PEPF00017090.mail.protection.outlook.com (10.167.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Tue, 10 Oct 2023 15:26:07 +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; Tue, 10 Oct 2023 10:26:05 -0500 From: Vipin Varghese To: CC: , , Subject: [RFC] doc/linux_gsg: add amd configuration section Date: Tue, 10 Oct 2023 20:55:39 +0530 Message-ID: <20231010152539.1888-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: DS1PEPF00017090:EE_|CH2PR12MB4859:EE_ X-MS-Office365-Filtering-Correlation-Id: fe8941c0-9576-470f-b48c-08dbc9a53955 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZEOz4kPg/S1pzuXQGs5ZDL0xNTlA0yCLbS9280Jkw6z9BPb/i/yFzxvzPl33g/JFwVbEpwJ9lwgXbevNk1v2a9YqwlLVtppub0CyzhACEssrh74mWKN39e17U45w7IADfyv9R307SFvNr/UxzbFROtnVN3Y2CShZifvZJ8PScNxY0D5zSyL58MpBA+C6OtwxrvJKLzYTAloYUDDBTqos+6dMdq4KvU2knipN5unUod/iZxDG6+znDLt3RCkt7RzoluNLzWu65iPf7xej+KEDxieel0Cr5F47AalS4nR4eGA4A/bJC/Z/Y0RkBaJ9PIv2T1fj4oJM3SPZCq/AQNZrQi+CaTrVLVH01+ZfC3LctdbELxfVwoNAj9ZJNKdrqwZ2qMQl4gv5Z/XdY8KV7BZa2qkfrLMcFTVPIlOqfvbJeccMSNp9IasjpuXmvx+K5QpeblQCkOm49SD//+lW524FK9EuWzfFiHxdvPTz4ybDUaLAmtuMKirWjjJSJAG8Yy6zvDvUETVGGEYdqbWxqx/98oNRizWRe5yb0aI4VE8Ev7RKbQ3jzYjzgcsr3fqA0z2Q6IEGzYMV0xevqxx0JEFyrWHYoenhcm+cG026q2Z/NX+PUEC6EoFiQzwxtv1Ti7l3sMdo3uWc1dJK287jQUzIY8f/+Slc4T6mZK/h62vHoS4it7a5Abi7foN9dYW1F91h1oxSV7q/MGbIgJzx5FZ/H+wBjv7KNUCAMh2ljBTuO9Wtpe2555zHYia6K7FFeSPkJPsEv8Upe7jhp5sofBh+hMIuif+cKwIWvJr/LrDHdB2/rJ5j/xu1QKbaoZqfnRIt 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:(13230031)(4636009)(376002)(136003)(346002)(39860400002)(396003)(230922051799003)(451199024)(82310400011)(1800799009)(64100799003)(186009)(46966006)(36840700001)(40470700004)(40460700003)(66899024)(86362001)(47076005)(2906002)(36860700001)(356005)(81166007)(82740400003)(40480700001)(70206006)(70586007)(6916009)(54906003)(7696005)(316002)(26005)(1076003)(2616005)(478600001)(16526019)(36756003)(6666004)(41300700001)(44832011)(5660300002)(8936002)(8676002)(426003)(4326008)(336012)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2023 15:26:07.0980 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fe8941c0-9576-470f-b48c-08dbc9a53955 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: DS1PEPF00017090.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4859 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 Add AMD EPYC SoC tuning guide as new setcion of linux getting started guide. Signed-off-by: Vipin Varghese --- doc/guides/linux_gsg/amd_platform.rst | 63 +++++++++++++++++++++++++++ doc/guides/linux_gsg/index.rst | 1 + 2 files changed, 64 insertions(+) create mode 100644 doc/guides/linux_gsg/amd_platform.rst diff --git a/doc/guides/linux_gsg/amd_platform.rst b/doc/guides/linux_gsg/amd_platform.rst new file mode 100644 index 0000000000..bcd12bf4f9 --- /dev/null +++ b/doc/guides/linux_gsg/amd_platform.rst @@ -0,0 +1,63 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2023 Advanced Micro Devices, Inc. All rights reserved. + +How to get best performance on AMD platform +=========================================== + +This document shares step-by-step guide for configuring AMD EPYC SoC across various families for getting best performance for DPDK applications. +Various factors like BIOS, Numa Per Socket, Memory per Numa, near-far from IO device affects the overall performance. + +These are covered in various sections of tuning guides shared below. + + +Tuning Guide for AMD EPYC SoC +----------------------------- + +#. `MILAN `_ + +#. `GENOA `_ + +#. `BERGAMO|SIENNA `_ + + +General Requirements +-------------------- + +Memory +~~~~~~ + +Refer `Memory Configuration` section for SoC specific details. + +Note: general thumb rule is to ensure that each memory channel has at least one memory DIMM populated. The ideal memory size for each is at least 8|16|32 GB ECC modules. + + +BIOS +---- + +Refer `BIOS Performance` section in tuning guide for recommended settings. + + +Linux Grub +---------- + +Refer `Linux OS & Kernel` in tuning guide for recommended settings. + + +NIC and Accelerator +------------------- + +AMD EPYC supports PCIe Generation of 1|2|3|4|5 depending upon SoC familes. For best performance ensure the right slots are used which provides adequate bandwidth. + +Use ``lspci`` to check the speed of a PCI slot :: + + lspci -s 41:00.0 -vv | grep LnkSta + + LnkSta: Speed 16GT/s, Width x16, TrErr- Train- SlotClk+ DLActive- ... + LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete+ ... + + +Compiler +------- + +Refer `Compiler Flags` for recommended version and `-march` flags. + diff --git a/doc/guides/linux_gsg/index.rst b/doc/guides/linux_gsg/index.rst index c3e67bf9ec..ecdaf35eec 100644 --- a/doc/guides/linux_gsg/index.rst +++ b/doc/guides/linux_gsg/index.rst @@ -21,3 +21,4 @@ Getting Started Guide for Linux linux_eal_parameters enable_func nic_perf_intel_platform + amd_platform -- 2.34.1