[Paper Review] Measuring NUMA effects with the STREAM benchmark
This paper enhances the STREAM benchmark to measure Non-Uniform Memory Access (NUMA) effects on 48-core AMD Opteron and 32-core Intel Xeon systems. By modifying the benchmark to test both strided and NUMA-aware memory access patterns, it quantifies significant bandwidth and latency penalties for non-NUMA-aware code on AMD systems, while showing Intel systems maintain better performance due to higher cross-processor bandwidth, though AMD achieves higher peak bandwidth with NUMA-aware code.
Modern high-end machines feature multiple processor packages, each of which contains multiple independent cores and integrated memory controllers connected directly to dedicated physical RAM. These packages are connected via a shared bus, creating a system with a heterogeneous memory hierarchy. Since this shared bus has less bandwidth than the sum of the links to memory, aggregate memory bandwidth is higher when parallel threads all access memory local to their processor package than when they access memory attached to a remote package. But, the impact of this heterogeneous memory architecture is not easily understood from vendor benchmarks. Even where these measurements are available, they provide only best-case memory throughput. This work presents a series of modifications to the well-known STREAM benchmark to measure the effects of NUMA on both a 48-core AMD Opteron machine and a 32-core Intel Xeon machine.
Motivation & Objective
- To quantify the impact of NUMA architecture on memory bandwidth and latency in modern high-end multicore servers.
- To evaluate the performance gap between NUMA-aware and non-NUMA-aware memory access patterns in parallel applications.
- To provide concrete, measurable data on memory hierarchy effects that are often obscured by vendor benchmarks.
- To support the design and tuning of a scalable parallel garbage collector for functional programming languages by measuring real system behavior.
- To compare the NUMA behavior of AMD Opteron and Intel Xeon architectures under realistic thread loads.
Proposed method
- Extended the standard STREAM benchmark to include both strided and NUMA-aware memory access patterns.
- Measured memory bandwidth and latency across varying numbers of threads on both AMD Opteron (48-core) and Intel Xeon (32-core) systems.
- Used sparse thread allocation across nodes to isolate the effects of memory locality and interconnect bandwidth.
- Calculated per-node bandwidth and normalized it against theoretical interconnect limits from Table 2 (AMD) and Table 4 (Intel).
- Measured latency using only strided configurations to isolate RAM access time from cache effects.
- Compared performance across different thread counts to assess scaling behavior and saturation points.
Experimental results
Research questions
- RQ1How does non-NUMA-aware memory access affect bandwidth and latency on a 48-core AMD Opteron system?
- RQ2What is the performance difference between NUMA-aware and non-NUMA-aware code on Intel Xeon systems with 32 cores?
- RQ3How do theoretical interconnect bandwidths compare to actual measured bandwidths in real-world workloads?
- RQ4At what thread count do memory bandwidth and latency begin to degrade due to NUMA effects on both architectures?
- RQ5How does the cross-processor bandwidth of QPI (Intel) compare to HyperTransport (AMD) in mitigating NUMA penalties?
Key findings
- On the AMD Opteron system, non-NUMA-aware code incurs a significant bandwidth penalty and begins to lose performance at 48 cores, while NUMA-aware code scales almost linearly.
- The AMD system achieves nearly 55,000 MB/s of peak bandwidth with NUMA-aware code, significantly higher than the Intel system’s peak of ~40,000 MB/s.
- On the Intel Xeon system, the performance gap between NUMA-aware and non-NUMA-aware code is minimal, even at full core count, due to higher QPI cross-processor bandwidth.
- The Intel system reaches bandwidth saturation at 32 cores, while the AMD system continues to increase per-node bandwidth up to 48 cores.
- Latency on the AMD system degrades sharply with non-NUMA-aware access at moderate thread counts (beyond ~24 threads), while Intel shows uniform latency until over 24 cores.
- Both systems show a significant gap between theoretical and actual bandwidth, especially in strided configurations, indicating real-world limitations beyond theoretical models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.