Skip to content
Official PYQ · 2011

GATE CS 2011 Q20 — Memory Management and Virtual Memory

Explain with AI

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

Choose one option
View worked solution

Answer: B

The effective memory access time (EATEAT) in a demand-paging system is calculated using the formula:

EAT=(1−p)imesTm+pimesTpfEAT = (1 - p) imes T_m + p imes T_{pf}

Where:

  • pp is the page fault rate (probability of a page fault).
  • TmT_m is the memory access time when no page fault occurs.
  • TpfT_{pf} is the page fault service time.

Step-by-step Calculation:

  1. Identify the given values and unify the units to nanoseconds (ns\text{ns}):
    • Memory access time (TmT_m) = 20 ns20\text{ ns}
    • Page fault service time (TpfT_{pf}) = 10 ms=10×106 ns=107 ns10\text{ ms} = 10 \times 10^6\text{ ns} = 10^7\text{ ns}
    • Page fault rate (pp) = 1106=10−6\frac{1}{10^6} = 10^{-6}
  2. Substitute the values into the formula: EAT=(1−10−6)×20 ns+10−6×107 nsEAT = (1 - 10^{-6}) \times 20\text{ ns} + 10^{-6} \times 10^7\text{ ns}
  3. Simplify the expression: EAT=(20−20×10−6) ns+10 nsEAT = \left(20 - 20 \times 10^{-6}\right)\text{ ns} + 10\text{ ns} EAT=20 ns−0.00002 ns+10 nsEAT = 20\text{ ns} - 0.00002\text{ ns} + 10\text{ ns} EAT=29.99998 ns≈30 nsEAT = 29.99998\text{ ns} \approx 30\text{ ns}

Thus, the effective memory access time is approximately 30 ns30\text{ ns}.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Memory Management and Virtual Memory questions