NUMA Emulation Yields "Significant Performance Uplift" To Raspberry Pi 5

Written by Michael Larabel in Arm on 25 June 2024 at 12:50 PM EDT. 31 Comments
ARM
Engineers at consulting firm Igalia are exploring NUMA emulation for ARM64 (AArch64) due to the potential of "significant" performance uplift as observed on the popular Raspberry Pi 5 single board computer.

Patches were posted today for NUMA emulation on 64-bit ARM with the Linux kernel. Igalia found significant performance benefits with around 18% better multi-core performance in Geekbench and around 6% better performance for single-core performance. That's it for the benchmark numbers shared in the initial patches posted for this ARM64 NUMA emulation.

Raspberry Pi 5


Igalia's Tvrtko Ursulin wrote:
"This series adds a very simple NUMA emulation implementation and enables selecting it on arm64 platforms.

Obvious question is why? Short answer - it can bring a significant performance uplift on Raspberry Pi 5.

Longer answer is that splitting the physical RAM into chunks, and utilising an allocation policy such as interleaving, can enable the BCM2721 memory controller to better utilise parallelism in physical memory chip organisation.

In more concrete numbers, testing with Geekbench 6 shows that splitting into four emulated NUMA nodes can uplift the single core score of the benchmark by around 6%, and the multi-core by around 18%.

Code is quite simple and new functionality can be enabled using the new NUMA_EMULATION Kconfig option and then at runtime using the existing (shared with other platforms) numa=fake= kernel boot argument."

The patch series is just around one hundred lines of new code for getting NUMA emulation working on ARM64.

ARM64 NUMA emulation Kconfig


The code is now out for review and given the enticing performance benefits for the Raspberry Pi and other ARM64 systems, hopefully it will be merged sooner rather than later.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week