Cache Impact on Performance
-
Consider only the impact of an instruction cache.
Assume the following:
-
miss penalty is 10 cycles
-
miss ratio is 0.10
-
The number of cycles disregarding pipeline and data cache stalls
would be:
-
inst_cnt*(hit_time+miss_rate*miss_penalty)
-
inst_cnt*(1+0.10*10)
-
inst_cnt*2.0
-
With a miss ratio of 0.05, the number of cycles would be:
-
inst_cnt*(1+0.05*10)
-
inst_cnt*1.5
|