Bird
Raised Fist0

Given a system with TLB hit ratio h, memory access time m, and TLB lookup time t, which formula correctly represents the Effective Access Time (EAT)?

medium🪤 Complexity Trap Q5 of Q15
Operating Systems - TLB - Translation Lookaside Buffer & Effective Access Time
Given a system with TLB hit ratio h, memory access time m, and TLB lookup time t, which formula correctly represents the Effective Access Time (EAT)?
AEAT = h * (m) + (1 - h) * (2 * m + t)
BEAT = h * (t + m) + (1 - h) * (t + 2 * m)
CEAT = h * (t + m) + (1 - h) * (2 * m)
DEAT = h * m + (1 - h) * (t + m)
Step-by-Step Solution
Solution:
  1. Step 1: Define components

    h = TLB hit ratio, t = TLB lookup time, m = memory access time.
  2. Step 2: Calculate EAT

    On hit: time = TLB lookup + memory access = t + m.
    On miss: time = TLB lookup + page table walk (memory access twice) = t + 2 * m.
    EAT = h * (t + m) + (1 - h) * (t + 2 * m).
  3. Step 3: Evaluate options

    A: Incorrect -- TLB lookup time t is misplaced.
    B: Incorrect -- misses second memory access.
    C: Incorrect -- misses TLB lookup time on miss.
    D: Correct -- matches the standard formula.
  4. Final Answer:

    Option B -> Option B
  5. Quick Check:

    Miss includes extra memory access and TLB lookup time [OK]
Quick Trick: Miss cost includes TLB lookup + 2 memory accesses [OK]
Common Mistakes:
MISTAKES
  • Ignoring TLB lookup time on miss
  • Forgetting second memory access on miss
  • Misplacing TLB lookup time in formula
Trap Explanation:
PITFALL
  • Candidates often omit TLB lookup time or second memory access in miss cost.
Interviewer Note:
CONTEXT
  • Tests precise understanding of EAT formula components and trade-offs.
Master "TLB - Translation Lookaside Buffer & Effective Access Time" in Operating Systems

2 interactive learning modes - each teaches the same concept differently

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Operating Systems Quizzes