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 BA646439B8; Wed, 24 Jan 2024 19:03:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4177C40DF5; Wed, 24 Jan 2024 19:03:33 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2077.outbound.protection.outlook.com [40.107.237.77]) by mails.dpdk.org (Postfix) with ESMTP id 71705402A6 for ; Wed, 24 Jan 2024 19:03:31 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MPnXlPJwVrjHYneooGy9CdPYxrBxGtKMtl0npWMZIoY0ZQ14PHXmfaeAepqMMOIMRZTxGydIVrvsmwiPyWAZwX51TcmJr4gdOE8ajHXDq2DEYtwFFuM6m8o/XmEgcZ65lgawBqYp/+69hylffRQZrZVYrA4BGUR+B/nVix+vANorCnTfFK1Z0Fj1SxcN+tT15dxIxSZeaiET8kDEdogUV/xcnz9bI5MWoYvq/DiDhv5HtbYb4KsX/0sauZ1BoCXzh+nmzxar1dY39AE1fQG6E8fBKvtCHZqST+ONXeUHUQL+JLBqDx/grgEKFvJbfKriA/3srC43Ad/RBsoX/m4jCA== 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=ciHbkmJeI9tXbxGfE0QECM2Pl2Tlnkox7vsGuILBM+M=; b=OEtlXlA6i9XTiFnn2YEgbP0tRbz+p35+tjrwvhG8aY6/oP8seDe6E4703YCaBH6b6Dsr34CCAhGpHgMG3AGjZOXz12Rv9BukujUil/eR/fko1Ckb76nz3zx5zfN0QbSK9ZZvy+lQgdHvZURc/CKkPEmsAvnir4bdqopjXGqs7s4A7B6vlG7sKD7RvYSzAqi+eF/8wZCKH7NO8s33tOcFUbsbOlz1SLfjphtLfB3TOy4cHdgjDQtA0gPCUGPm03Cnqfqt5RgaiB/RdC36iA9aXjKaVvj35ksEhm/Iaa6lDX/z1ofclVeG8mzAdxYxRMkd7ehquGfb8pdVU63bPbfsbA== 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=ciHbkmJeI9tXbxGfE0QECM2Pl2Tlnkox7vsGuILBM+M=; b=gd/mseEEBuTMUbYCcDI/c5YAPXj7gkz4yoMDBhhY39E+WAbm7lKdqndYL8PaugKkivKbkFeXDdpDGUQbyvHHPX7xKtpLr9XKyYY+DBCtFH7Q10oaZGPJyzQQK0eKYjcPvpFMVHew/F1vDiq1saLcEkhsQfXt1xRW0TTof2Lx/OM= Received: from SN4PR0501CA0102.namprd05.prod.outlook.com (2603:10b6:803:42::19) by SJ2PR12MB8064.namprd12.prod.outlook.com (2603:10b6:a03:4cc::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Wed, 24 Jan 2024 18:03:28 +0000 Received: from SN1PEPF0002636D.namprd02.prod.outlook.com (2603:10b6:803:42:cafe::14) by SN4PR0501CA0102.outlook.office365.com (2603:10b6:803:42::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.21 via Frontend Transport; Wed, 24 Jan 2024 18:03: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 SN1PEPF0002636D.mail.protection.outlook.com (10.167.241.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7202.16 via Frontend Transport; Wed, 24 Jan 2024 18:03:28 +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.34; Wed, 24 Jan 2024 12:03:26 -0600 From: Vipin Varghese To: , CC: Subject: [PATCH] doc/linux_gsg: add amd configuration section Date: Wed, 24 Jan 2024 23:33:10 +0530 Message-ID: <20240124180310.1743-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: SN1PEPF0002636D:EE_|SJ2PR12MB8064:EE_ X-MS-Office365-Filtering-Correlation-Id: d9b0f91c-82ac-44a0-41b7-08dc1d06c495 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NoMSfNTx0O29OQlPdz2gPZVBLbd6STrwpn2zo6EkXy09degzFI+7Uuaj6w4ek+IxXDRmdACFzvYlYEYP2Khln/S0weG20ZGuS9sh4DEEqlVnQiCgS4f+fz+yCsORj2Gh277KiKo66Q46UA6Xg85tIlp578p3B863I5fy6hdBrsRiGpOMnDb5+Q20p70krK0zsTC6ZmuK3EGXTDqDIDADo+wMeQnEO5UlzZTWc3YVWIjjjxr+HdVb8CzMbWszO/A+ZZsyqbymEff5Vo/vbGS4XI95G9lWbIf93LoV4Tb8/sQ/wdVGlDkVC5XG4129n/mvwwzE86lUg11qiwN/v59ToLLX2ZuqWakqIWE0BeBZsACDeElSG6ltob8vWbtHhvV1hv/EcBqS5uun8vLQpG7HxEFPOj6yEK3o4PzCJXQql7bLnpDFCZW+58uWluysj21/SPdfyunmKhVrpH2vsaZBlhtdUMIggpfXvtm1mrFkgwafUK2ZUf5WTWxGlfHQYavZ5fd3jBVG970n/lSXQDPGK9GwYW1npJy45cJSuzrAsc8eW3MCMWJL9vPGOfluGGbYGk4zvQFI4nSpPBYIyd7V5VUPiQ0Tx9u2aIEl4NVJ6hikdwkFDz3ph0DqO0TnRHezhGVWMidwgespntva7HQVOG5KPmA+bRQ7RPnczUMJBBRXZ7+kB+cI1G8eyDpURe1haF7szU+U9kwEwp/8I+ECrA8sa9r0AsjUjR6+F1tGqwCv7/je48LZprJBmJyq1FMg787AMGyFybyvLrXvSyZA07KGtxtn2ONevqL4AgYgco4= 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)(39860400002)(396003)(346002)(376002)(136003)(230922051799003)(82310400011)(451199024)(64100799003)(186009)(1800799012)(36840700001)(40470700004)(46966006)(41300700001)(426003)(1076003)(16526019)(40480700001)(40460700003)(336012)(36860700001)(47076005)(36756003)(6666004)(2616005)(7696005)(26005)(478600001)(356005)(81166007)(82740400003)(316002)(44832011)(2906002)(70586007)(70206006)(110136005)(86362001)(8676002)(5660300002)(4326008)(8936002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2024 18:03:28.4268 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9b0f91c-82ac-44a0-41b7-08dc1d06c495 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: SN1PEPF0002636D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8064 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 --- MAINTAINERS | 4 ++ doc/guides/linux_gsg/amd_platform.rst | 70 +++++++++++++++++++++++++++ doc/guides/linux_gsg/index.rst | 1 + 3 files changed, 75 insertions(+) create mode 100644 doc/guides/linux_gsg/amd_platform.rst diff --git a/MAINTAINERS b/MAINTAINERS index 0d1c8126e3..e7122f1a85 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -275,6 +275,10 @@ F: lib/eal/include/rte_random.h F: lib/eal/common/rte_random.c F: app/test/test_rand_perf.c +AMD x86 +M: Vipin Varghese +F: doc/guides/linux_gsg/amd_platform.rst + ARM v7 M: Ruifeng Wang F: config/arm/ diff --git a/doc/guides/linux_gsg/amd_platform.rst b/doc/guides/linux_gsg/amd_platform.rst new file mode 100644 index 0000000000..237f84785a --- /dev/null +++ b/doc/guides/linux_gsg/amd_platform.rst @@ -0,0 +1,70 @@ +.. 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 provides a detailed, step-by-step guide on configuring AMD EPYC +System-on-Chip (SoC) for optimal performance in DPDK applications across different +SoC families. + +The overall performance is influenced by factors such as BIOS settings, NUMA Per +Socket configuration, Memory per NUMA allocation, and proximity to IO devices. + +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 to the 'Memory Configuration' section for specific details related to the System-on-Chip (SoC). + +.. Note:: + + As a general guideline, it is recommended to populate at least one memory DIMM in each memory channel. + The optimal memory size for each DIMM is at least 8, 16, or 32 GB, utilizing ECC modules. + + +BIOS +---- + +Refer to the `BIOS Performance` section in tuning guide for recommended settings. + + +Linux Grub +---------- + +Refer to the `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 families. +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 to the `Compiler Flags` in tuning guide 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.39.3