Docsity

Multiprocessor Cache Design: Scaling Performance in Multi-Chip Systems - Prof. John M. Mel, Study notes of Computer Science

Partial preview of the text

Download Multiprocessor Cache Design: Scaling Performance in Multi-Chip Systems - Prof. John M. Mel and more Study notes Computer Science in PDF only on Docsity!

John Mellor-Crummey

Department of Computer Science Rice University [email protected]

Mid 90’s Multiprocessor Cache

Design Studies

COMP 522 Lecture 3 2 September 2008

Today’s Papers

  • Exploring the Design Space for a Shared-Cache

Multiprocessor, Basem Nayfeh and Kunle Olukotun, ISCA

  • Evaluation of Design Alternatives for a Multiprocessor

Microprocessor, Basem Nayfeh, Lance Hammond, and Kunle

Olukotun, ISCA 1996

Multi-chip Multiprocessor Study

  • Multi-chip multiprocessors —why multi-chip designs? can scale to higher performance
  • Organize multi-chip designs on Multi-Chip Modules (MCM)
  • Explore performance trade-offs between cache organization

and number of PEs

  • Study interaction between —number of processors in system (small to medium size) —cache size —application programs

Multiprocessor Design Space - I

  • Context: multiprocessor system with a single shared bus —keep processor caches coherent using snooping - invalidation-based protocol
  • Two cluster design alternatives 1.separate cache per processor - advantage: cache bandwidth scales with # PEs large caches reduce communication traffic - disadvantage: bus becomes a performance bottleneck with more PEs coherence misses, invalidation traffic 2.have processors communicate using multi-ported cluster cache - expanding chip capabilities and MCMs make this possible - advantage: single copy in shared cache rather than 1 per PE uses cache more efficiently, avoids coherence overhead - disadvantages: shared cache could become a bottleneck conflicts in shared cache can elevate miss rates

Study Two Flavors Workloads

  • Single parallel application workload —using multiprocessor to reduce execution time
  • Multiprogramming workload —using multiprocessor to enhance server throughput

Parallel Application Workloads

  • SPLASH benchmarks —Barnes-Hut: hierarchical n-body simulation of galactic evolution —MP3D: particle-based simulation of hypersonic flow —Cholesky: Cholesky factorization of a sparse matrix —parallelization: C + ANL macros for process creation, data sharing, synchronization
  • Simulation methodology —Tango-Lite simulates access interleaving for multiple PEs - multiplexes lightweight threads during simulation —4 SCC clusters —consider contention in each SCC at the bank level —SCC coherence: invalidation protocol on a snoopy bus —16-byte cache line (limits false sharing) —100-cycle latency to either remote cache or main memory

More Processors and/or Larger Cache

  • Good scaling:^ superlinear speed up for medium to large SCC
  • Why? Increased locality of reference within a cluster Barnes-Hut parallel workload
  • N-body simulation based on hierarchical oct-tree
  • Processors in a cluster work on bodies adjacent in the tree —when modest PE count per cluster - data reuse of same bodies - prefetching when traversing same boxes —when too many PEs - destructive interference - Miss rate decreases with modest sharing due to data reuse and prefetch effect - From 4-PE/cache to 8-PE/ cache, miss rate increases (destructive interference) More Processors and/or Larger Cache Barnes-Hut parallel workload
  • Some prefetching, but not as much as for Barnes-Hut
  • 8-proc/cluster speed up: —small 4KB SCC: 3. —large 512KB SCC: 3.
  • Reason —limited concurrency —bad load balance —high synchronization overhead More Processors and/or Larger Cache Cholesky parallel workload
  • Context switches increase cache miss rate
  • Sharing in clusters exacerbates miss rate for a processor —multiple processes access SCC simultaneously —multiprogramming increases conflicts More Processors and/or Larger Cache Multiprogramming workload

Implementation Cost Estimates

Implementation Assumptions

  • L1 cache size and number of PE on chip —affect load latency, processor cycle time, and total chip area
  • Evaluate the effect of cluster size —semiconductor process and processor area - CMOS with 0.4 micron gate lengths - 3 layers interconnect total die area is 300 mm 2 , side 18 mm (1996) - estimate chip area with DEC Alpha 21064 (0.68 micron) —pipeline - IF, Decode,EX,MEM,WB - load has two cycles latency —cycle time - in terms of gate delay - FO4 (delay of an inverter with a fanout of four)

Cluster Implementation and Cost

  • Chip area 204 mm 2
  • 64-bit integer unit
  • 64-bit FP unit
  • 16 KB instruction cache
  • Single-ported 64KB data

cache

—8x8KB SRAM (6.6 mm 2 ) —largest direct-mapped cache can be accessed in 30 FO One Processor per Cluster

  • Combine two 2-PE chips —larger ICN,larger I/O pins —total chip area 297 mm^2 —46% larger than 1-PE chip
  • MCM packaging
  • Access cache on other chip exceeds the 30 FO4 of the processor cycle —one more stage between MEM and WB —4 cycle load latency Cluster Implementation and Cost Four Processors per Cluster
  • Connect each of 8 banks to 9 ports (2 P-C ICN provide the ports) —chip area 306 mm^2 —50% larger than 1-PE chip
  • I/O with 6 off-chip processors —1100 signal I/O pads, —IBM C4 (pads in an array on a separate layer of metal on top of active circuity Cluster Implementation and Cost Eight Processors per Cluster