lec15_Claculation_Improving_Cache_Performance

lec15_Claculation_Improving_Cache_Performance - Lecture 15...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Lecture 15 Calculating and Improving Cache Perfomance Prof. H. Shaban Computer Architecture CSC 205
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Cache Performance Measures Hit rate : fraction found in the cache So high that we usually talk about Miss rate = 1 - Hit Rate Hit time : time to access the cache Miss penalty : time to replace a block from lower level, including time to replace in CPU access time : time to acccess lower level transfer time : time to transfer block Average memory-access time (AMAT) = Hit time + Miss rate x Miss penalty (ns or clocks)
Background image of page 2
Calculating AMAT If a direct mapped cache has a hit rate of 95%, a hit time of 4 ns, and a miss penalty of 100 ns, what is the AMAT? AMAT = Hit time + Miss rate x Miss penalty = 4 + 0.05 x 100 = 9 ns If replacing the cache with a 2-way set associative increases the hit rate to 97%, but increases the hit time to 5 ns, what is the new AMAT? AMAT = Hit time + Miss rate x Miss penalty = 5 + 0.03 x 100 = 8 ns
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Split vs. Unified Cache Unified cache (mixed cache): Data and instructions are stored together (von Neuman architecture) Split cache: Data and instructions are stored separately (Harvard architecture) Why do instructions caches have a lower miss ratio? Size Instruction Cache Data Cache Unified Cache 1 KB 3.06% 24.61% 13.34% 2 KB 2.26% 20.57% 9.78% 4 KB 1.78% 15.94% 7.24% 8 KB 1.10% 10.19% 4.57% 16 KB 0.64% 6.47% 2.87% 32 KB 0.39% 4.82% 1.99% 64 KB 0.15% 3.77% 1.35% 128 KB 0.02% 2.88% 0.95%
Background image of page 4
Example: Split vs. Unified Cache Which has the lower average memeory access time? Split cache : 16 KB instructions + 16 KB data
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/12/2009 for the course CS 205 taught by Professor H.shaban during the Spring '07 term at Northern Virginia.

Page1 / 18

lec15_Claculation_Improving_Cache_Performance - Lecture 15...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online