General Caching Concepts
• Program needs object d, which is stored in some block b.
• Cache hit
– Program finds b in the cache at level k.
E.g., block 14.
• Cache miss
- b is not at level k, so level k cache must fetch it from level k+1. E.g., block 12.
- If level k cache is full, then some current block must be replaced (evicted). Which one is the “victim”?
• Placement policy: where can the new block go? E.g., b mod 4
• Replacement policy: which block should be evicted?