Consider a system with a two-level paging scheme in which a regular memory access takes , and servicing a page fault takes . An average instruction takes nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is %, and the page fault rate is one in every instructions. What is the effective average instruction execution time?
View worked solution
Answer: D
The effective average instruction execution time consists of three components: CPU execution time, memory access time, and page fault service overhead.
1. Page Fault Overhead:
The page fault rate is in every instructions ( per instruction).
2. Effective Memory Access Time (EMAT):
Each instruction requires memory accesses. For each memory access, the TLB hit ratio is ().
- On a TLB hit (probability ): Only memory access is needed to fetch the data/instruction. Time taken = .
- On a TLB miss (probability ):
- Official GATE key assumption: A TLB miss requires page table access + physical memory access (total accesses). Time taken = .
- Strict two-level paging interpretation: A TLB miss requires page table accesses + physical memory access (total accesses). Time taken = .
Calculating EMAT for both cases:
- Case 1 (Official Key Assumption):Memory access time for accesses = .
- Case 2 (Strict Two-Level Paging):Memory access time for accesses = .
Since is not among the options, Case 1 represents the intended solution.
Free practice · Your answers on this page are not saved.
