Question: Sequential consistency (SC) requires that all reads and writes appear to have executed in some total order. This may require the processor to stall in
Write A
Read B
Where the write A results in a cache miss and the read B results in a cache hit. Under SC, the processor must stall read B until after it can order (and thus perform) write A. Simple implementations of SC will stall the processor until the cache receives the data and can perform the write.
Weaker consistency models relax the ordering constraints on reads and writes, reducing the cases that the processor must stall. The Total Store Order (TSO) consistency model requires that all writes appear to occur in a total order, but allows a processor's reads to pass its own writes. This allows processors to implement write buffers, which hold committed writes that have not yet been ordered with respect to other processor's writes. Reads are allowed to pass (and potentially bypass) the write buffer in TSO (which they could not do under SC).
Assume that one memory operation can be performed per cycle and that operations that hit in the cache or that can be satisfied by the write buffer introduce no stall cycles. Operations that miss incur the latencies listed in Figure 4.41. Assume the cache contents of Figure 4.37 and the base switched protocol of Exercise 4.8. How many stall cycles occur prior to each operation for both the SC and TSO consistency models?
a. P0: write 110 <-- 80P0: read 108
b. P0: write 100 <-- 80P0: read 108
c. P0: write 110 <-- 80P0: write 100 <-- 90
d. P0: write 100 <-- 80P0: write 110 <-- 90
Step by Step Solution
3.39 Rating (180 Votes )
There are 3 Steps involved in it
a P... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
903-C-S-S-A-D (3190).docx
120 KBs Word File
