TL;DR
This paper investigates the performance benefits of "clustering" processors in shared-memory multiprocessors, where groups of processors share a cache or memory level. They find that while clustering can reduce communication overhead, its effectiveness is highly dependent on application communication patterns and the level of the memory hierarchy at which clustering occurs. For many applications, especially those with unstructured communication, the benefits are marginal, but it shows promise for highly integrated systems and specific application types.
What Problem Does This Paper Address?
As multiprocessor systems grow in size, efficiently managing communication between processors becomes a critical challenge. Shared address space multiprocessors offer a convenient programming model, but communication overhead can limit scalability. Clustering, a technique where groups of processors share a common memory or cache, is proposed as a way to improve communication efficiency by keeping data closer to the processors that need it. This paper aims to quantitatively assess the performance benefits of this clustering approach across a range of scientific and engineering applications, exploring how different application characteristics and architectural configurations (like cache size and latency) influence these benefits.
Methods
The researchers employed a simulation-based approach to evaluate clustering. They simulated a shared address space multiprocessor architecture with varying cluster sizes (1, 2, 4, and 8 processors per cluster). To isolate the effects of clustering, they initially used "infinite caches" to eliminate capacity misses and then introduced finite cache sizes to study the impact of limited memory. They also explored scenarios with varying memory and inter-cluster latencies to mimic different system designs. The study focused on inherent application characteristics, ignoring operating system overheads and multi-programming.
Datasets
The paper uses a suite of representative scientific and engineering applications, including:
- Barnes: Hierarchical N-body simulation.
- FFT: Transform methods.
- FMM: Fast Multipole N-body Method.
- LU: Blocked dense linear algebra.
- MP3D: High-communication, unstructured access.
- Ocean: Regular-grid iterative codes.
- Radix: High-performance parallel sorting.
- Raytrace: Ray tracing in computer graphics.
- Volrend: Volume rendering in computer graphics.
These applications were chosen to represent a range of communication patterns, memory referencing characteristics, and working set sizes. The problem sizes were scaled to be manageable for simulation on a 64-processor system.
Key Insights and Ideas
- Communication Pattern is King: The effectiveness of clustering is overwhelmingly dictated by the application's communication pattern. Near-neighbor communication (like in Ocean) benefits significantly from clustering, while all-to-all communication (like in FFT) sees minimal gains.
- Level Matters: Clustering closer to the processor (e.g., at the first-level cache) offers greater potential for performance benefits due to lower latencies, but also introduces higher risks of contention and interference. Clustering further away (e.g., at the second-level cache or main memory) has less impact but is also less prone to negative side effects.
- Working Set Overlap is Crucial for Finite Caches: For applications with overlapping working sets, clustering can be very beneficial with finite caches. When the combined working set of clustered processors fits into a shared cache, it can lead to substantial performance improvements, especially when individual processor caches are small.
- Latency Amplifies Benefits (Sometimes): Longer memory and inter-cluster latencies can make clustering more beneficial, particularly for applications that are communication-bound. However, this is not universally true and depends on the interplay of latency, communication volume, and CPU utilization.
- Not a Silver Bullet: For many well-optimized, structured applications, the inherent communication-to-computation ratio is already low, and clustering provides only marginal benefits. The overheads associated with shared caches (increased hit time, potential contention) can sometimes negate the gains.
Key Results
- Structured Applications (e.g., Ocean): Clustering showed significant performance improvements, with execution time decreasing as cluster size increased, especially for near-neighbor communication patterns. For Ocean, an 8-way cluster could reduce execution time by up to 20% with infinite caches.
- Unstructured Applications (e.g., Barnes, FMM, Volrend, Raytrace): Benefits were generally small, often less than 10%, even with 8-way clustering. These applications often have low communication volumes or working sets that don't overlap significantly enough to leverage clustering effectively.
- MP3D (High Communication Stress Test): This application showed some of the largest relative benefits (up to 15% with 8-way clustering) due to its high communication rates, even though the absolute reduction in communication was small.
- Finite Caches: For applications with overlapping working sets (Barnes, FMM, Volrend, Raytrace), clustering provided substantial benefits when cache sizes were small relative to working sets, with improvements exceeding those seen with infinite caches.
- Shared Cache Costs: Introducing shared cache costs (increased hit latency) reduced the observed benefits, increasing execution times by 2-9% for some applications.
Limitations and Future Work
- Limited Associativity: The study primarily used fully associative caches to focus on inherent application behavior. The authors acknowledge that limited associativity in real-world caches can introduce conflict misses and alter clustering benefits, which they plan to investigate further.
- Idealized Systems: The simulations did not fully account for real-world complexities like contention, load imbalance, compiler scheduling, and less optimized applications.
- Future Work: The authors plan to conduct more detailed studies on contention, the impact of limited associativity, and the performance of less optimized real-world applications. They also aim to explore clustering at different levels of the memory hierarchy and in more realistic system configurations. The decision to cluster, especially at small degrees, may ultimately depend more on engineering and packaging constraints than on application benefits alone.
Summary updated