Docsity

Piranha and Hydra: Two Sophisticated Chip Multiprocessor Designs - Prof. John M. Mellor-Cr, Study notes of Computer Science

Partial preview of the text

Download Piranha and Hydra: Two Sophisticated Chip Multiprocessor Designs - Prof. John M. Mellor-Cr and more Study notes Computer Science in PDF only on Docsity!

John Mellor-Crummey

Department of Computer Science Rice University [email protected]

Piranha and Hydra:

Two Sophisticated

Chip Multiprocessor Designs

COMP 522 Lecture 4 4 September 2008

Context

  • Last week — Tullsen, et al. advocated simultaneous multithreading (1995) — Olukotun et al. advocated a simple chip multiprocessor (1996)
  • Fast forward to 2000 — today’s papers: two sophisticated chip multiprocessor designs

Outline

  • Piranha — objectives — chip design and features — performance
  • Hydra — objectives — chip design and features — performance
  • Discussion

Piranha: A Scalable Architecture Based on Single-Chip Multiprocessing

Piranha System Architecture

  • CMP — hierarchically partitioned and replicated design - short wires leads to fast cycle time
  • Processor — 8 single-issue in-order Alpha core — private L1 instruction and data caches (1MB L1 data) — shared non-inclusive L2 cache w/8 banks - each bank 8-way set associative — 8 memory controllers - 12.8 GB/s aggregate memory bandwidth — 2 coherence protocol engines (home and remote) — network router: interconnect b/w 32GB/s
  • I/O Node
  • Modular scalability (glueless)

Piranha Novel Ideas

  • CMP cache coherence protocol that does not enforce

inclusion in L1 instruction and data caches

— performance improves when lower level caches are isolated from the effects of coherence checks and invalidations required with inclusive designs

  • Coherence protocol that has fewer protocol messages and

lower protocol engine occupancy

  • I/O nodes fully integrated into system architecture — participates in global shared-memory coherence

Piranha Memory Hierarchy

  • L1 Caches: — per core separate data and instruction caches — aggregate capacity: 1MB
  • L2 Cache: — logically shared 1MB cache — 8 physical banks interleaved using lower address bits — each bank is 8-way associative — round-robin (least-recently-loaded) replacement
  • Non-inclusive cache hierarchy — L2 acts like a victim cache - data in L1 is NOT automatically present in L2 as well avoid wasting cache capacity on duplicate data - write data into into L2 when replacing lines in L L2 decides when writebacks should occur

Piranha’s Support for Cache Coherency

  • L2 controllers keep duplicate copy of L1 tags and state
  • L1/L2 state includes ownership — L2, L1 in exclusive state, or one of L1s when multiple sharers
  • L2 controllers enforce on-chip coherence, invalidations
  • L2 can respond to L1 memory request by — supplying the requested data from L — forwarding the request to an on-chip owner L — forwarding the request to a protocol engine — obtaining local data from memory through a private memory controller
  • One controller and associated RDRAM channel per L2 bank

Piranha Access to Off-chip Memory

  • Protocol engines support access to remote memory — home engine for exporting local memory — remote engine for importing remote memory
  • Directory information maintained at node-level
  • Hot-potato routing — reduce buffering requirements
  • Invalidation-based directory protocol
  • Cruise-missile-invalidates bound the number of invalidation

messages per request

— properties

  • each request visits predetermined set of nodes
  • single acknowledgement to initiator — benefits: avoid serial injection of multiple invalidates by initiator

Piranha Interconnection Network

  • Intra-Chip Switch — 27 ports, each with 2 datapaths (send, recv) — 8 internal data paths (32 GB/s capacity) — 2 logical lanes: low & high priority
  • System Interconnect — input queue — output queue — router: - supports 2 packet types: short 128-bits, header only data-less transaction long header + 64-byte data section

The Stanford Hydra CMP

Hydra Design Objectives

  • Make CMP viable for serial applications — use thread-level speculation
  • Minimize complexity of high-speed logic
  • Minimize latency of interprocessor communication on chip

Thread-level Speculation (TLS)

  • Advantages: — simplifies parallelization: no need for synchronization points — doesn’t need to be as conservative
  • Disadvantages: — must undo errors (degrades performance) — requires hardware support (and overhead)

Hydra Design Overview

  • Cores: four, MIPS-based
  • Cache organization — private 16 KB D and I L1 caches — write-through L — shared 2 MB L2 cache — inclusive cache hierarchy
  • Read and write buses