Skip to content
Official PYQ · 2014

GATE CS 2014 Set 3 Q33 — Memory Management and Virtual Memory

Explain with AI
Consider a paging hardware with a TLBTLB. Assume that the entire page table and all the pages are in the physical memory. It takes 1010 milliseconds to search the TLBTLB and 8080 milliseconds to access the physical memory. If the TLBTLB hit ratio is 0.60.6, the effective memory access time (in milliseconds) is _________.
View worked solution

Answer: 122

To find the effective memory access time (EMAT), we analyze the two possible scenarios based on the TLB hit ratio:

  • TLB Hit (Probability h=0.6h = 0.6):
    The TLB is searched first, and the physical address translation is found. Then, physical memory is accessed to retrieve the data.
    Time=tTLB+tm=10 ms+80 ms=90 ms\text{Time} = t_{TLB} + t_m = 10\text{ ms} + 80\text{ ms} = 90\text{ ms}
  • TLB Miss (Probability 1−h=0.41 - h = 0.4):
    The TLB is searched first and results in a miss. Then, the page table in physical memory is accessed to get the frame number, followed by a second physical memory access to retrieve the actual data.
    Time=tTLB+2×tm=10 ms+2×80 ms=170 ms\text{Time} = t_{TLB} + 2 \times t_m = 10\text{ ms} + 2 \times 80\text{ ms} = 170\text{ ms}

Using these values, we calculate the Effective Memory Access Time (EMAT):

EMAT=h×(tTLB+tm)+(1−h)×(tTLB+2×tm)\text{EMAT} = h \times (t_{TLB} + t_m) + (1 - h) \times (t_{TLB} + 2 \times t_m)

Substituting the given values:

EMAT=0.6×90+0.4×170\text{EMAT} = 0.6 \times 90 + 0.4 \times 170

EMAT=54+68=122 ms\text{EMAT} = 54 + 68 = 122\text{ ms}

Thus, the effective memory access time is 122 milliseconds.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Memory Management and Virtual Memory questions