CS FundamentalsVery hardGATE CS (PYQ pattern)

A 3-level paging system has TLB lookup 20 ns and memory access 100 ns. On a TLB miss the three page-table levels are read from memory and then the data. The TLB hit ratio is 80%. In addition, 1 reference in every 100,000 (counted over all references) causes a page fault that costs an extra 10 ms. The effective access time, in ns, is closest to:

  1. A. 180
  2. B. 260
  3. C. 280
  4. D. 300

Correct answer: C. 280

Hit: 20 + 100 = 120. Miss: 20 + 3x100 + 100 = 420. Average = 0.8x120 + 0.2x420 = 180. Faults add 10^-5 x 10^7 ns = 100 ns, so 280. 180 ignores the faults.

More Operating Systems questions

Exams that ask this topic