GATE Computer Science · Operating Systems and Computer Networks · medium
A paged virtual memory system uses a single-level page table in main memory (access time 100 ns) and a Translation Lookaside Buffer (TLB) with access time 10 ns and a TLB hit ratio of 90%. Assuming no page faults, what is the Effective Memory Access Time (EMAT)?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: D. 120 ns calculated as 0.90 * 110 ns plus 0.10 * 210 ns
Effective memory access time is the probability-weighted average of the hit and miss paths. With a single-level page table, a TLB hit costs the TLB lookup (10 ns) plus one memory access for the data (100 ns), which is 110 ns. A TLB miss costs the TLB lookup (10 ns), then one memory access to read the page table entry (100 ns), then one more to fetch the data (100 ns), which is 210 ns. So EMAT = 0.90 x 110 + 0.10 x 210 = 99 + 21 = 120 ns. The standard check is the equivalent form: TLB time + memory time + miss ratio x memory time = 10 + 100 + 0.1 x 100 = 120 ns. The common trap is forgetting that the TLB is still probed on a miss, or forgetting that a miss adds a whole extra memory access for the page table walk. With a single-level table that extra cost is exactly one access.
Why the other options are wrong
- A. 110 ns assuming a TLB miss requires one main memory reference — 110 ns is only the TLB hit path, 10 ns plus 100 ns. It ignores the 10% of references that miss and need an extra page table access, so it understates the average.
- B. 119 ns omitting the TLB lookup time on the 10% miss path — 119 ns does not follow from the standard model. It would be 0.9 x 110 + 0.1 x 200 = 119, which drops the 10 ns TLB probe on the miss path. The TLB is always searched first, so a miss costs 210 ns, not 200 ns.
- C. 200 ns assuming virtual address translations bypass the TLB — 200 ns is the cost with no TLB at all, one access for the page table entry and one for the data. The question has a TLB with a 90% hit ratio, so the average must come out lower than the no-TLB time of 200 ns plus any TLB overhead, and the weighted average is 120 ns.
More Operating Systems and Computer Networks questions
- Consider a counting semaphore S initialized to 7. If 12 wait(S) (P) operations and 8 signal(S) (V) operations are…
- Three processes P1, P2, and P3 arrive at times 0 ms, 1 ms, and 2 ms with CPU burst times of 8 ms, 4 ms, and 2 ms…
- A system has 4 processes (P1..P4) and a single resource type. Each process has a maximum claim of 4 units (Max = [4…
- For the page reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 with 3 initially empty page frames, how many page…
All Operating Systems and Computer Networks questions and the topic overview →
GATE is a mark of the Indian Institute of Science and the Indian Institutes of Technology. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by the GATE Committee.