edited by
12,306 views
6 votes
6 votes
suppose that in 1000 memory reference there are 40 misses in the first level cache and 20 misses in the second level cache. Assume miss penalty from the L2 cache to memory is 100 cycles the hit time of the L2 cache is 10 clock cycles.the hit time of the L1 cache is 1 clock cycle.

Ques. if there are 1.5 memory references per instruction. What is the average stall cycles per instruction

a. 3.4 cycles    b. 3.5 cycles        c. 3.2 cycles      d. 3.6 cycles

My work-

miss rate of L2 is  0.02 (global)     and 0.5(local)

miss rate for L1 is 0.04

miss penalty for L1 is 60 cycles

for average stall cycles per instruction = (memory reference per instruction) x (miss rate) x (miss penalty)

right??

so which miss rate and miss penalty should i put here?
edited by

2 Answers

Best answer
15 votes
15 votes
1.5 memory references for 1 instruction...

1000 memory references for 2000/3 instruction

no of stall cycles=miss in l1*miss penalty in L1+miss in L2*miss penalty in L2

                              =40*10+20*100

                              =2400

so avg no of stalls per instruction=2400/(2000/3)

                                                            =3.6
selected by
Answer:

Related questions

2 votes
2 votes
1 answer
2
0 votes
0 votes
0 answers
3
4 votes
4 votes
1 answer
4
khushtak asked Oct 19, 2015
1,161 views
 In an n- CPU shared bus system, if z is the probability that any CPU requests the bus in a given cycle, the probability that only one CPU uses the bus is given by-A. Nz...