【发布时间】:2012-04-29 03:49:42
【问题描述】:
我有点卡在两个问题上。我将包括问题的相关细节,任何指导将不胜感激。如果可以的话,请给出解释。
假设您有以下关于处理器的统计信息,该处理器具有几种不同的内存层次结构选择。
Base CPI = 1.5
Processor Speed = 2 GHZ
Main Memory Access Time = 100ns
L1 miss rate per instruction = 7%
L2 direct mapped access = 12 cycles
Global miss rate with L2 direct mapped = 3.5%
L2 8-way set associative access = 28 cycles
Global miss rate with L2 8-way set associative access = 1.5%
注意:全局未命中率是在所有级别的缓存中未命中的引用百分比(因此必须访问主内存)
如果二级缓存可用且直接映射,则计算总 CPI。
如果 L2 可用且为 8 路组关联,则计算总 CPI。
【问题讨论】:
-
相关:我们使用多级缓存的真实世界 CPU 设计原因:Why is the size of L1 cache smaller than that of the L2 cache in most of the processors?
标签: cpu computer-science cpu-architecture cpu-cache