Suppose that a computer has a processor with two L1 caches, one for instructions and one for data, and an L2 cache. Let τ be the access time for the two L1 caches. The miss penalties are approximately 15τ for transferring a block from L2 to L1, and 100τ for transferring a block from the main memory to L2. For the purpose of this problem, assume that the hit rates are the same for instructions and data and that the hit rates in the L1 and L2 caches are 0.96 and 0.80, respectively. (a) What fraction of accesses miss in both the L1 and L2 caches, thus requiring access to the main memory? (b) What is the average access time as seen by the processor? (c) Consider the following change to the memory hierarchy. The L2 cache is removed and the size of the L1 caches is increased so that their miss rate is cut in half. What is the average memory access time as seen by the processor in this case
Suppose that a computer has a processor with two L1 caches, one for instructions
and one for data, and an L2 cache. Let τ be the access time for the two L1 caches. The
miss penalties are approximately 15τ for transferring a block from L2 to L1, and 100τ for
transferring a block from the main memory to L2. For the purpose of this problem, assume
that the hit rates are the same for instructions and data and that the hit rates in the L1 and
L2 caches are 0.96 and 0.80, respectively.
(a) What fraction of accesses miss in both the L1 and L2 caches, thus requiring access
to the main memory?
(b) What is the average access time as seen by the processor?
(c) Consider the following change to the memory hierarchy. The L2 cache is removed
and the size of the L1 caches is increased so that their miss rate is cut in half. What
is the average memory access time as seen by the processor in this case
Trending now
This is a popular solution!
Step by step
Solved in 2 steps