retagged by
695 views
0 votes
0 votes
Consider a k-level paging system along with a TLB. A TLB takes 10ns, and a memory takes 100ns on average. The hit ratio of TLB is equal to 0.8. If it is known that the average memory access time is 70ns, then the value of k is?
retagged by

1 Answer

0 votes
0 votes
TLB = t = 10ns

Memory time = m = 100ns

Hit ratio (tlb) = p = 0.8

Miss ratio = 1 – p = 0.2

Let assume there are k level for checking :

then formula for the Effective time calculation :

T effective = p( t + m ) + (1-p)(t + km + m  )

T effective  = pt + pm + t + km – pt – pkm + m – mp  → t +m(k+1) ( 1-p)

Now , we only put the value in te formula :

T effective = t + (1-p) m (k+1)

70 = 10 + ( 1 – 0.8) * (k+1)* 100

60 = 0.2 * (k+1) * 100

60 = 20 *(k+1)

k = 3 – 1 = 2

ANSWER IS 2 LEVEL WILL REQUIRE :)

Related questions

1 votes
1 votes
2 answers
2