Question: [ 1 0 / 1 0 / 1 0 / 1 5 ] You are trying to appreciate how important the principle of locality is
You are trying to appreciate how important the principle of
locality is in justifying the use of a cache memory, so you experiment with a com puter having an LI data cache and a main memory you exclusively focus on data accesses The latencies in CPU cycles of the different kinds of accesses are as follows: cache hit, cycle; cache miss, cycles; main memory access with cache disabled, cycles.
a When you run a program with an overall miss rate of what will the average memory access time in CPU cycles be
b Next, you run a program specifically designed to produce completely random data addresses with no locality. Toward that end, you use an array of size GB all of which fits in the main memory Accesses to random elements of this array are continuously made using a uniform random number generator to generate the elements indices If your data cache size is KB what will the average memory access time be
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
