Question
Consider a paging hardware with a TLB. Assume that the entire page table and all the pages are in the physical memory. It takes 10 milliseconds to search the TLB and 80 milliseconds to access the physical memory. If the TLB hit ratio is 0.6, the effective memory access time (in milliseconds) is _____.
Official answer and solution
- Official answer
- 122
- From
- Official GATE 2014 answer key
Solution
Use the standard effective memory access time formula incorporating TLB hit and miss cases.
-
Given Parameters:
- TLB access time: ms
- Physical memory access time: ms
- TLB hit ratio:
- TLB miss ratio:
-
Case Analysis:
- TLB Hit: TLB lookup finds the frame number ( ms), then physical memory is accessed once for the target operand ( ms).
- TLB Miss: TLB lookup misses ( ms), physical memory is accessed for the page table entry ( ms), and then physical memory is accessed for the target operand ( ms).
- TLB Hit: TLB lookup finds the frame number ( ms), then physical memory is accessed once for the target operand ( ms).
-
Effective Memory Access Time (EMAT):
Alternatively:
122
Omitting the TLB search time on a TLB miss.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2014 Computer Science and Information Technology (CS) Session 3
- Question
- 43 of 65, printed as CS Q.33
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.