Skip to content
Official PYQ · 2015

GATE CS 2015 Set 2 Q24 — Memory Hierarchy: Cache, Main Memory and Secondary Storage

Explain with AI
Assume that for a certain processor, a read request takes 50 nanoseconds50\:\text{nanoseconds} on a cache miss and 5 nanoseconds5\:\text{nanoseconds} on a cache hit. Suppose while running a program, it was observed that 80%80\% of the processor's read requests result in a cache hit. The average read access time in nanoseconds is ______.
View worked solution

Answer: 14

To find the average read access time (TavgT_{\text{avg}}), we use the weighted average of the cache hit and cache miss times based on their respective probabilities.

Given data:

  • Cache hit time (ThitT_{\text{hit}}) = 5 ns5\text{ ns}
  • Cache miss time (TmissT_{\text{miss}}) = 50 ns50\text{ ns}
  • Hit ratio (HH) = 80%=0.880\% = 0.8
  • Miss ratio (MM) = 1−H=20%=0.21 - H = 20\% = 0.2

Formula:

Tavg=(H×Thit)+(M×Tmiss)T_{\text{avg}} = (H \times T_{\text{hit}}) + (M \times T_{\text{miss}})

Calculation:

Tavg=(0.8×5 ns)+(0.2×50 ns)T_{\text{avg}} = (0.8 \times 5\text{ ns}) + (0.2 \times 50\text{ ns})Tavg=4 ns+10 ns=14 nsT_{\text{avg}} = 4\text{ ns} + 10\text{ ns} = 14\text{ ns}

Thus, the average read access time is 14 nanoseconds.

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

Published
Report a correction
Keep exploringMore Memory Hierarchy: Cache, Main Memory and Secondary Storage questions