









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










[§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 broadcast mechanism to assure that each transaction is propagated to all other processors’ caches. Now we want to consider how cache coherence can be provided on a machine with physically distributed memory and no globally snoopable interconnect. These machines provide a shared address space. They must be able to satisfy a cache miss transparently from local or remote memory. This replicates data. How can it be kept coherent? Scalable network CA P $ Switch M Switch (^) Switch Scalable distributed memory machines consist of P-C-M nodes connected by a network. The communication assist interprets network transactions and forms the interface between the processor and the network. Lecture 20 Architecture of Parallel Computers 1
A coherent system must do these things. Provide set of states, state-transition diagram, and actions. Manage coherence protocol. (0) Determine when to invoke the coherence protocol (a) Find source of info about state of this block in other caches. This may or may not require communication with other cached copies. (b) Find out where the other copies are (c) Communicate with those copies (invalidate/update) (0) is done the same way on all systems
Let us start off by considering a simple directory-based approach due to Tang (1976). It uses—
A cached block can be in one of three states:
Operation of a simple directory scheme The scheme we have just discussed is called a centralized directory scheme , because the directory is kept together in one place. Let us now assume that the directory is distributed, with each node holding directory information for the blocks it contains. This node is called the home node for these blocks. What happens on a read-miss? Lecture 20 Architecture of Parallel Computers 7 PI EX RO RW Yes, one RW copy in cache r. GT GT, WB No No Yes Yes Store into block i in local cache c. Hit? Find block j to replace If block j is RW, MM ^ block[ j , c ] Other cop- ies of block i? Invalidate all copies of block i in other caches Write block i back to MM and invalidate it in cache r. Fetch block i with RW access. Store block in cache c. End Block i status in cache (L[ i , c ])? Invalidate all copies of block i in other caches Record block i as RW in GT. GT: Possible access to global table WB: Possible write-back to memory PI: Pure invalidation MM: Main memory
P A M/D C P A M/D C P A M/D C Read request to directory Reply with owner identity Read req. to owner Data Reply Revision message to directory
4a. 4b. Requestor Node with dirty (^) copy Directory (^) node for block The requesting node sends a request transaction over the network to the home node. The home node responds with the identity of the owner — the node that currently holds a valid copy of the block. The requesting node then gets the data from the owner, and revises the directory entry accordingly. On a write- miss, the directory identifies copies of the block, and invali- dation or update messages may be sent to the copies. P A M/D C P A M/D C P A M/D C RdEx request to directory Reply with sharers identity Inval. req. to sharer
P A M/D C Inval. req. to sharer Inval. ack Inval.^ ack 3a. 3b. 4a. 4b. Requestor Directory (^) node Sharer Sharer © 2002 Edward F. Gehringer CSC/ECE 506 Lecture Notes, Spring 2002 8
vs. 1024+ bits directory information. How a directory is organized affects all these, performance at a target scale, as well as coherence-management issues. Alternatives for organizing directories [§8.2.3] When a miss occurs, how do we find the directory information? There are two main alternatives.
Organizing a memory-based directory scheme All info about copies is collocated with the block itself at the home They work just like centralized scheme, except for being distributed. Scaling of performance characteristics