GATE / CS ARCHIVE

GATE CSE 2018 / QUESTION 10

Page-fault probability from mean access time

Operating Systems · Virtual Memory & Paging · Full GATE CSE 2018 paper

GATE 2018, Q10 1 mark · MCQ
Report issue

Virtual Memory & Paging

Question 10, GATE 2018: A memory access costs M when resident and total D when it faults. Observed mean is X. Find fault rate: A (D−M)/(X−M); B (X−M)/(D−M); C (D−X)/(D−M); D (X−M)/(D−X).
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Method

Partition accesses into the two mutually exclusive outcomes. With fault probability f, their probabilities are f and 1−f, not two independent rates. The weighted mean X=M+f(D−M) interpolates between M at f=0 and D at f=1. These endpoints immediately distinguish the fault probability from C, which is the hit probability. For ordinary D>M, valid observations satisfy M≤X≤D.

Solution

If f is the fault rate, X=(1−f)M+fD=M+f(D−M). Therefore f=(X−M)/(D−M), B, assuming the stated fault access time D is the total fault-case time and D≠M.

Original paper, page 6 · Answer key