OS & Hardware
Memory access time is 100 ns and handling a page fault takes 8 ms. If a page fault occurs once per million accesses, what is the average access time approximately?
- AAbout 108 ns
- BAbout 100 ns
- CAbout 8 ms
Show answer and explanation
Answer: A. About 108 ns
The average access time is (1 − p) × 100 ns + p × 8 ms; with p = 10⁻⁶ it is about 100 ns + 10⁻⁶ × 8,000,000 ns = 100 + 8 = 108 ns. Even at one fault per million, page faults are costly enough to slow the average by 8%. About 100 ns ignores page faults, and about 8 ms is the value if every access faulted.
- A. Correct. 100 + 10⁻⁶ × 8,000,000 ≈ 108 ns.
- B. About 100 ns ignores the effect of page faults.
- C. About 8 ms is the value if every access faulted.