In a paging system, it takes 30 ns to search translation Look-a-side Buffer…

2017

In a paging system, it takes 30 ns to search translation Look-a-side Buffer (TLB) and 90 ns to access the main memory. If the TLB hit ratio is 70%, the effective memory access time is :

  1. A.

    48ns

  2. B.

    147ns

  3. C.

    120ns

  4. D.

    84ns

Attempted by 106 students.

Show answer & explanation

Correct answer: B

Solution:

  • Given: TLB search time = 30 ns, main memory access time = 90 ns, TLB hit ratio = 70% (0.7).

  • If TLB hit: time = TLB search + memory access = 30 ns + 90 ns = 120 ns.

  • If TLB miss: need to access page table in memory and then the data in memory, so time = TLB search + page-table memory access + data memory access = 30 ns + 90 ns + 90 ns = 210 ns.

  • Effective memory access time (EAT) = (hit ratio) * (hit time) + (miss ratio) * (miss time) = 0.7 * 120 ns + 0.3 * 210 ns = 84 ns + 63 ns = 147 ns.

Effective memory access time = 147 ns.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor