Suppose that you have a 4-way associative cache. In one of the sets of the cache,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Suppose that you have a 4-way associative cache. In one of the sets of the cache, there is a stream of accesses to the following block addresses. Determine whether each of the access would result in a cache hit, a cache miss, or a cache miss and replacement. Show what block is replaced for each of the following replacement policies: LRU, OPT, FIFO, Pseudo-LRU, and Inverse MRU. Inverse MRU keeps track of which line is the most recently used within each set. On replacement, replace the block from the line that is bitwise inverse of the MRU (e.g., if the MRU is in line "10", then select block in line "01" for replacement). For the first few accesses, fill the cache starting from way/line 00, 01, 10, and then 11. For each cell, use the following notation: "H" for hit, "M" for miss, "MR-x" for miss and replace block x. For the Pseudo-LRU replacement, assume initially that the tree has 'O' in all nodes. For the OPT replacement, if future information is no longer available for one or more blocks, break the tie by choosing to replace block that is alphabetically earlier (e.g. replace A before B, etc.) Accessed Block Address A B C D A E G H F F D IC D E G H E LRU Pseudo-LRU FIFO Inverse MRU OPT Suppose that you have a 4-way associative cache. In one of the sets of the cache, there is a stream of accesses to the following block addresses. Determine whether each of the access would result in a cache hit, a cache miss, or a cache miss and replacement. Show what block is replaced for each of the following replacement policies: LRU, OPT, FIFO, Pseudo-LRU, and Inverse MRU. Inverse MRU keeps track of which line is the most recently used within each set. On replacement, replace the block from the line that is bitwise inverse of the MRU (e.g., if the MRU is in line "10", then select block in line "01" for replacement). For the first few accesses, fill the cache starting from way/line 00, 01, 10, and then 11. For each cell, use the following notation: "H" for hit, "M" for miss, "MR-x" for miss and replace block x. For the Pseudo-LRU replacement, assume initially that the tree has 'O' in all nodes. For the OPT replacement, if future information is no longer available for one or more blocks, break the tie by choosing to replace block that is alphabetically earlier (e.g. replace A before B, etc.) Accessed Block Address A B C D A E G H F F D IC D E G H E LRU Pseudo-LRU FIFO Inverse MRU OPT
Expert Answer:
Answer rating: 100% (QA)
ANSWER To solve this problem we need to keep track of the contents of the cach... View the full answer
Related Book For
Posted Date:
Students also viewed these accounting questions
-
Suppose that you have a glass tube filled with atomic hydrogen gas (H, not H2). Assume that the atoms start out in their ground states. You illuminate the gas with monochromatic light of various...
-
What is a 12b-1 fee? Suppose that you have a choice between two mutual funds, one a load fund with no annual 12b-1 fees, and the other a no-load fund with a maximum 12b-1 fee. How would the length of...
-
Suppose that you have a summer job at Remotely Speaking, a company that manufactures sophisticated portable two-way radio transceivers for remote-controlled military reconnaissance missions. The...
-
1. Give the format of HTTP request message. 2. Give the format of HTTP response message.
-
Using Table 11.4 as an example, create two alternative access plans. Use the following assumptions: a. There are 8,000 employees. b. There are 4,150 female employees. c. There are 370 employees in...
-
Iron Man Corporation is a small private corporation that sells desktop printers to local businesses and schools. On May 1, 2024, the following were the account balances of Iron Man Corporation: Cash...
-
How would you respond to Duncans comments on the promotional mix and, in particular, to his comments about the level of advertising expenditure?
-
Schrade Company bought a machine for $96,000 cash. The estimated useful life was four years, and the estimated residual value was $6,000. Assume that the estimated useful life in productive units is...
-
Tishman Speyer announced that it has acquired The Eddy, a recently-constructed, high-rise apartment tower located on the East Boston waterfront, from Green Cities Company for $135 million....
-
Goldie and Kurt want advice from your financial advising firm. They have provided the following information. They graduated from university four years ago and they have good jobs, but neither of them...
-
It is not unusual for even large corporate boards to have no women or minorities on them. In the U.S., women held 16%of board seats at Fortune 500 companies in 2012. In her 2013 book, Lean In, Sheryl...
-
How much energy is required to heat \(100 \mathrm{~L}\) of water from \(20^{\circ} \mathrm{C}\) to \(55^{\circ} \mathrm{C}\) ?
-
You are given 13.0 m of thin wire. You form the wire into a circular coil with 50 turns. If this coil is placed with its axis parallel to a 0.12 T magnetic field, what is the flux through the coil?
-
An inventor designs a model plane that uses the emf that develops across its metal wings as it flies through the earths magnetic field to power the planes propeller. Will this plane be able to power...
-
Experimentally one obtains \(C_{P}=4.844 \times 10^{-23} \mathrm{~J} / \mathrm{K}\) for nitrogen gas at room temperature. (a) Calculate the heat capacity ratio \(\gamma\) for a gas of nitrogen...
-
Residents of Lake Caliopa, Minnesota, began noticing an unusually high number of lung ailments among the local population. Several concerned citizens pooled their resources and commissioned a study...
-
Show details how to get equ 7.9.7 form equ 7.9.6 dCi - dCip = -kodAm Integrating from the inlet to the outlet results in the following expression: - kAm 1 In (C(2) - C (2)) = kAw (20 + 10) QB QD...
-
For the data in Exercise 17-19, use the FIFO method to summarize total costs to account for, and assign these costs to units completed and transferred out, and to units in ending work in process....
-
A quantitative data set has mean 30 and standard deviation 4. At least what percentage of the observations lie between 10 and 50? Apply Chebyshev's rule to solve.
-
State the empirical rule as specialized to variables?
-
Consider a Tukey multiple comparison of four population means with a family confidence level of 0.95. Is the individual confidence level smaller or larger than 0.95? Explain your answer.
-
How closely related do you believe language and thought to be? During the production of Chapter 3 in this book, the authors and editors debated whether we should use the word "autistics" or the...
-
When did human language originate?
-
Describe American styles of nonverbal communication. Are there different styles of nonverbal communication in different areas of the United States?
Study smarter with the SolutionInn App