Question: April 2 9 Cache block size B can affect both miss rate and miss latency. Assuming a 1 - CPI machine with an average of

April 29
Cache block size B can affect both miss rate and miss latency. Assuming a 1-CPI machine with an average of 1.35 references (both instruction and data) per
instruction, help find the optimal block size given the following hit rates for various block sizes.
a) What is the optimal block size for a miss latency of 20* b cycles?
b) What is the optimal block size for a miss latency of 24+b cycles?
c) For constant miss latency what is the optimal block size?
We will look at two processors with the same main memory access time of 70 nanoseconds and same instruction memory accesses of 36%. The following
table shows data for L1 caches attached to two processors, P1 and P2.
a) Assuming that the L1 hit time determines the cycle time for P1 and P2, what are their respective clock rates?
b) What is the average memory access time for P1 and P2?
c) Assuming a base CPI of 1.0 without any memory stalls what is the total CPI for P1 and P2? New line which processor is faster?
Use the table from problem 2 and we now add an L2 cache to P1 to presumably make up for its limited L1 cache capacity. Use the L1 cache capacities and
hit rates from the previous table when solving these problems. The L2 hit rate in and access times are listed in the table. The L2 cache is only being added to
P1.
a) What is the AMAT for P1 with the addition of the L2 cache? Is the AMAT better or worse with the
L2 cache?
b) Assuming the base CPI of 1.0 without any memory cells what is the total CPI for P1 with the addition of the L2 cache? What would the L2 hit rate need to be
in order for P1 with an L2 cache to be faster than P1 without an L2 cache?
c) What would the L2 hit rate need to be in order for P1 with an L2 cache to be faster than P2 without an L2 cache?
April 2 9 Cache block size B can affect both miss

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!