Multiprocessor Architecture Basics
Multiprocessor Architecture
Pieces
Old-School Multiprocessor
Old School
Multicore Architecture
Multicore
SMP vs NUMA
Future Multicores
Understanding the Pieces
Processors
Computer Architecture
Threads
Analogy
Interconnect
Interconnect
Processor and Memory are Far Apart
Reading from Memory
Reading from Memory
Reading from Memory
Writing to Memory
Writing to Memory
Writing to Memory
Cache: Reading from Memory
Cache: Reading from Memory
Cache: Reading from Memory
Cache Hit
Cache Hit
Cache Miss
Cache Miss
Cache Miss
Local Spinning
Granularity
Locality
Hit Ratio
L1 and L2 Caches
L1 and L2 Caches
L1 and L2 Caches
When a Cache Becomes Full…
Fully Associative Cache
Direct Mapped Cache
K-way Set Associative Cache
Multicore Set Associativity
Cache Coherence
MESI
MESI
MESI
MESI
Processor Issues Load Request
Memory Responds
Processor Issues Load Request
Other Processor Responds
Modify Cached Data
Write-Through Cache
Write-Through Caches
Write-Through Caches
Write-Back Caches
Invalidate
Recall: Real Memory is Relaxed
Not Necessarily So
Write Buffers
Volatile