Given parameters:
L1 cache access time, tL1=1 cycle
L2 cache access time, tL2=8 cycles
Miss penalty from L2 to main memory, PL2=18 cycles
AMAT=2 cycles
Miss rate relation: m1=2m2⟹m2=2m1
The formula for Average Memory Access Time (AMAT) for a two-level hierarchical cache system is:
AMAT=tL1+m1×(tL2+m2×PL2) Substitute the given values:
2=1+m1×(8+2m1×18) 1=m1(8+9m1) 9m12+8m1−1=0 Factorize the quadratic equation:
(9m1−1)(m1+1)=0 Since a miss rate must be positive (m1>0):
m1=91≈0.111 m2=2m1=181≈0.056 Thus, the miss rates of L1 and L2 are 0.111 and 0.056 respectively, matching Option (A).