CS FundamentalsVery hardGATE CS · Advanced
A paged system has a 10 ns TLB lookup and 100 ns per memory access, with a 95% TLB hit ratio. A TLB miss costs a two-level page-table walk: two table accesses and then the data access (the TLB lookup time is spent first). A page fault, when it happens, costs 10 ms in total (treat the access time itself as included). What is the largest page-fault rate per memory reference for which the effective access time stays at or below 150 ns?
- A. 3.0 × 10⁻⁶
- B. 4.0 × 10⁻⁶
- C. 3.0 × 10⁻⁵
- D. 5.0 × 10⁻⁶
Correct answer: A. 3.0 × 10⁻⁶
Without faults EAT = 0.95 x 110 + 0.05 x 310 = 120 ns. Solving (1-p) x 120 + p x 10^7 <= 150 gives p = 3.00e-06, i.e. about 3.0 × 10⁻⁶. Using 100 ns or 110 ns as the fault-free time gives larger, wrong limits.
More Operating Systems questions
- A semaphore s is initialised to 0. Three threads run concurrently, and print(X) prints the single letter X atomically. Thread 1: print(A)…
- Two threads share an integer x initialised to 0. Thread 1 executes the loop body x = x + 1 three times; Thread 2 executes it twice. Each…
- Four periodic tasks (computation time C, period T = relative deadline), all released at t = 0, are scheduled by preemptive rate-monotonic…
- A disk spins at 7200 rpm with 500 sectors per track and an average seek time of 5 ms. The controller adds 0.2 ms of overhead. What is the…
- A stride scheduler gives processes A, B and C 100, 50 and 250 tickets respectively, with stride = 10000 / tickets. Every process starts…
- A process uses 100 MiB of memory. A page-table entry is 8 bytes, and on average half of the last page is wasted. Among page sizes that are…