Lecture 1: Introduction

Similar documents
Lecture 7: PCM Wrap-Up, Cache coherence. Topics: handling PCM errors and writes, cache coherence intro

Lecture 7: PCM, Cache coherence. Topics: handling PCM errors and writes, cache coherence intro

Lecture 1: Introduction

Lecture 3: Snooping Protocols. Topics: snooping-based cache coherence implementations

Lecture 25: Multiprocessors. Today s topics: Snooping-based cache coherence protocol Directory-based cache coherence protocol Synchronization

Lecture 25: Multiprocessors

Lecture 1: Parallel Architecture Intro

Lecture 18: Coherence Protocols. Topics: coherence protocols for symmetric and distributed shared-memory multiprocessors (Sections

Lecture 18: Coherence and Synchronization. Topics: directory-based coherence protocols, synchronization primitives (Sections

Lecture 10: Cache Coherence: Part I. Parallel Computer Architecture and Programming CMU , Spring 2013

Cache Coherence. (Architectural Supports for Efficient Shared Memory) Mainak Chaudhuri

Cache Coherence. Silvina Hanono Wachman Computer Science & Artificial Intelligence Lab M.I.T.

Lecture 10: Cache Coherence: Part I. Parallel Computer Architecture and Programming CMU /15-618, Spring 2015

Cache Coherence. Silvina Hanono Wachman Computer Science & Artificial Intelligence Lab M.I.T.

Cache Coherence. CMU : Parallel Computer Architecture and Programming (Spring 2012)

Memory Hierarchy in a Multiprocessor

Module 9: Addendum to Module 6: Shared Memory Multiprocessors Lecture 17: Multiprocessor Organizations and Cache Coherence. The Lecture Contains:

Multiprocessor Cache Coherence. Chapter 5. Memory System is Coherent If... From ILP to TLP. Enforcing Cache Coherence. Multiprocessor Types

Lecture-22 (Cache Coherence Protocols) CS422-Spring

Incoherent each cache copy behaves as an individual copy, instead of as the same memory location.

COEN-4730 Computer Architecture Lecture 08 Thread Level Parallelism and Coherence

Multiprocessors & Thread Level Parallelism

Introduction to Multiprocessors (Part II) Cristina Silvano Politecnico di Milano

Lecture 24: Board Notes: Cache Coherency

Computer Architecture

Lecture 11: Snooping Cache Coherence: Part II. CMU : Parallel Computer Architecture and Programming (Spring 2012)

Computer Architecture and Engineering CS152 Quiz #5 April 27th, 2016 Professor George Michelogiannakis Name: <ANSWER KEY>

Lecture 24: Virtual Memory, Multiprocessors

EN2910A: Advanced Computer Architecture Topic 05: Coherency of Memory Hierarchy Prof. Sherief Reda School of Engineering Brown University

Lecture 11: Cache Coherence: Part II. Parallel Computer Architecture and Programming CMU /15-618, Spring 2015

Foundations of Computer Systems

CS252 Spring 2017 Graduate Computer Architecture. Lecture 12: Cache Coherence

Module 9: "Introduction to Shared Memory Multiprocessors" Lecture 16: "Multiprocessor Organizations and Cache Coherence" Shared Memory Multiprocessors

Processor Architecture

EN2910A: Advanced Computer Architecture Topic 05: Coherency of Memory Hierarchy

Suggested Readings! What makes a memory system coherent?! Lecture 27" Cache Coherency! ! Readings! ! Program order!! Sequential writes!! Causality!

Chapter 5. Multiprocessors and Thread-Level Parallelism

Parallel Computer Architecture Lecture 5: Cache Coherence. Chris Craik (TA) Carnegie Mellon University

4 Chip Multiprocessors (I) Chip Multiprocessors (ACS MPhil) Robert Mullins

Lecture 2: Snooping and Directory Protocols. Topics: Snooping wrap-up and directory implementations

Chapter 5. Multiprocessors and Thread-Level Parallelism

Portland State University ECE 588/688. Cache Coherence Protocols

CMSC 411 Computer Systems Architecture Lecture 21 Multiprocessors 3

EC 513 Computer Architecture

The Cache Write Problem

Overview: Shared Memory Hardware. Shared Address Space Systems. Shared Address Space and Shared Memory Computers. Shared Memory Hardware

Overview: Shared Memory Hardware

Cache Coherence in Scalable Machines

A Basic Snooping-Based Multi-Processor Implementation

Cache Coherence. Bryan Mills, PhD. Slides provided by Rami Melhem

Scalable Cache Coherence

Shared Memory SMP and Cache Coherence (cont) Adapted from UCB CS252 S01, Copyright 2001 USB

Lecture 7: Implementing Cache Coherence. Topics: implementation details

Lecture 5: Directory Protocols. Topics: directory-based cache coherence implementations

Scalable Multiprocessors

Page 1. SMP Review. Multiprocessors. Bus Based Coherence. Bus Based Coherence. Characteristics. Cache coherence. Cache coherence

EC 513 Computer Architecture

Snooping-Based Cache Coherence

Computer Architecture Memory hierarchies and caches

Lecture 8: Snooping and Directory Protocols. Topics: split-transaction implementation details, directory implementations (memory- and cache-based)

ECE 485/585 Microprocessor System Design

CMSC Computer Architecture Lecture 15: Memory Consistency and Synchronization. Prof. Yanjing Li University of Chicago

ESE 545 Computer Architecture Symmetric Multiprocessors and Snoopy Cache Coherence Protocols CA SMP and cache coherence

Module 10: "Design of Shared Memory Multiprocessors" Lecture 20: "Performance of Coherence Protocols" MOESI protocol.

Module 5: Performance Issues in Shared Memory and Introduction to Coherence Lecture 10: Introduction to Coherence. The Lecture Contains:

Shared Symmetric Memory Systems

CS433 Homework 6. Problem 1 [15 points] Assigned on 11/28/2017 Due in class on 12/12/2017

Computer Systems Architecture

CMSC 611: Advanced. Distributed & Shared Memory

1. Memory technology & Hierarchy

A Scalable SAS Machine

ECE/CS 757: Homework 1

Multiprocessor Cache Coherency. What is Cache Coherence?

A Basic Snooping-Based Multi-Processor Implementation

CS/ECE 757: Advanced Computer Architecture II (Parallel Computer Architecture) Symmetric Multiprocessors Part 1 (Chapter 5)

CS433 Homework 6. Problem 1 [15 points] Assigned on 11/28/2017 Due in class on 12/12/2017

Lecture 3: Directory Protocol Implementations. Topics: coherence vs. msg-passing, corner cases in directory protocols

COMP Parallel Computing. CC-NUMA (1) CC-NUMA implementation

CS 152 Computer Architecture and Engineering. Lecture 19: Directory-Based Cache Protocols

Advanced OpenMP. Lecture 3: Cache Coherency

Special Topics. Module 14: "Directory-based Cache Coherence" Lecture 33: "SCI Protocol" Directory-based Cache Coherence: Sequent NUMA-Q.

A More Sophisticated Snooping-Based Multi-Processor

CS 433 Homework 5. Assigned on 11/7/2017 Due in class on 11/30/2017

Lecture 30: Multiprocessors Flynn Categories, Large vs. Small Scale, Cache Coherency Professor Randy H. Katz Computer Science 252 Spring 1996

12 Cache-Organization 1

Limitations of parallel processing

Performance study example ( 5.3) Performance study example

Lecture 12: Large Cache Design. Topics: Shared vs. private, centralized vs. decentralized, UCA vs. NUCA, recent papers

Multicore Workshop. Cache Coherency. Mark Bull David Henty. EPCC, University of Edinburgh

Cache Coherence. Introduction to High Performance Computing Systems (CS1645) Esteban Meneses. Spring, 2014

Midterm Exam 02/09/2009

CS 152 Computer Architecture and Engineering. Lecture 19: Directory-Based Cache Protocols

Scalable Cache Coherent Systems Scalable distributed shared memory machines Assumptions:

Lecture 11: Large Cache Design

ECSE 425 Lecture 30: Directory Coherence

Lecture 26: Multiprocessors. Today s topics: Directory-based coherence Synchronization Consistency Shared memory vs message-passing

Lecture 4: Directory Protocols and TM. Topics: corner cases in directory protocols, lazy TM

Scalable Cache Coherent Systems

CMSC 611: Advanced Computer Architecture

Computer Architecture

Transcription:

Lecture 1: Introduction ourse organization: 4 lectures on cache coherence and consistency 2 lectures on transactional memory 2 lectures on interconnection networks 4 lectures on caches 4 lectures on memory systems 4 lectures on core design 2 lectures on parallel algorithms 5 lectures: student paper presentations 2 lectures: student project presentations S 7960-002 for those that want to sign up for 1 credit 1

Logistics Texts: arallel omputer Architecture, uller, Singh, Gupta (a more recent reference is Fundamentals of arallel omputer Architecture, Yan Solihin) rinciples and ractices of Interconnection Networks, Dally & Towles Introduction to arallel Algorithms and Architectures, Leighton Transactional Memory, Larus & Rajwar Memory Systems: ache, DRAM, Disk, Jacob et al. Multi-ore ache Hierarchies, Balasubramonian et al. 2

More Logistics rojects: simulation-based, creative, teams of up to 4 students, be prepared to spend time towards middle and end of semester more details on simulators in a few weeks Final project report due in late April (will undergo conference-style peer reviewing); also watch out for workshop deadlines for ISA Grading: 70% project 10% paper presentation 20% take-home final 3

4 Multi-ore ache Organizations rivate L1 caches Shared L2 cache Bus between L1s and single L2 cache controller Snooping-based coherence between L1s

Multi-ore ache Organizations rivate L1 caches Shared L2 cache, but physically distributed Scalable network Directory-based coherence between L1s 5

Multi-ore ache Organizations rivate L1 caches Shared L2 cache, but physically distributed Bus connecting the four L1s and four L2 banks Snooping-based coherence between L1s 6

Multi-ore ache Organizations D rivate L1 caches rivate L2 caches Scalable network Directory-based coherence between L2s (through a separate directory) 7

Shared-Memory Vs. Message assing Shared-memory single copy of (shared) data in memory threads communicate by reading/writing to a shared location Message-passing each thread has a copy of data in its own private memory that other threads cannot access threads communicate by passing values with SEND/ REEIVE message pairs 8

ache oherence A multiprocessor system is cache coherent if a value written by a processor is eventually visible to reads by other processors write propagation two writes to the same location by two processors are seen in the same order by all processors write serialization 9

ache oherence rotocols Directory-based: A single location (directory) keeps track of the sharing status of a block of memory Snooping: Every cache block is accompanied by the sharing status of that block all cache controllers monitor the shared bus so they can update the sharing status of the block, if necessary Write-invalidate: a processor gains exclusive access of a block before writing by invalidating all other copies Write-update: when a processor writes, it updates other shared copies of that block 10

rotocol-i MSI 3-state write-back invalidation bus-based snooping protocol Each block can be in one of three states invalid, shared, modified (exclusive) A processor must acquire the block in exclusive state in order to write to it this is done by placing an exclusive read request on the bus every other cached copy is invalidated When some other processor tries to read an exclusive block, the block is demoted to shared 11

Design Issues, Optimizations When does memory get updated? demotion from modified to shared? move from modified in one cache to modified in another? Who responds with data? memory or a cache that has the block in exclusive state does it help if sharers respond? We can assume that bus, memory, and cache state transactions are atomic if not, we will need more states A transition from shared to modified only requires an upgrade request and no transfer of data 12

Reporting Snoop Results In a multiprocessor, memory has to wait for the snoop result before it chooses to respond need 3 wired-or signals: (i) indicates that a cache has a copy, (ii) indicates that a cache has a modified copy, (iii) indicates that the snoop has not completed Ensuring timely snoops: the time to respond could be fixed or variable (with the third wired-or signal) Tags are usually duplicated if they are frequently accessed by the processor (regular ld/sts) and the bus (snoops) 13

4 and 5 State rotocols Multiprocessors execute many single-threaded programs A read followed by a write will generate bus transactions to acquire the block in exclusive state even though there are no sharers (leads to MESI protocol) Also, to promote cache-to-cache sharing, a cache must be designated as the responder (leads to MOESI protocol) Note that we can optimize protocols by adding more states increases design/verification complexity 14

MESI rotocol The new state is exclusive-clean the cache can service read requests and no other cache has the same block When the processor attempts a write, the block is upgraded to exclusive-modified without generating a bus transaction When a processor makes a read request, it must detect if it has the only cached copy the interconnect must include an additional signal that is asserted by each cache if it has a valid copy of the block When a block is evicted, a block may be exclusive-clean, but will not realize it 15

MOESI rotocol The first reader or the last writer are usually designated as the owner of a block The owner is responsible for responding to requests from other caches There is no need to update memory when a block transitions from M S state The block in O state is responsible for writing back a dirty block when it is evicted 16

Title Bullet 17