GATE / CS ARCHIVE

GATE CSE 1998 / QUESTION 2.18

Amortized page-fault cost

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

GATE 1998, Q2.18 2 marks · MCQ
Report issue

Virtual Memory & Paging

Question 2.18, GATE 1998: An instruction takes i microseconds; one page fault per k instructions adds j microseconds. Find effective instruction time.
Tap to enlarge
Your answer
Answer & solution

Answer: A: i+j/k (no official key was published)

Over k instructions, ordinary execution costs ki microseconds. The average one fault adds j, so the total for that block is ki+j. Divide by k to obtain i+j/k per instruction, option A. The word additional matters: the base instruction cost is already counted and must not be divided away or counted twice. This is an average-cost calculation and does not require faults to occur at perfectly periodic positions.

Original paper, page 5