Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
474 views
in Computer by (85.4k points)
closed by

In a two-level cache system, the access times of L1 and L2 caches are 1 and 8 clock cycles, respectively. The miss penalty from the L2 cache to main memory is 18 clock cycles. The miss rate of L1 cache is twice that of L2. The average memory access time (AMAT) of this cache system is 2 cycle. The miss rates of L1 and L­2 respectively are:


1. 0.111 and 0.056
2. 0.056 and 0.111
3. 0.0892 and 0.1784
4. 0.1784 and 0.0892

1 Answer

0 votes
by (88.5k points)
selected by
 
Best answer
Correct Answer - Option 1 : 0.111 and 0.056

Data:

Access time of L1 = T1 = 1 clock cycle

Access time of L2 = T2 = 8 clock cycle

L2 miss penalty = T3 = 18 clock cycle

L1 miss rate = 2 × L2 miss rate

Average memory access time = AMAT = 2 clock cycle

Let, L2 miss rate = a

∴ L1 miss rate = 2a

Formula:

 AMAT = (T1 + 2a × T2 + 2a × a × T3)

Calculation:

2 = 1 + 2a × 8 + 2a × a × 18

2 = 1 + 16a + 36a2

36a2 + 16a -1 = 0

36a2 + 18a – 2a + 1 = 0

18a (2a + 1) – 1(2a + 1) = 0

\(a = \frac{{ - 1}}{2},\frac{1}{{18}}\)

So, miss rate of L2 = 0.056 and Miss rate of L1 = 0.111

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...