GATE / CS ARCHIVE

GATE CSE 2014 SET 3 / QUESTION 33

GATE CSE 2014 Set 3 Q33

Operating Systems · Virtual Memory & Paging · Full GATE CSE 2014 Set 3 paper

GATE 2014 Set 3, Q33 2 marks · NAT
Report issue

Virtual Memory & Paging

Question 33, GATE 2014: A paging system has a TLB; all pages and the entire page table reside in physical memory. TLB search takes 10 milliseconds, physical-memory access 80 milliseconds, and the TLB hit ratio is 0.6. Find effective access time in milliseconds.
Tap to enlarge
Answer & solution

Official answer: 122

Step 1: On a TLB hit, address translation takes 10 ms and the requested memory access takes 80 ms, totaling 90 ms. Step 2: On a TLB miss, after the same 10 ms lookup, one memory access reads the page-table entry and another reads the requested data: 10+80+80=170 ms. There is no disk page-fault penalty because all pages are resident. Step 3: Average over the two cases: 0.6×90+0.4×170=122 ms. The source's milliseconds are intentionally retained; the model assumes serial lookup and a single-level page-table access.

Original paper, page 60 · Answer key