retagged by
6,868 views
4 4 votes

Suppose that a CPU has access to 3 levels of memory. 

L1 = 2000 words and access time = 0.02 ms and H1 = 0.65

L2 = 10000 words and access time = 0.2 ms and H2 = 0.45

L3 = 20000 words and access time = 2 ms

Assume that if a Word to be accessed is in L1, then it can be accessed directly. If it is in L2, first transfer it to L1 and then send to CPU. Similarly, for L3 . What is the average access time in % ?

2 Answers

Best answer
10 10 votes

Question says definition of hierarchical access;

Average access time = L1hit (L1 access time) + (1- L1hit ) L2hit (L1 access time + L2 access time + L1 access time) + (1- L1hit ) (1- L2hit) (L1 access time + L2 access time + L3 access time +L2 access time + L1 access time)

                                = 0.65 (0.02) + (0.35)(0.45) ( 0.02 + 0.2 + 0.02) + (0.35)(0.55) ( 0.02 + 0.2 + 2 +0.2 + 0.02 )

                                = 0.013 + 0.0378 + 0.4697

                               = 0.5205

What question may ask:

1.Check in L1 if present then read . read time of L1

2. if not present in L1 but in L2 :   i.e. read time of L1 to check not present + read from L2 + Transfer to L1 and access

3.  if not present in L1 and L2 but in L3 :   i.e. read time of L1 to check not present + read time of L2 to check not present + read time of L3 + Transfer to L3 to L2 + Transfer to L2 to L1 and access 

Note : In General miss penality is given which include transfer time to lower level and read time to processor (100 times or higher than normal aceess)

edited by
1 1 vote
Lets find out the effective L2 access time.

L2 effective access time

=  (L2 hit rate)(L2 access time)

+ (L2 miss rate)(L2 access to conclude miss + L3 access + L2 access to newly loaded word)

= 0.45*(0.2) + (0.55)*(0.2 + 2 + 0.2)

= 1.41 ms

 

Lets find out the effective L1 access time.

L1 effective access time

=  (L1 hit rate)(L1 access time)

+ (L1 miss rate)(L1 access to conclude miss + L2 effective access time + L1 access to newly loaded word)

= 0.65(0.02) + 0.35(0.02 + 1.41 + 0.02)

= 0.5205 ms
Answer:
Position:
Show:

Related questions

0 0 votes
0 0 answers
1.6k
1.6k views
Raj Singh 1 asked Dec 19, 2018
1,618 views
$h_1→L1$ hit ratio $h_2→L2$ hit ratio$C_1→ L1$ access time$C_2→ $Miss penalty to transfer information from L2 to L1$M→$ Miss penalty to transfer information from main mem...
1 1 vote
2 2 answers
9.5k
9.5k views
Na462 asked Aug 16, 2018
9,461 views
Consider a two level cache system. For 100 memory references 20 misses in 1st level cache,10 misses in second level cache. Miss penalty from second level to memory is 40 ...
0 0 votes
3 3 answers
1.1k
1.1k views
Satyajeet Singh asked Jun 14, 2017
1,065 views
On a system with 32 bit addresses and 4KB pages, how many levels are required in multilevel page table (assume that each entry in the page table takes 4 bytes of storage)...
75 75 votes
9 answers 9 answers
39.9k
39.9k views
Kathleen asked Sep 13, 2014
39,904 views
The access times of the main memory and the Cache memory, in a computer system, are $500$ n sec and $50$ nsec, respectively. It is estimated that $80\%$ of the main memor...