2-level cache memory 를 갖는 어떤 프로세서의 정보가 아래와 같다고 가정하자.
• •
• •
Clock frequency = 8 GHz
L-1 cache
Access time: 32 cycles
Miss rate: 12.5%
L-2 cache
• Access time: L-1 cache 의 10 배
Main memory
• Access time: L-2 cache 의 10 배
(1) AMAT 을 15 ns 이내로 만드는 것을 목표로 할 때, Global miss rate to main memory 는 몇 % 이하가 되어야 하는가? (4 points)
• 4+0.12540+x400=<15→1.5%이하
Assistant
Given the following information about a processor with a 2-level cache memory system:
Clock frequency = 8 GHz
For L-1 cache:
Access time: 32 cycles
Miss rate: 12.5%
For L-2 cache:
Access time: 10 times the access time of L-1 cache
For main memory:
Access time: 10 times the access time of L-2 cache
( \text{AMAT (Average Memory Access Time)} ) is calculated as:
[ \text{AMAT} = \text{L1 Hit Time} + \text{L1 Miss Rate} \times (\text{L2 Hit Time} + \text{L2 Miss Rate} \times \text{Main Memory Time}) ]
We need to find the global miss rate to main memory that makes AMAT ≤ 15 ns.
Next, calculate the L-2 cache access time in nanoseconds:
[ \text{L2_Time_ns} = 10 \times \text{L1_Time_ns} = 10 \times 4 \text{ ns} = 40 \text{ ns} ]
Then, calculate the main memory access time in nanoseconds:
[ \text{Mem_Time_ns} = 10 \times \text{L2_Time_ns} = 10 \times 40 \text{ ns} = 400 \text{ ns} ]
We need the total AMAT to be ≤ 15 ns:
[
\text{AMAT} = \text{L1_Time_ns} + \text{L1 Miss Rate} \times (\text{L2_Time_ns} + \text{L2 Miss Rate} \times \text{Mem_Time_ns}) \leq 15 \text{ ns}
]
So, the global miss rate to main memory should be ( \leq 12% ) or ( \leq 0.12 ) to achieve an AMAT of 15 ns or less. This translates to a miss rate from L2 to main memory of ( \leq 12% ).