TL;DR
As chip multiprocessors (CMPs) pack more cores, traditional cache coherence protocols struggle to scale. This paper introduces a "composite cache coherence (C³)" protocol that leverages emerging optical interconnects (OP-I) to combine the directness of snooping protocols with the efficiency of directory-based ones, significantly improving performance and reducing latency and energy consumption for thousand-core systems.
What Problem Does This Paper Address?
Modern chip multiprocessors (CMPs) are rapidly increasing their core counts, pushing towards hundreds and even thousands of cores. A critical challenge in designing these many-core systems is maintaining cache coherence – ensuring that all cores have a consistent view of shared data. Existing cache coherence protocols fall into two main categories: snooping and directory-based. Snoopy protocols, while offering direct cache-to-cache transfers, suffer from massive power overhead due to broadcasting every coherence request to all cores. Directory-based protocols, on the other hand, reduce broadcast traffic by maintaining a directory of sharers but introduce performance penalties due to indirection and significant storage overhead for the directory itself. For thousand-core systems, these limitations become severe, especially when combined with traditional network topologies like meshes, which can lead to very high communication latencies. This paper aims to bridge this gap by proposing a new protocol that can efficiently scale to large numbers of cores.
Methods
The core of this paper is the Composite Cache Coherence (C³) protocol, designed to overcome the scalability issues of existing protocols. It achieves this by integrating several key innovations:
- Optical Interconnects (OP-I): The protocol leverages emerging nanophotonic technologies for on-chip networks. OP-I offers high bandwidth density, low propagation delay, and natural support for multicast/broadcast, which are crucial for large-scale systems.
- Hierarchical Architecture and Cache Clustering: To manage the sheer scale, the system employs a hierarchical design. Cores are clustered, and their L1/L2 caches are shared within these clusters. This reduces the overall network size and traffic. A "concentrated router" (C-Router) connects these clusters to the global optical network.
- Composite Coherence Protocol (C³): This is the heart of the solution. It combines:
- Local Broadcast with Prediction: For read requests, the protocol first attempts a local broadcast within a cluster. A simple 1-bit predictor helps avoid unnecessary broadcasts when local sharing is unlikely. This mimics the directness of snooping protocols.
- Filtering for Global Broadcasts: For requests that miss local broadcast (e.g., writes or reads without local sharers), filters are employed in the OP-I routers. These filters intelligently capture information about sharers and owners, allowing them to direct requests more efficiently and reduce unnecessary global snooping. This borrows from the efficiency of directory protocols by avoiding full broadcasts.
- Coarse-Grained Directory: A compact, coarse-grained directory is used to track sharing information, significantly reducing the storage overhead compared to traditional full-vector directories.
- Ordered Network: To ensure correctness, the protocol implements an ordered network for global coherence messages, preventing race conditions.
Datasets
The paper uses workloads from the PARSEC benchmark suite [9] for evaluation. They also mention using PTLsim [44] to simulate parallel kernels with thousands of threads and collecting L2 cache transactions into trace files.
Key Insights and Ideas
- Optical Interconnects are Key Enablers: The paper strongly advocates for OP-I technology as a fundamental enabler for scalable coherence protocols, providing the necessary bandwidth and low latency that electrical interconnects struggle to match at large scales.
- Hybridization is the Path Forward: No single existing protocol is sufficient. The C³ protocol's success lies in its intelligent hybridization, selectively applying the strengths of snooping (directness) and directory (reduced probing) approaches based on the request type and local conditions.
- Filtering is More Effective than Pure Prediction: While prediction helps, the paper shows that intelligent filtering in routers is crucial for significantly reducing unnecessary global snooping and directing requests more accurately, especially for writes.
- Local Sharing is Prevalent: The analysis of PARSEC workloads reveals a substantial probability (around 50% on average, and much higher for some benchmarks) of finding requested data locally within a cluster, validating the effectiveness of local broadcast strategies.
- Storage Overhead is a Major Bottleneck for Directories: The paper highlights that the linear increase in storage for full-map directories is a primary reason they don't scale to thousands of cores, reinforcing the need for "coarse-grained" approaches.
Key Results
The C³ protocol demonstrated significant improvements over traditional snoopy, directory, ATAC, and DASH protocols on a simulated thousand-core CMP:
- Performance Improvement: Achieved a 21% performance improvement on average for PARSEC applications.
- Reduced Network Latency: Reduced network latency of coherence messages by 41% on average.
- Energy Savings: Saved network energy consumption by 5.5% on average.
- Reduced Snooping Traffic: Reduced snooping messages to only 5.8% of that in a traditional snoopy protocol.
- Filter Efficiency: The proposed filter was effective in locating owners for a majority of requests, with geometric mean success rates of 62.2% compared to 13.4% for owner prediction.
- Predictor Effectiveness: The 1-bit predictor removed over 60% of blind local broadcasts.
Limitations and Future Work
- Filter Configuration Trade-offs: The paper acknowledges that filter efficiency depends on capacity, set-associativity, and replacement policy. While they explored some configurations, further optimization might be possible.
- Optical Network Power Consumption: While OP-I offers advantages, the paper notes that micro-rings require consistent heating power, and the off-chip laser power can be substantial. Future work could explore more energy-efficient optical components or power management strategies.
- OS Scalability: The authors note that existing OS may not be scalable to thousand-core architectures, necessitating the use of user-level simulators and trace-driven evaluations. Developing scalable OS support would be a natural next step.
- Workload Dependence: While PARSEC is a good benchmark suite, the performance of C³ might vary with different types of workloads or applications not represented in the suite.
The paper concludes that the C³ protocol, with its hierarchical optical interconnect support, is a promising candidate for implementing cache coherence in large-scale CMPs.
Summary updated