Download Interconnect-Aware Coherence Protocols for Chip Multiprocessors: Techniques and more Slides Computer Architecture and Organization in PDF only on Docsity!
Interconnect-Aware Coherence Protocols for
Chip Multiprocessors
Outline
- Introduction
- Architecture of Basic On-Chip Multiprocessors
- Cache Coherence
- Wiring Issues at Interconnection
- Wire Implementations
- Optimizing Coherence Traffic and Wire Implementations
- Protocol Dependent Techniques
- Directory-Based Protocol
- Bus-Based Protocol
- Protocol Independent Techniques
- Implementation Complexity
- Overhead in Heterogeneous Interconnect Implementation
- Overhead in Decision Process
- Overhead in Cache Coherence Protocols
- Simulation Results
- Interconnect Power/Delay/Area Models
- Results
- Sensitivity Analysis
- Conclusion
Introduction
- On-chip communication : great bottleneck to performance
- The high cost of on-chip communication
- Power consumption
- wires contribute up to 50% of total chip power in some processors
- Communication emerging as a larger power and performance constraint
than computation
- Techniques map coherence traffic to different wire implementations
- Such an approach can not only improve performance, but also reduce
power dissipation.
Architecture of Basic On-Chip Multiprocessors
- In a typical CMP, the L2 cache and
lower levels of the memory
hierarchy are shared by multiple
cores.
- Shared L2 cache
- high cache utilization
- no duplicating cache hardware resources.
- Local L1 caches
- entails high communication latencies.
Wiring Issues at Interconnection
- By tuning wire width and spacing
- By tuning repeater size and spacing
- Heterogeneous Interconnect
- every link consists of wires that are optimized for either latency, energy, or bandwidth
- can be employed to take advantage of VLSI techniques and better match the interconnect design to communication requirements
- optimizations can be enabled when such a heterogeneous interconnect is employed for coherence traffic.
Wire Implementations
- the delay of a wire is a function of its RC time constant
- These wire properties provide an opportunity to design wires that trade
off bandwidth and latency.
- By allocating more metal area per wire and increasing wire width and
spacing, the net effect is a reduction in the RC time constant.
- This leads to a wire design that has favorable latency properties, but poor
bandwidth properties (as fewer wires can be accommodated in a fixed
metal area).
Wire Implementations
- By varying properties such as wire width/spacing and repeater size/spacing, we can
implement wires with different properties
- latency,
- bandwidth,
- power.
- In the research three types of wires are considered
- global inter-core wires are routed on the 8X and 4X metal planes. We will refer to these minimum width wires as baseline B-Wires (either 8X-B-Wires or 4X-B-Wires).
- A low-latency L-Wire can be designed by increasing the width and spacing of the wire on the 8X plane (by a factor of four).
- A power efficient PW-Wire is designed by decreasing the number and size of repeaters within minimum-width wires on the 4X plane.
- A heterogeneous interconnect is composed of B-Wires, L-Wires, and PW-Wires.
- Thus, any data transfer has the option of using one of three sets of wires to effect the
communication.
- improve performance
- reduce power consumption.
Optimizing Coherence Traffic and Wire
Implementations
protocol, there exist a variety of coherence operations with
different bandwidth and latency needs.
- Because of this diversity, there are
many opportunities to improve
performance and power characteristics by employing a
heterogeneous interconnect.
- The goal of next slights are to
present a comprehensive listing of such opportunities.
Proposals
Protocol Dependent
Protocol Independent Techniques
Directory-Based Bus-Based
Proposals I - IV Proposals V, VI
Proposals VII - IX
Directory-Based Protocol
• Write-invalidate directory-based protocols have been
implemented in existing dual-core CMPs and will likely be
used in larger scale CMPs as well.
• Hop imbalance is quite common in a directory-based protocol.
To exploit this imbalance, we can send critical messages on
fast wires to increase performance and send non-critical
messages on slow wires to save power.
Proposal I: Read exclusive request for
block in shared state
- The L2 cache’s copy is clean,
- L2 provides the data to the requesting L1 and
- L2 invalidates all shared copies.
- When the requesting L1 receives the reply message from the L2, it collects invalidation acknowledgment messages from the other L1s before returning the data to the processor core1.
- Acknowledgment messages include identifiers so they can be matched against the outstanding request in the L1’s MSHR. The identifier requires few bits, allowing the acknowledgment to be transferred on a few low-latency L-Wires.
- Simultaneously, the data block transmission from the L2 can happen on low power PW-Wires and still finish before the arrival of the acknowledgments.
Proposal III: NACK messages
When the directory state is busy, incoming requests are often NACKed by the
home directory, i.e., a negative acknowledgment is sent to the requester
rather than buffering the request.
- A NACK message can be matched by comparing the request id (MSHR
index), so a NACK is eligible for transfer on low-bandwidth L-Wires. This
mapping can improve performance.
- In the cases, which fast NACKs only increase traffic levels without
providing any performance benefit, in order to save power, NACKs can be
sent on PW-Wires.
Proposal IV: Unblock and write control messages
- Some protocols employ unblock and write control messages to reduce implementation complexity.
- For every read transaction,
- a processor first sends a request message that changes the L2 cache state into a transient state.
- After receiving the data reply, it sends an unblock message to change the L2 cache state back to a stable state.
- Similarly, write control messages are used to implement a 3- phase writeback transaction.
- A processor first sends a control message to the directory to order the writeback message with other request messages.
- After receiving the writeback response from the directory, the processor sends the data.
- Sending unblock messages on L-Wires can improve performance by reducing the time cache lines are in busy states. Write control messages (writeback request and writeback grant) are not on the critical path, although they are also eligible for transfer on L-Wires.
- The choice of sending writeback control messages on L-Wires or PW-Wires represents a power- performance trade-off.
Proposal V: Signal wires
• Since all of the control signals are on the
critical path and they don't need a wide
bandwidth, implementing them using low-
latency L-Wires can improve performance.
Proposal VI: Voting wires
• Another design choice is whether to use cache-to-cache
transfers if the data is in the shared state in a cache.
- The Silicon Graphics Challenge and the Sun Enterprise use cache-to-
cache transfers only for data in the modified state, in which case there
is a single supplier.
• When multiple caches share a copy, a “voting" mechanism is
required to decide which cache will supply the data, and this
voting mechanism can benefit from the use of low latency
wires