Question

Let the page fault service time be 10 ms in a computer with average memory access time being 20 ns. If one page fault is generated for every 10610^6 memory accesses, what is the effective access time for the memory?

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2011 answer key

Solution

Apply the effective memory access time formula with page fault service time.

  1. Let pp be the page fault rate. The problem states that 1 page fault occurs every 10610^6 accesses, so p=1106=10−6p = \frac{1}{10^6} = 10^{-6}.
  1. The memory access time is Tm=20 nsT_m = 20\text{ ns} and page fault service time is Tp=10 ms=10×106 ns=107 nsT_p = 10\text{ ms} = 10 \times 10^6\text{ ns} = 10^7\text{ ns}.
  1. Effective access time is:
EAT=(1−p)×Tm+p×Tp\text{EAT} = (1 - p) \times T_m + p \times T_p
EAT=(1−10−6)×20 ns+10−6×107 ns\text{EAT} = (1 - 10^{-6}) \times 20\text{ ns} + 10^{-6} \times 10^7\text{ ns}
EAT=20−0.00002+10=29.99998 ns≈30 ns\text{EAT} = 20 - 0.00002 + 10 = 29.99998\text{ ns} \approx 30\text{ ns}
Final answer

B

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2011 Computer Science and Information Technology (CS)
Question
20 of 65, printed as CS Q.20
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.