Ask Question
10 November, 08:50

A system has a level 1 cache and a level 2 cache. The hit rate of the level 1 cache is 95%, and the subsequent hit rate of the level 2 cache is 80%. An access to level 1 cache requires one cycle, and access to level 2 cache requires 3 cycles, and an access to main memory requires 80 cycles. What is the average access time in clock cycles?

+5
Answers (1)
  1. 10 November, 10:51
    0
    Step-by-step explanation:

    H1 = Hit rate of level 1 cache = 0.95

    T1 = Access time for level 1 cache = 1

    H2 = Hit rate of level 2 cache = 0.8

    T2 = Access time for level 2 cache = 3

    Hm = Hit rate of Main Memory = 1

    Tm = Access time for Main Memory = 80

    Average access time = [H1*T1]+[ (1-H1) * H2*T2]+[ (1-H1) (1-H2) * Hm*Tm]

    = [0.95*1]+[1-0.95]*0.8*3]+[ (1-0.95) (1-0.8) * 1*80]

    = [0.95+0.05*0.8*3]+[0.05*0.2*1.80]

    = 2.4+0.018 = 2.418

    Average access time = 2.418
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “A system has a level 1 cache and a level 2 cache. The hit rate of the level 1 cache is 95%, and the subsequent hit rate of the level 2 ...” in 📘 Mathematics if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers