A Cache Coherence Protocol to Implement Sequential Consistency. Memory Consistency in SMPs
|
|
- Jade Randall
- 5 years ago
- Views:
Transcription
1 6.823, L20--1 A Cache Coherence rotocol to Ipleent Sequential Consistency Laboratory for Coputer Science M.I.T. Meory Consistency in SMs CU-1 CU , L20--2 A 100 cache-1 A 100 cache-2 CU-Meory bus A 100 eory Suppose CU-1 updates A to 200. write-back policy: eory and cache-2 have stale values write-through policy: cache-2 has a stale value Do these stale values atter? What is the view of shared eory for prograing? Sequential Consistency, Relaxed eory odels age 1
2 Caches & Sequential Consistency prog T1 ST X, 1 ST Y,11 prog T2 LD Y, R1 ST Y, R1 LD X, R2 ST X,R2 cache-1 X= 1 Y=11 cache-2 Y = Y = X = X = eory X = 0 Y =10 X = Y = Scenario 1 T1 is executed T2 is executed cache-1 writes back X & Y cache-2 writes back X & Y assue a write-back cache prog T1 ST X, 1 ST Y,11 prog T2 LD Y, R1 ST Y, R1 LD X, R2 ST X,R2 cache-1 X= 1 Y=11 cache-2 Y = Y = X = X = Scenario 2 T1 is executed eory X = 0 Y =10 X = Y = 6.823, L20--3 cache-1 writes back Y T2 reads Y T2 writes Y T2 reads X T2 writes X cache-1 writes back X cache-2 writes back X & Y Write-through Caches & Sequential Consistency 6.823, L20--4 prog T1 ST X, 1 ST Y,11 prog T2 LD Y, R1 ST Y, R1 LD X, R2 ST X,R2 cache-1 X= 0 Y=10 cache-2 Y = Y = X = 0 X = eory X = 0 Y =10 X = Y = Write-through caches don t preserve sequential consistency either; consider scenario: T1 is executed T2 is executed age 2
3 6.823, L20--5 Maintaining Sequential Consistency Multiple copies of a location in various caches can cause SC to breakdown. Hardware support is required such that only one processor at a tie has write perission for a location no processor can load a stale copy of the location after a write cache coherence protocols A Syste with Multiple Caches 6.823, L20--6 L2 L2 Interconnect Modern systes often have hierarchical caches Each cache has exactly one parent but can have zero or ore children Only a parent and its children can counicate directly Inclusion property is aintained between a parent and its children, i.e., a L i a L i+1 age 3
4 Cache Coherence rotocols for SC 6.823, L20--7 write request: the address is invalidated or updated in all other caches before the write is perfored read request: if a dirty copy is found in soe cache, a write-back is perfored before the eory is read We will focus on Invalidation protocols State Encoding 6.823, L20--8 (Sh, R(ε)) (Sh, R(ε)) a 1.1 a 1.2 a 1.3 (Sh, R(1.3.1)) Interconnect 1 a (Ex, R( )) Each address in a cache keeps two types of state info sibling info: does any of y siblings have a copy -ExvsSh children info: has this address been passed on to any of y children - W(id) vs R(dir) where dir = id 1... id n directory of children R(ε) eans uncached age 4
5 Cache State Iplications 6.823, L20--9 Sh cache s siblings and decedents can only have Sh copies Ex each ancestor of the cache ust be in Ex either all children can have Sh copies or one child can have an Ex copy Once a parent gives an Ex copy to a child, the parent s data is considered stale A processor cannot overwrite data in Sh state in Initial State 6.823, L L2 L2 Interconnect All M s (caches) except the outerost M (hoe) are epty (ε) Initialize each cell of the outerost eory to be Cell(a,-,(Ex,R(ε))) age 5
6 Load & Store rules 6.823, L pb pb id Load rule <id, Cell(a,v,(cs,R(ε))) >, <t,load(a)>;pb, pb <id, Cell(a,v,(cs,R(ε))) >, pb, pb <t,v> Store rule <id, Cell(a,-,(Ex,R(ε))) >, <t,store(a,v)>;pb, pb <id, Cell(a,v,(Ex,R(ε))) >, pb, pb <t,ack> 6.823, L Data ropagation Between Caches Child k Child k arent arent Caching rules R-caching rule W-caching rule De-caching rules Write-back rule Invalidate rule age 6
7 Caching Rules: arent to Child 6.823, L id k k id R-caching rule <id, Cell(a,v,(cs,R(dir))) >, <id k, k > if id k dir <id, Cell(a,v,(cs,R(id k dir))) >, <id k, Cell(a,v,(Sh,R(ε))) k > W-caching rule <id, Cell(a,v,(Ex,R(ε))) >, <id k, k > <id, Cell(a,v,(Ex,W(id k ))) >, <id k, Cell(a,v,(Ex,R(ε))) k > De-caching Rules: Child to arent 6.823, L id k k id Writeback rule < id, Cell(a,-,(Ex,W(id k ))) >, <id k, Cell(a,v,(Ex,R(dir))) k > < id, Cell(a,v,(Ex,R(id k ))) >, <id k, Cell(a,v,(Sh,R(dir))) k > Invalidate rule < id, Cell(a,v,(cs,R(id k dir))) >, <id k, Cell(a,v,(Sh,R(ε))) k > < id, Cell(a,v,(cs,R(dir))) >, <id k, k > age 7
8 Local Rules 6.823, L id k k id Soe rules require observing and changing the state of two caches siultaneously (atoically), e.g., Writeback rule < id, Cell(a,-,(Ex,W(id k ))) >, <id k, Cell(a,v,(Ex,R(dir))) k > < id, Cell(a,v,(Ex,R(id k ))) >, <id k, Cell(a,v,(Sh,R(dir))) k > Usually not possible, especially if the caches are separated by a network DSM and Messages 6.823, L id k out interconnect id j in id rovide each M with in and out queue: < id,, in, out > FIFO essages passing between each (src,dest) pair Introduce request and reply essages: Msg(id src,id dest,cd,h/l,a,v) Low priority (L) sg cannot block high priority (H) sg age 8
9 Making the Rules Local 6.823, L Each rule is replaced by two rules: one for the sender and one for the receiver For exaple, the Writeback rule splits into Child s action < id k, Cell(a,v,(Ex,R(dir))) k, in k, out k > <id k, Cell(a,v,(Sh,R(dir))) k, in k, out k ;sg(id k,id,wbrep,h,a,v) > where id = parent(id k ) arent s action < id, Cell(a,-,(Ex,W(id k ))), sg(id k,id,wbrep,h,a,v);in, out > < id, Cell(a,v,(Ex,R(id k ))), in, out > Cache State Transitions 6.823, L Inv InvRep FlushRep ExRep ShRep Sh UpgradeRep Ex optiizations WbRep What causes a state transition? or When should a rule be applied? age 9
10 When to Apply a Rule 6.823, L id k id L2 < a, v, (Sh,R(dir)) > Consider the following rules: Load rule <id, Cell(a,v, (cs,r(ε))), in, out>, <t,load(a)>;pb, pb <id, Cell(a,v, (cs,r(ε))), in, out>, pb, pb <t,v> R-caching rule for Sender (arent) <id, Cell(a,v,(cs,R(dir))), in, out > if id k dir <id, Cell(a,v,(cs,R(id k dir))), in, out;sg(id,id k,shrep,h,a,v) > Suppose a is not in but is present in L2 in the Sh state. What should be done when executes Load(a)? Issuing Requests 6.823, L id k id L2 < a, v, (Sh,R(dir)) > If a is not in, send a request (ShReq) to L2, and set the cache state to be transient (Cacheending) <id,, in, out>, <t,load(a)>;pb, pb if a c <id, Cell(a,-,Cacheending), in, out;sg(id,parent(id),shreq,l,a)>, <t,load(a)>;pb, pb The load instruction reains suspended age 10
11 6.823, L rotocol X2: A rotocol for a syste with two eory levels ( + M) Xiaowei Shen Siplified states: Cache state: Meory state: Sh and Ex R[dir] and W[id] Load Rules 6.823, L Load-hit rule <id, Cell(a,v,Sh) c, in, out>, <t,load(a)>;pb, pb <id, Cell(a,v,Sh) c, in, out>, pb, pb <t,v> <id, Cell(a,v,Ex) c, in, out>, <t,load(a)>;pb, pb <id, Cell(a,v,Ex) c, in, out>, pb, pb <t,v> Load-iss rule <id, c, in, out>, <t,load(a)>;pb, pb if a c <id, Cell(a,-,Cacheending) c, in, out;sg(id,hoe,shreq,l,a)>, <t,load(a)>;pb, pb age 11
12 Store-hit rule Store Rules 6.823, L <id, Cell(a,-,Ex) c, in, out>, <t,store(a,v)>;pb, pb <id, Cell(a,v,Ex) c, in, out>, pb, pb <t,ack> Store-iss rule <id, c, in, out>, <t,store(a,v)>;pb, pb if a c <id, Cell(a,-,Cacheending) c, in, out;sg(id,hoe,exreq,l,a)>, <t,store(a,v)>;pb, pb <id, Cell(a,-,Sh) c, in, out>, <t,store(a,v)>;pb, pb <id, Cell(a,-,Cacheending) c, in, out;sg(id,hoe,exreq,l,a)>, <t,store(a,v)>;pb, pb 6.823, L rocessing ShReq Messages (at Hoe) Uncached or Outstanding Shared Copies <Cell(a,v,R(dir)), sg(id,hoe,shreq,l,a);in, out> if id dir <Cell(a,v,R(id dir)), in, out;sg(hoe,id,shrep,h,a,v)> Outstanding Exclusive Copy <Cell(a,v,W(id )), sg(id,hoe,shreq,l,a);in, out> if id id <Cell(a,v,T W (id )), sg(id,hoe,shreq,l,a);in, out;sg(hoe,id,wbreq,h,a)> age 12
13 6.823, L rocessing ExReq Messages (at Hoe) Uncached <Cell(a,v,R(ε)), sg(id,hoe,exreq,l,a);in, out> <Cell(a,v,W(id)), in, out;sg(hoe,id,exrep,h,a,v)> Outstanding Shared Copies <Cell(a,v,R(dir)), sg(id,hoe,exreq,l,a);in, out> if dir ε <Cell(a,v,T R (dir)), sg(id,hoe,exreq,l,a);in, out;ulticast(hoe,dir-{id},invreq,h,a)> Outstanding Exclusive Copy <Cell(a,v,W(id )), sg(id,hoe,exreq,l,a);in, out> if id id <Cell(a,v,T W (id )), sg(id,hoe,exreq,l,a);in, out;sg(hoe,id,flushreq,h,a)> 6.823, L rocessing Reply Messages (at cache) ShRep <id, Cell(a,-,Cacheending) c, sg(hoe,id,shrep,h,a,v);in, out> <id, Cell(a,v,Sh) c, in, out> ExRep <id, Cell(a,-,Cacheending) c, sg(hoe,id,exrep,h,a,v);in, out> <id, Cell(a,v,Ex) c, in, out> age 13
14 6.823, L rocessing Request Messages (at cache) WbReq <id, Cell(a,v,Ex) c, sg(hoe,id,wbreq,h,a);in, out> <id, Cell(a,v,Sh) c, in, out;sg(id,hoe,wbrep,h,a,v)> FlushReq <id, Cell(a,v,Ex) c, sg(hoe,id,flushreq,h,a);in, out> <id, c, in, out;sg(id,hoe,flushrep,h,a,v)> InvReq <id, Cell(a,v,Sh) c, sg(hoe,id,invreq,h,a);in, out> <id, c, in, out;sg(id,hoe,invrep,h,a)> <id, Cell(a,v,Cacheending) c, sg(hoe,id,invreq,h,a);in, out> <id, Cell(a,v,Cacheending) c, in, out;sg(id,hoe,invrep,h,a)> 6.823, L rocessing Reply Messages (at hoe) WbRep <Cell(a,-,T W (id)), sg(id,hoe,wbrep,h,a,v);in, out> <Cell(a,v,R(id)), in, out> FlushRep <Cell(a,-,T W (id)), sg(id,hoe,flushrep,h,a,v);in, out> <Cell(a,v,R(ε)), in, out> InvRep <Cell(a,v,T R (id dir)), sg(id,hoe,invrep,h,a);in, out> if dir ε <Cell(a,v,T R (dir)), in, out> <Cell(a,v,T R (id)), sg(id,hoe,invrep,h,a);in, out> <Cell(a,v,R(ε)), in, out> age 14
Cache Coherence Protocols for Sequential Consistency
1 Cache Coherence Protocols for Sequential Consistency Computer Science and Artificial Intelligence Lab M.I.T. Based on the material prepared by and Krste Asanovic Systems view 6.823 L18-2 snooper (WbReq,
More informationCS 152, Spring 2011 Section 12
CS 152, Spring 2011 Section 12 Christopher Celio University of California, Berkeley Agenda Quiz 5 Stuff to Study Snoopy Protocol Handout Directory Protocol Handout PSET #5 A5 Apple ipad 2 (iphone 5?) 9
More informationCS 152 Computer Architecture and Engineering. Lecture 19: Directory-Based Cache Protocols
CS 152 Computer Architecture and Engineering Lecture 19: Directory-Based Cache Protocols Krste Asanovic Electrical Engineering and Computer Sciences University of California, Berkeley http://www.eecs.berkeley.edu/~krste
More informationCS 152 Computer Architecture and Engineering
CS 152 Computer Architecture and Engineering Lecture 18: Directory-Based Cache Protocols John Wawrzynek EECS, University of California at Berkeley http://inst.eecs.berkeley.edu/~cs152 Administrivia 2 Recap:
More informationCS 152 Computer Architecture and Engineering. Lecture 19: Directory-Based Cache Protocols
CS 152 Computer Architecture and Engineering Lecture 19: Directory-Based Protocols Dr. George Michelogiannakis EECS, University of California at Berkeley CRD, Lawrence Berkeley National Laboratory http://inst.eecs.berkeley.edu/~cs152
More informationEC 513 Computer Architecture
EC 513 Computer Architecture Cache Coherence - Snoopy Cache Coherence rof. Michel A. Kinsy Consistency in SMs CU-1 CU-2 A 100 Cache-1 A 100 Cache-2 CU- bus A 100 Consistency in SMs CU-1 CU-2 A 200 Cache-1
More informationCS 152 Computer Architecture and Engineering. Lecture 19: Directory- Based Cache Protocols. Recap: Snoopy Cache Protocols
CS 152 Computer Architecture and Engineering Lecture 19: Directory- Based Protocols Krste Asanovic Electrical Engineering and Computer Sciences University of California, Berkeley hap://www.eecs.berkeley.edu/~krste
More informationCS 152 Computer Architecture and Engineering. Lecture 19: Directory-Based Cache Protocols
CS 152 Computer Architecture and Engineering Lecture 19: Directory-Based Cache Protocols Krste Asanovic Electrical Engineering and Computer Sciences University of California, Berkeley http://www.eecs.berkeley.edu/~krste
More informationArvind Computer Science & Artificial Intelligence Lab. Massachusetts Institute of Technology
Constructive Computer Architecture Cache Coherence Arvind Computer Science & Artificial Intelligence Lab. Massachusetts Institute of Technology November 17, 2014 http://www.csg.csail.mit.edu/6.175 L21-1
More informationCS 152 Computer Architecture and Engineering CS252 Graduate Computer Architecture. Lecture 18 Cache Coherence
CS 152 Computer Architecture and Engineering CS252 Graduate Computer Architecture Lecture 18 Cache Coherence Krste Asanovic Electrical Engineering and Computer Sciences University of California at Berkeley
More informationCSC 631: High-Performance Computer Architecture
CSC 631: High-Performance Computer Architecture Spring 2017 Lecture 10: Memory Part II CSC 631: High-Performance Computer Architecture 1 Two predictable properties of memory references: Temporal Locality:
More informationProblem Set 5 Solutions CS152 Fall 2016
Problem Set 5 Solutions CS152 Fall 2016 Problem P5.1: Sequential Consistency Problem P5.1.A Can X hold value of 4 after all three threads have completed? Please explain briefly. Yes / No C1, B1-B6, A1-A4,
More informationPage 1. Cache Coherence
Page 1 Cache Coherence 1 Page 2 Memory Consistency in SMPs CPU-1 CPU-2 A 100 cache-1 A 100 cache-2 CPU-Memory bus A 100 memory Suppose CPU-1 updates A to 200. write-back: memory and cache-2 have stale
More informationContributors to the course material
Constructive Computer Architecture Cache Coherence Arvind Computer Science & Artificial Intelligence Lab. Massachusetts Institute of Technology November 18, 2013 http://www.csg.csail.mit.edu/6.s195 L21-1
More informationChapter 6. Parallel Processors from Client to Cloud Part 2 COMPUTER ORGANIZATION AND DESIGN. Homogeneous & Heterogeneous Multicore Architectures
COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition Chapter 6 Parallel Processors from Client to Cloud Part 2 Homogeneous & Heterogeneous Multicore Architectures Intel XEON 22nm
More informationCache Coherence Protocols: Implementation Issues on SMP s. Cache Coherence Issue in I/O
6.823, L21--1 Cache Coherence Protocols: Implementation Issues on SMP s Laboratory for Computer Science M.I.T. http://www.csg.lcs.mit.edu/6.823 Cache Coherence Issue in I/O 6.823, L21--2 Processor Processor
More informationTrees. Linear vs. Branching CSE 143. Branching Structures in CS. What s in a Node? A Tree. [Chapter 10]
CSE 143 Trees [Chapter 10] Linear vs. Branching Our data structures so far are linear Have a beginning and an end Everything falls in order between the ends Arrays, lined lists, queues, stacs, priority
More informationEC 513 Computer Architecture
EC 513 Computer Architecture Cache Coherence - Directory Cache Coherence Prof. Michel A. Kinsy Shared Memory Multiprocessor Processor Cores Local Memories Memory Bus P 1 Snoopy Cache Physical Memory P
More informationMemory Hierarchy in a Multiprocessor
EEC 581 Computer Architecture Multiprocessor and Coherence Department of Electrical Engineering and Computer Science Cleveland State University Hierarchy in a Multiprocessor Shared cache Fully-connected
More informationComputer Architecture and Parallel Computing 并行结构与计算. Lecture 6 Coherence Protocols
Computer Architecture and Parallel Computing 并行结构与计算 Lecture 6 Coherence Protocols Peng Liu ( 刘鹏 ) College of Information Science and Electronic Engineering Zhejiang University, Hangzhou 310027, China
More informationShared Memory SMP and Cache Coherence (cont) Adapted from UCB CS252 S01, Copyright 2001 USB
Shared SMP and Cache Coherence (cont) Adapted from UCB CS252 S01, Copyright 2001 USB 1 Review: Snoopy Cache Protocol Write Invalidate Protocol: Multiple readers, single writer Write to shared data: an
More informationIntroduction to Multiprocessors (Part II) Cristina Silvano Politecnico di Milano
Introduction to Multiprocessors (Part II) Cristina Silvano Politecnico di Milano Outline The problem of cache coherence Snooping protocols Directory-based protocols Prof. Cristina Silvano, Politecnico
More informationCOMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Parallel Processors from Client to Cloud Part 2
COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition Chapter 6 Parallel Processors from Client to Cloud Part 2 Homogeneous & Heterogeneous Multicore Architectures Intel XEON 22nm
More informationLecture 8: Directory-Based Cache Coherence. Topics: scalable multiprocessor organizations, directory protocol design issues
Lecture 8: Directory-Based Cache Coherence Topics: scalable multiprocessor organizations, directory protocol design issues 1 Scalable Multiprocessors P1 P2 Pn C1 C2 Cn 1 CA1 2 CA2 n CAn Scalable interconnection
More informationLecture 2: Snooping and Directory Protocols. Topics: Snooping wrap-up and directory implementations
Lecture 2: Snooping and Directory Protocols Topics: Snooping wrap-up and directory implementations 1 Split Transaction Bus So far, we have assumed that a coherence operation (request, snoops, responses,
More informationApproaches to Building Parallel Machines. Shared Memory Architectures. Example Cache Coherence Problem. Shared Cache Architectures
Approaches to Building arallel achines Switch/Bus n Scale Shared ory Architectures (nterleaved) First-level (nterleaved) ain memory n Arvind Krishnamurthy Fall 2004 (nterleaved) ain memory Shared Cache
More informationIntroduction. Coherency vs Consistency. Lec-11. Multi-Threading Concepts: Coherency, Consistency, and Synchronization
Lec-11 Multi-Threading Concepts: Coherency, Consistency, and Synchronization Coherency vs Consistency Memory coherency and consistency are major concerns in the design of shared-memory systems. Consistency
More informationECE 669 Parallel Computer Architecture
ECE 669 Parallel Computer Architecture Lecture 18 Scalable Parallel Caches Overview ost cache protocols are more complicated than two state Snooping not effective for network-based systems Consider three
More informationOn-Chip Interconnect Implications of Shared Memory Multicores
On-Chi Interconnect Ilications of Shared Meory Multicores Srini Devadas Couter Science and Artificial Intelligence Laboratory (CSAIL) Massachusetts Institute of Technology 1 Prograing 1000 cores MPI has
More informationInteroperability/ Conformance Test dpmr Mode 2 Repeater
Interoperability/ Conforance Test dpmr Mode 2 Repeater IOP test Mode 2 Repeater Copyright 2013 dpmr Association All Rights Reserved Version 1.0 0 Revision History Version Date Change By 0v1 16 Oct 2012
More informationScalable Cache Coherent Systems Scalable distributed shared memory machines Assumptions:
Scalable ache oherent Systems Scalable distributed shared memory machines ssumptions: rocessor-ache-memory nodes connected by scalable network. Distributed shared physical address space. ommunication assist
More informationGrading Results Total 100
University of California, Berkeley College of Engineering Departent of Electrical Engineering and Coputer Sciences Fall 2003 Instructor: Dave Patterson 2003-11-19 v1.9 CS 152 Exa #2 Solutions Personal
More informationMultiprocessor Cache Coherency. What is Cache Coherence?
Multiprocessor Cache Coherency CS448 1 What is Cache Coherence? Two processors can have two different values for the same memory location 2 1 Terminology Coherence Defines what values can be returned by
More informationCache Coherence in Scalable Machines
Cache Coherence in Scalable Machines COE 502 arallel rocessing Architectures rof. Muhamed Mudawar Computer Engineering Department King Fahd University of etroleum and Minerals Generic Scalable Multiprocessor
More informationScalable Cache Coherence
Scalable Cache Coherence [ 8.1] All of the cache-coherent systems we have talked about until now have had a bus. Not only does the bus guarantee serialization of transactions; it also serves as convenient
More informationLecture 8: Snooping and Directory Protocols. Topics: split-transaction implementation details, directory implementations (memory- and cache-based)
Lecture 8: Snooping and Directory Protocols Topics: split-transaction implementation details, directory implementations (memory- and cache-based) 1 Split Transaction Bus So far, we have assumed that a
More informationLecture 25: Multiprocessors. Today s topics: Snooping-based cache coherence protocol Directory-based cache coherence protocol Synchronization
Lecture 25: Multiprocessors Today s topics: Snooping-based cache coherence protocol Directory-based cache coherence protocol Synchronization 1 Snooping-Based Protocols Three states for a block: invalid,
More informationEUROPEAN ETS TELECOMMUNICATION August 1995 STANDARD
EUROPEAN ETS 300 428 TELECOMMUNICATION August 1995 STANDARD Source: ETSI TC-NA Reference: DE/NA-052619 ICS: 33.040 Key words: B-ISDN, ATM Broadband Integrated Services Digital Network (B-ISDN); Asynchronous
More informationCache Coherence in Scalable Machines
ache oherence in Scalable Machines SE 661 arallel and Vector Architectures rof. Muhamed Mudawar omputer Engineering Department King Fahd University of etroleum and Minerals Generic Scalable Multiprocessor
More informationCS 252 Graduate Computer Architecture. Lecture 11: Multiprocessors-II
CS 252 Graduate Computer Architecture Lecture 11: Multiprocessors-II Krste Asanovic Electrical Engineering and Computer Sciences University of California, Berkeley http://www.eecs.berkeley.edu/~krste http://inst.eecs.berkeley.edu/~cs252
More informationLecture 18: Coherence Protocols. Topics: coherence protocols for symmetric and distributed shared-memory multiprocessors (Sections
Lecture 18: Coherence Protocols Topics: coherence protocols for symmetric and distributed shared-memory multiprocessors (Sections 4.2-4.4) 1 SMP/UMA/Centralized Memory Multiprocessor Main Memory I/O System
More informationAnalysing Real-Time Communications: Controller Area Network (CAN) *
Analysing Real-Tie Counications: Controller Area Network (CAN) * Abstract The increasing use of counication networks in tie critical applications presents engineers with fundaental probles with the deterination
More informationScalable Cache Coherent Systems
NUM SS Scalable ache oherent Systems Scalable distributed shared memory machines ssumptions: rocessor-ache-memory nodes connected by scalable network. Distributed shared physical address space. ommunication
More informationDesign Optimization of Mixed Time/Event-Triggered Distributed Embedded Systems
Design Optiization of Mixed Tie/Event-Triggered Distributed Ebedded Systes Traian Pop, Petru Eles, Zebo Peng Dept. of Coputer and Inforation Science, Linköping University {trapo, petel, zebpe}@ida.liu.se
More informationCMSC 611: Advanced. Distributed & Shared Memory
CMSC 611: Advanced Computer Architecture Distributed & Shared Memory Centralized Shared Memory MIMD Processors share a single centralized memory through a bus interconnect Feasible for small processor
More informationCMSC 411 Computer Systems Architecture Lecture 21 Multiprocessors 3
MS 411 omputer Systems rchitecture Lecture 21 Multiprocessors 3 Outline Review oherence Write onsistency dministrivia Snooping Building Blocks Snooping protocols and examples oherence traffic and performance
More informationScalable Cache Coherence. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University
Scalable Cache Coherence Jinkyu Jeong (jinkyu@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Hierarchical Cache Coherence Hierarchies in cache organization Multiple levels
More informationLecture 24: Board Notes: Cache Coherency
Lecture 24: Board Notes: Cache Coherency Part A: What makes a memory system coherent? Generally, 3 qualities that must be preserved (SUGGESTIONS?) (1) Preserve program order: - A read of A by P 1 will
More informationECSE 425 Lecture 30: Directory Coherence
ECSE 425 Lecture 30: Directory Coherence H&P Chapter 4 Last Time Snoopy Coherence Symmetric SMP Performance 2 Today Directory- based Coherence 3 A Scalable Approach: Directories One directory entry for
More informationCMSC 611: Advanced Computer Architecture
CMSC 611: Advanced Computer Architecture Shared Memory Most slides adapted from David Patterson. Some from Mohomed Younis Interconnection Networks Massively processor networks (MPP) Thousands of nodes
More informationThread- Level Parallelism. ECE 154B Dmitri Strukov
Thread- Level Parallelism ECE 154B Dmitri Strukov Introduc?on Thread- Level parallelism Have mul?ple program counters and resources Uses MIMD model Targeted for?ghtly- coupled shared- memory mul?processors
More informationDr. George Michelogiannakis. EECS, University of California at Berkeley CRD, Lawrence Berkeley National Laboratory
CS 152 Computer Architecture and Engineering Lecture 18: Snoopy Caches Dr. George Michelogiannakis EECS, University of California at Berkeley CRD, Lawrence Berkeley National Laboratory http://inst.eecs.berkeley.edu/~cs152!
More informationCS252 Graduate Computer Architecture Multiprocessors and Multithreading Solutions November 14, 2007
CS252 Graduate Computer Architecture Multiprocessors and Multithreading Solutions November 14, 2007 Problem 1: Directory-based Cache Coherence Problem 1.A Cache State Transitions Complete Table 1. No.
More informationEnhancing Real-Time CAN Communications by the Prioritization of Urgent Messages at the Outgoing Queue
Enhancing Real-Tie CAN Counications by the Prioritization of Urgent Messages at the Outgoing Queue ANTÓNIO J. PIRES (1), JOÃO P. SOUSA (), FRANCISCO VASQUES (3) 1,,3 Faculdade de Engenharia da Universidade
More informationShortest Path Determination in a Wireless Packet Switch Network System in University of Calabar Using a Modified Dijkstra s Algorithm
International Journal of Engineering and Technical Research (IJETR) ISSN: 31-869 (O) 454-4698 (P), Volue-5, Issue-1, May 16 Shortest Path Deterination in a Wireless Packet Switch Network Syste in University
More informationLecture 24: Thread Level Parallelism -- Distributed Shared Memory and Directory-based Coherence Protocol
Lecture 24: Thread Level Parallelism -- Distributed Shared Memory and Directory-based Coherence Protocol CSE 564 Computer Architecture Fall 2016 Department of Computer Science and Engineering Yonghong
More informationReview. EECS 252 Graduate Computer Architecture. Lec 13 Snooping Cache and Directory Based Multiprocessors. Outline. Challenges of Parallel Processing
EEC 252 Graduate Computer Architecture Lec 13 nooping Cache and Directory Based Multiprocessors David atterson Electrical Engineering and Computer ciences University of California, Berkeley http://www.eecs.berkeley.edu/~pattrsn
More informationReview: Multiprocessor. CPE 631 Session 21: Multiprocessors (Part 2) Potential HW Coherency Solutions. Bus Snooping Topology
Review: Multiprocessor CPE 631 Session 21: Multiprocessors (Part 2) Department of Electrical and Computer Engineering University of Alabama in Huntsville Basic issues and terminology Communication: share
More informationModeling Parallel Applications Performance on Heterogeneous Systems
Modeling Parallel Applications Perforance on Heterogeneous Systes Jaeela Al-Jaroodi, Nader Mohaed, Hong Jiang and David Swanson Departent of Coputer Science and Engineering University of Nebraska Lincoln
More informationCS252 Spring 2017 Graduate Computer Architecture. Lecture 12: Cache Coherence
CS252 Spring 2017 Graduate Computer Architecture Lecture 12: Cache Coherence Lisa Wu, Krste Asanovic http://inst.eecs.berkeley.edu/~cs252/sp17 WU UCB CS252 SP17 Last Time in Lecture 11 Memory Systems DRAM
More informationSpecial Topics. Module 14: "Directory-based Cache Coherence" Lecture 33: "SCI Protocol" Directory-based Cache Coherence: Sequent NUMA-Q.
Directory-based Cache Coherence: Special Topics Sequent NUMA-Q SCI protocol Directory overhead Cache overhead Handling read miss Handling write miss Handling writebacks Roll-out protocol Snoop interaction
More informationComputer Architecture and Engineering CS152 Quiz #5 April 27th, 2016 Professor George Michelogiannakis Name: <ANSWER KEY>
Computer Architecture and Engineering CS152 Quiz #5 April 27th, 2016 Professor George Michelogiannakis Name: This is a closed book, closed notes exam. 80 Minutes 19 pages Notes: Not all questions
More informationLecture 25: Multiprocessors
Lecture 25: Multiprocessors Today s topics: Virtual memory wrap-up Snooping-based cache coherence protocol Directory-based cache coherence protocol Synchronization 1 TLB and Cache Is the cache indexed
More informationPortland State University ECE 588/688. Cache Coherence Protocols
Portland State University ECE 588/688 Cache Coherence Protocols Copyright by Alaa Alameldeen 2018 Conditions for Cache Coherence Program Order. A read by processor P to location A that follows a write
More informationPortland State University ECE 588/688. Directory-Based Cache Coherence Protocols
Portland State University ECE 588/688 Directory-Based Cache Coherence Protocols Copyright by Alaa Alameldeen and Haitham Akkary 2018 Why Directory Protocols? Snooping-based protocols may not scale All
More informationModule 9: Addendum to Module 6: Shared Memory Multiprocessors Lecture 17: Multiprocessor Organizations and Cache Coherence. The Lecture Contains:
The Lecture Contains: Shared Memory Multiprocessors Shared Cache Private Cache/Dancehall Distributed Shared Memory Shared vs. Private in CMPs Cache Coherence Cache Coherence: Example What Went Wrong? Implementations
More informationModule 5: Performance Issues in Shared Memory and Introduction to Coherence Lecture 10: Introduction to Coherence. The Lecture Contains:
The Lecture Contains: Four Organizations Hierarchical Design Cache Coherence Example What Went Wrong? Definitions Ordering Memory op Bus-based SMP s file:///d /...audhary,%20dr.%20sanjeev%20k%20aggrwal%20&%20dr.%20rajat%20moona/multi-core_architecture/lecture10/10_1.htm[6/14/2012
More informationLecture 10: Cache Coherence: Part I. Parallel Computer Architecture and Programming CMU , Spring 2013
Lecture 10: Cache Coherence: Part I Parallel Computer Architecture and Programming Cache design review Let s say your code executes int x = 1; (Assume for simplicity x corresponds to the address 0x12345604
More informationEN2910A: Advanced Computer Architecture Topic 05: Coherency of Memory Hierarchy Prof. Sherief Reda School of Engineering Brown University
EN2910A: Advanced Computer Architecture Topic 05: Coherency of Memory Hierarchy Prof. Sherief Reda School of Engineering Brown University Material from: Parallel Computer Organization and Design by Debois,
More informationScalable Multiprocessors
Scalable Multiprocessors [ 11.1] scalable system is one in which resources can be added to the system without reaching a hard limit. Of course, there may still be economic limits. s the size of the system
More informationCOEN-4730 Computer Architecture Lecture 08 Thread Level Parallelism and Coherence
1 COEN-4730 Computer Architecture Lecture 08 Thread Level Parallelism and Coherence Cristinel Ababei Dept. of Electrical and Computer Engineering Marquette University Credits: Slides adapted from presentations
More informationEvaluation of the Timing Properties of Two Control Networks: CAN and PROFIBUS
Evaluation of the Tiing Properties of Two Control Networs: CAN and PROFIBUS Max Mauro Dias Santos 1, Marcelo Ricardo Steer 2 and Francisco Vasques 3 1 UnilesteMG, CEP 35170-056, Coronel Fabriciano MG Brasil.
More informationCSAIL. Computer Science and Artificial Intelligence Laboratory. Massachusetts Institute of Technology
CSAIL Computer Science and Artificial Intelligence Laboratory Massachusetts Institute of Technology CACHET: An Adaptive Cache Coherence Protocol for Distributed Shared-Memory Systems Xiaowei Shen, Larry
More informationParallel Computer Architecture Spring Distributed Shared Memory Architectures & Directory-Based Memory Coherence
Parallel Computer Architecture Spring 2018 Distributed Shared Memory Architectures & Directory-Based Memory Coherence Nikos Bellas Computer and Communications Engineering Department University of Thessaly
More informationComputer System Architecture Final Examination Spring 2002
Computer System Architecture 6.823 Final Examination Spring 2002 Name: This is an open book, open notes exam. 180 Minutes 22 Pages Notes: Not all questions are of equal difficulty, so look over the entire
More informationShared Memory Architectures. Approaches to Building Parallel Machines
Shared Memory Architectures Arvind Krishnamurthy Fall 2004 Approaches to Building Parallel Machines P 1 Switch/Bus P n Scale (Interleaved) First-level $ P 1 P n $ $ (Interleaved) Main memory Shared Cache
More informationChapter 5. Multiprocessors and Thread-Level Parallelism
Computer Architecture A Quantitative Approach, Fifth Edition Chapter 5 Multiprocessors and Thread-Level Parallelism 1 Introduction Thread-Level parallelism Have multiple program counters Uses MIMD model
More informationCache Coherence. Bryan Mills, PhD. Slides provided by Rami Melhem
Cache Coherence Bryan Mills, PhD Slides provided by Rami Melhem Cache coherence Programmers have no control over caches and when they get updated. x = 2; /* initially */ y0 eventually ends up = 2 y1 eventually
More informationCMSC Computer Architecture Lecture 15: Memory Consistency and Synchronization. Prof. Yanjing Li University of Chicago
CMSC 22200 Computer Architecture Lecture 15: Memory Consistency and Synchronization Prof. Yanjing Li University of Chicago Administrative Stuff! Lab 5 (multi-core) " Basic requirements: out later today
More informationModule 9: "Introduction to Shared Memory Multiprocessors" Lecture 16: "Multiprocessor Organizations and Cache Coherence" Shared Memory Multiprocessors
Shared Memory Multiprocessors Shared memory multiprocessors Shared cache Private cache/dancehall Distributed shared memory Shared vs. private in CMPs Cache coherence Cache coherence: Example What went
More informationDifferent criteria of dynamic routing
Procedia Coputer Science Volue 66, 2015, Pages 166 173 YSC 2015. 4th International Young Scientists Conference on Coputational Science Different criteria of dynaic routing Kurochkin 1*, Grinberg 1 1 Kharkevich
More informationShared Memory Multiprocessors. Symmetric Shared Memory Architecture (SMP) Cache Coherence. Cache Coherence Mechanism. Interconnection Network
Shared Memory Multis Processor Processor Processor i Processor n Symmetric Shared Memory Architecture (SMP) cache cache cache cache Interconnection Network Main Memory I/O System Cache Coherence Cache
More informationPage 1. Lecture 12: Multiprocessor 2: Snooping Protocol, Directory Protocol, Synchronization, Consistency. Bus Snooping Topology
CS252 Graduate Computer Architecture Lecture 12: Multiprocessor 2: Snooping Protocol, Directory Protocol, Synchronization, Consistency Review: Multiprocessor Basic issues and terminology Communication:
More informationShared Memory Multiprocessors
Shared Memory Multiprocessors Jesús Labarta Index 1 Shared Memory architectures............... Memory Interconnect Cache Processor Concepts? Memory Time 2 Concepts? Memory Load/store (@) Containers Time
More informationMulti Packet Reception and Network Coding
The 2010 Military Counications Conference - Unclassified Progra - etworking Protocols and Perforance Track Multi Packet Reception and etwork Coding Aran Rezaee Research Laboratory of Electronics Massachusetts
More informationCollaborative Web Caching Based on Proxy Affinities
Collaborative Web Caching Based on Proxy Affinities Jiong Yang T J Watson Research Center IBM jiyang@usibco Wei Wang T J Watson Research Center IBM ww1@usibco Richard Muntz Coputer Science Departent UCLA
More informationMAPPING THE DATA FLOW MODEL OF COMPUTATION INTO AN ENHANCED VON NEUMANN PROCESSOR * Peter M. Maurer
MAPPING THE DATA FLOW MODEL OF COMPUTATION INTO AN ENHANCED VON NEUMANN PROCESSOR * Peter M. Maurer Departent of Coputer Science and Engineering University of South Florida Tapa, FL 33620 Abstract -- The
More informationESE 545 Computer Architecture Symmetric Multiprocessors and Snoopy Cache Coherence Protocols CA SMP and cache coherence
Computer Architecture ESE 545 Computer Architecture Symmetric Multiprocessors and Snoopy Cache Coherence Protocols 1 Shared Memory Multiprocessor Memory Bus P 1 Snoopy Cache Physical Memory P 2 Snoopy
More information5008: Computer Architecture
5008: Computer Architecture Chapter 4 Multiprocessors and Thread-Level Parallelism --II CA Lecture08 - multiprocessors and TLP (cwliu@twins.ee.nctu.edu.tw) 09-1 Review Caches contain all information on
More informationLecture 10: Cache Coherence: Part I. Parallel Computer Architecture and Programming CMU /15-618, Spring 2015
Lecture 10: Cache Coherence: Part I Parallel Computer Architecture and Programming CMU 15-418/15-618, Spring 2015 Tunes Marble House The Knife (Silent Shout) Before starting The Knife, we were working
More informationMultipath Selection and Channel Assignment in Wireless Mesh Networks
Multipath Selection and Channel Assignent in Wireless Mesh Networs Soo-young Jang and Chae Y. Lee Dept. of Industrial and Systes Engineering, KAIST, 373-1 Kusung-dong, Taejon, Korea Tel: +82-42-350-5916,
More informationScalable Cache Coherence
arallel Computing Scalable Cache Coherence Hwansoo Han Hierarchical Cache Coherence Hierarchies in cache organization Multiple levels of caches on a processor Large scale multiprocessors with hierarchy
More informationAleksandar Milenkovich 1
Parallel Computers Lecture 8: Multiprocessors Aleksandar Milenkovic, milenka@ece.uah.edu Electrical and Computer Engineering University of Alabama in Huntsville Definition: A parallel computer is a collection
More informationNOW Handout Page 1. Context for Scalable Cache Coherence. Cache Coherence in Scalable Machines. A Cache Coherent System Must:
ontext for Scalable ache oherence ache oherence in Scalable Machines Realizing gm Models through net transaction protocols - efficient node-to-net interface - interprets transactions Switch Scalable network
More informationChapter 5. Multiprocessors and Thread-Level Parallelism
Computer Architecture A Quantitative Approach, Fifth Edition Chapter 5 Multiprocessors and Thread-Level Parallelism 1 Introduction Thread-Level parallelism Have multiple program counters Uses MIMD model
More informationPage 1. SMP Review. Multiprocessors. Bus Based Coherence. Bus Based Coherence. Characteristics. Cache coherence. Cache coherence
SMP Review Multiprocessors Today s topics: SMP cache coherence general cache coherence issues snooping protocols Improved interaction lots of questions warning I m going to wait for answers granted it
More information4 Chip Multiprocessors (I) Chip Multiprocessors (ACS MPhil) Robert Mullins
4 Chip Multiprocessors (I) Robert Mullins Overview Coherent memory systems Introduction to cache coherency protocols Advanced cache coherency protocols, memory systems and synchronization covered in the
More informationIntegrating fast mobility in the OLSR routing protocol
Integrating fast obility in the OLSR routing protocol Mounir BENZAID 1,2, Pascale MINET 1 and Khaldoun AL AGHA 1,2 1 INRIA, Doaine de Voluceau - B.P.105, 78153 Le Chesnay Cedex, FRANCE ounir.benzaid, pascale.inet@inria.fr
More informationMultiprocessor Systems
Multiprocessor ystems 55:132/22C:160 pring2011 1 (vs. VAX-11/780) erformance 10000 1000 100 10 1 Uniprocessor erformance (ECint) From Hennessy and atterson, Computer Architecture: A Quantitative Approach,
More informationQUERY ROUTING OPTIMIZATION IN SENSOR COMMUNICATION NETWORKS
QUERY ROUTING OPTIMIZATION IN SENSOR COMMUNICATION NETWORKS Guofei Jiang and George Cybenko Institute for Security Technology Studies and Thayer School of Engineering Dartouth College, Hanover NH 03755
More information