doc/linux_gsg: add amd configuration section
RFC 1/1 doc/linux_gsg: add amd configuration section
Add AMD EPYC SoC tuning guide as new setcion of linux getting started guide.
--- 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
doc/guides/linux_gsg/amd_platform.rst new file +63 -0
@@ -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 <https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/data-plane-development-kit-tuning-guide-amd-epyc7003-series-processors.pdf>`_ + +#. `GENOA <https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/58017-amd-epyc-9004-tg-data-plane-dpdk.pdf>`_ + +#. `BERGAMO|SIENNA <https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/58310_amd-epyc-8004-tg-data-plane-dpdk.pdf>`_ + + +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 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 `Compiler Flags` for recommended version and `-march` flags. +
doc/guides/linux_gsg/index.rst +1 -0
@@ -21,3 +21,4 @@ Getting Started Guide for Linux linux_eal_parameters enable_func nic_perf_intel_platform + amd_platform
Signature · 1 line
2.34.1
Got Superseded is there a new version shared for AMD tuning guide?
Quoted 94 lines · Vipin Varghese
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Add AMD EPYC SoC tuning guide as new setcion of linux getting started guide.
Signed-off-by Vipin Varghese<[email protected]>--- 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.rstdoc/guides/linux_gsg/amd_platform.rst new file +63
-0@@ -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<https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/data-plane-development-kit-tuning-guide-amd-epyc7003-series-processors.pdf>`_ + +#. `GENOA<https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/58017-amd-epyc-9004-tg-data-plane-dpdk.pdf>`_ + +#. `BERGAMO|SIENNA<https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/58310_amd-epyc-8004-tg-data-plane-dpdk.pdf>`_ + + +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 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 `Compiler Flags` for recommended version and `-march` flags. +doc/guides/linux_gsg/index.rst +1
-1@@ -21,3 +21,4 @@ Getting Started Guide for Linux linux_eal_parameters enable_func nic_perf_intel_platform + amd_platform --2.34.1
Quoted 2 lines · Vipin
Got
Supersededis there a new version shared forAMD tuning guide?
That's a question for yourself.
I saw two patches with the same title. More checks were passing on the more recent one. I marked the first as superseded.
Signature · 1 line
David Marchand
Quoted 7 lines · David Marchand
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Quoted 1 line · Vipin
Got
Supersededis there a new version shared forAMD tuning guide?That's a question for yourself.
I saw two patches with the same title.
I am searching for the second one that you have mentioned.
Quoted 2 lines
More checks were passing on the more recent one.
I marked the first as superseded.
I will reach out in slack if I am not able to find so.
Quoted 5 lines
--
David Marchand
Quoted 9 lines · Vipin
Quoted 7 lines · David Marchand
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Quoted 1 line · Vipin
Got
Supersededis there a new version shared forAMD tuning guide?That's a question for yourself.
I saw two patches with the same title.
Quoted 6 lines
I am searching for the second one that you have mentioned.
Quoted 2 lines
More checks were passing on the more recent one.
I marked the first as superseded.I will reach out in slack if I am not able to find so.
https://patchwork.dpdk.org/project/dpdk/list/?submitter=2511&state=*
Signature · 1 line
David Marchand
Quoted 10 lines · David Marchand
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Quoted 6 lines · Vipin
Quoted 5 lines · David Marchand
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Quoted 1 line · Vipin
Got
Supersededis there a new version shared forAMD tuning guide?
Quoted 8 lines
Quoted 7 lines
Quoted 2 lines
That's a question for yourself.
I saw two patches with the same title.I am searching for the second one that you have mentioned.
Quoted 2 lines
More checks were passing on the more recent one.
I marked the first as superseded.I will reach out in slack if I am not able to find so.
https://patchwork.dpdk.org/project/dpdk/list/?submitter=2511&state=*
I now understand. Checked the same, and fixed the windows git-bash. Did not notice this,
Thanks for helping.
Quoted 5 lines
--
David Marchand
There was no comment on this doc.
It is RFC, is it ready to merge?
Instead of the Linux guide, should we add it to the platform guides?
doc/guides/platform/
We may want to create an entry in MAINTAINERS as well.
More details below.
10/10/2023 17:34, Vipin Varghese:
Quoted 1 line
Add AMD EPYC SoC tuning guide as new setcion of linux getting
typo: section
doc/guides/linux_gsg/amd_platform.rst line 8
Quoted 6 lines
started guide.
Signed-off-by Vipin Varghese <[email protected]>---
doc/guides/linux_gsg/amd_platform.rst new file +2
-0+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.
Numa -> NUMA
Quoted 13 lines
doc/guides/linux_gsg/amd_platform.rst new file +13
-0+ +These are covered in various sections of tuning guides shared below. + + +Tuning Guide for AMD EPYC SoC +----------------------------- + +#. `MILAN <https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/data-plane-development-kit-tuning-guide-amd-epyc7003-series-processors.pdf>`_ + +#. `GENOA <https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/58017-amd-epyc-9004-tg-data-plane-dpdk.pdf>`_ + +#. `BERGAMO|SIENNA <https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/58310_amd-epyc-8004-tg-data-plane-dpdk.pdf>`_ +
doc/guides/linux_gsg/amd_platform.rst line 31
Quoted 10 lines
doc/guides/linux_gsg/amd_platform.rst new file +10
-0+ +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.
Please start a new sentence on a new line.
Quoted 5 lines · Thomas Monjalon
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
There was no comment on this doc.
It is RFC, is it ready to merge?
new patch shared doc/linux_gsg: add amd configuration section - Patchwork (dpdk.org) <https://patchwork.dpdk.org/project/dpdk/patch/[email protected]/>
Quoted 5 lines
Instead of the Linux guide, should we add it to the platform guides?
doc/guides/platform/We may want to create an entry in
MAINTAINERSas well.
thank you, added the same under AMD x86
Quoted 7 lines
More details below.
10/10/2023 17:34, Vipin Varghese:
Quoted 1 line
Add AMD EPYC SoC tuning guide as new setcion of linux getting
typo: section
fixed, spell check did not catch this for me. My mistake
Quoted 7 lines
doc/guides/linux_gsg/amd_platform.rst line 8
Quoted 6 lines
started guide.
Signed-off-by Vipin Varghese<[email protected]>---
doc/guides/linux_gsg/amd_platform.rst new file +2
-0+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.Numa -> NUMA
changed to all capital
Quoted 16 lines
Quoted 16 lines
doc/guides/linux_gsg/amd_platform.rst new file +16
-0+ +These are covered in various sections of tuning guides shared below. + + +Tuning Guide for AMD EPYC SoC +----------------------------- + +#. `MILAN<https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/data-plane-development-kit-tuning-guide-amd-epyc7003-series-processors.pdf>`_ + +#. `GENOA<https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/58017-amd-epyc-9004-tg-data-plane-dpdk.pdf>`_ + +#. `BERGAMO|SIENNA<https://www.amd.com/content/dam/amd/en/documents/epyc-technical-docs/tuning-guides/58310_amd-epyc-8004-tg-data-plane-dpdk.pdf>`_ + + +General Requirements +--------------------
Quoted 8 lines
doc/guides/linux_gsg/amd_platform.rst line 31
Quoted 7 lines
doc/guides/linux_gsg/amd_platform.rst new file +7
-0+ +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.Please start a new sentence on a new line.
correction applied.