Ask Question
24 March, 01:06

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?

+4
Answers (1)
  1. 24 March, 01:28
    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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers