The GATE Grind

GATE 2020 CS – Question 63

Operating System · Memory Management and Virtual Memory · 2 marks · Numerical answer

Consider a paging system that uses 1-level page table residing in main memory and a TLB for address translation. Each main memory access takes 100 ns and TLB lookup takes 20 ns. Each page transfer to/from the disk takes 5000 ns. Assume that the TLB hit ratio is 95%, page fault rate is 10%. Assume that for 20% of the total page faults, a dirty page has to be written back to disk before the required page is read in from disk. TLB update time is negligible. The average memory access time in ns (round off to 1 decimal places) is ______.

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 154.5 to 155.5

Explanation

A TLB hit costs 20+100 = 120 ns. A TLB miss costs 20+100+100 = 220 ns, or 220+5000+0.2×5000 = 6220 ns if a page fault occurs (10%). EMAT = 0.95×120 + 0.05×(0.9×220 + 0.1×6220) = 114 + 0.05×820 = 155 ns.