in CO and Architecture edited by
1,210 views
0 votes
0 votes
consider two-level cache hierarchies with L1 and L2 cache. Programs refer to memory 1000 times out of which 40 misses are in the L1 cache and 10 misses are in the L2 cache.If the miss penalty of L2 is 200 clock cycles,hit time of L1 is 1 clock cycle,and hit time of L2 is 15 clock cycles,the average memory access time is__________clock cycles.
in CO and Architecture edited by
1.2k views

4 Comments

@aditi19

ok, thanks

but 10 misses in L2 out of 1000

right?

then how u got 0.25?

0
0
in hierarchical arrangement, first L1 will be referred and when a block is not found in L1 then L2 will be referred right?
in L1 #hits=960 and number of misses=40. so for these 40 misses CPU will refer L2

now in L2 #misses=10
L2 will be accessed 40 times(because it is hierarchical)
so hit ratio of L2=30/40

and miss ratio in L2=10/40=0.25
1
1
ok, thanks :)
0
0

1 Answer

0 votes
0 votes
T avg=1+ 40/100 * (15+ 10/40 *200) = 3.6 clock cycle.

Related questions