W(i) Write to line by processor iR(i) Read line by processor iZ(i) Displace line by cache iW( j) Write to line by processor j ( j fi i)R( j) Read line by processor j ( j fi i)Z( j) Displace line by cache j ( j fi i)Note: State diagrams are for agiven line in cache iZ( j )Z(i)Z(i)Figure 17.22 Two Cache Coherence Protocols3. P1 writes to x (label the line in P1’s cache x).4. P2 reads x.17.5 Figure 17.22 shows the state diagrams of two possible cache coherence protocols.Deduce and explain each protocol, and compare each to MESI.17.6 Consider an SMP with both L1 and L2 caches using the MESI protocol. As explainedin Section 17.3, one of four states is associated with each line in the L2 cache. Are allfour states also needed for each line in the L1 cache? If so, why? If not, explain whichstate or states can be eliminated.17.7 An earlier version of the IBM mainframe, the S/390 G4, used three levels of cache.As with the z990, only the first level was on the processor chip [called the processorunit (PU)]. The L2 cache was also similar to the z990. An L3 cache was on a separatechip that acted as a memory controller, and was interposed between the L2 cachesand the memory cards. Table 17.4 shows the performance of a three-level cache arrangementfor the IBM S/390. The purpose of this problem is to determine whetherthe inclusion of the third level of cache seems worthwhile. Determine the accesspenalty (average number of PU cycles) for a system with only an L1 cache, and normalizethat value to 1.0. Then determine the normalized access penalty when bothan L1 and L2 cache are used, and the access penalty when all three caches are used.Note the amount of improvement in each case and state your opinion on the valueof the L3 cache.17.8 a. Consider a uniprocessor with separate data and instruction caches, with hit ratiosof Hd and Hi, respectively. Access time from processor to cache is c clock cycles,and transfer time for a block between memory and cache is b clock cycles. Let fi
đang được dịch, vui lòng đợi..
![](//viimg.ilovetranslation.com/pic/loading_3.gif?v=b9814dd30c1d7c59_8619)