edited by
1,415 views
0 votes
0 votes
Consider a memory access to main memory on a cache miss takes 100 ns and memory access to cache at cache hit takes 10 ns. If 75% processors memory request results in cache hit the average memory access time is _____ ns.
edited by

2 Answers

0 votes
0 votes

Mm access time after cache miss is 100 ns so it has included total time .. for cache miss and mm access 

0 votes
0 votes

given the main memory access time when the cache miss is =100ns

cache access time=10ns

and hit  rate is =75%=0.75

there are 2 ways to find out memory access time

case1 : both cache and memory accessed simultaneously

then  avg memory access time= (hit rate*cache access time)+(miss rate*main memory access time)

                                        =(0.75*10)+((1-0.75)*100)=32.5ns

 

case 2: both cache and memory accessed serially

then  avg memory access time=(hit rate*cache access time)+(miss rate*(cache access time+main memory access time)

                                              =(0.75*10)+(0.25*(10+100))

                                             =35ns

 

Related questions