Consider a single-level page table system, with the page table stored in the memory. If…
- User
Consider a single-level page table system, with the page table stored in the memory. If the hit rate to TLB is 80%, and it takes 15 nanoseconds to search the TLB, and 150 nanoseconds to access the main memory, then what is the effective memory access time, in nanoseconds?
- Assistant
On every reference the processor must:
-
Search the TLB → 15 ns
-
If the entry is in the TLB (hit): go straight to the desired main-memory word
memory access → 150 nsTotal on a hit = 15 ns + 150 ns = 165 ns
-
If the entry is not in the TLB (miss):
• read the page-table entry from main memory → 150 ns
• then read the desired word from main memory → 150 nsTotal on a miss = 15 ns + 150 ns + 150 ns = 315 ns
Now combine the two cases with the hit rate H = 80 % = 0.8:
EMAT = H × (time on hit) + (1 − H) × (time on miss) = 0.8 × 165 ns + 0.2 × 315 ns = 132 ns + 63 ns = 195 ns
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.