CPU
Cache:提高CPU数据输入输出速率
内存
外存
考点:访问速度最快的,寄存器优先,其次Cache
例:h代表对Cache的访问命中率为95%,t1表示Cache的周期时间为1ns,t2表示内存的周期1000ns。使用Cache+内存求平均周期
答:(1-h) 称为失败率
t1*h+(1-h)*t2 = 1ns*95%+(1-95%)*1000 = 50.95ns
CPU
Cache:提高CPU数据输入输出速率
内存
外存
考点:访问速度最快的,寄存器优先,其次Cache
例:h代表对Cache的访问命中率为95%,t1表示Cache的周期时间为1ns,t2表示内存的周期1000ns。使用Cache+内存求平均周期
答:(1-h) 称为失败率
t1*h+(1-h)*t2 = 1ns*95%+(1-95%)*1000 = 50.95ns