目录 ← 首页
CS61C

Summary

And in Conclusion\dots

Replacement policies:

  • For direct-mapped caches, each block of memory maps to one specific block in our cache. On a cache miss, if there is data present in that cache block, then we must evict the block to make room for our new data.
  • For non-direct-mapped caches, we can choose one of multiple cache blocks to place our new data. When our cache is full, we will have to decide which block to evict to make space for the new data. Block Replacement policies decide which block should be replaced.

Textbook Readings

P&H 5.1-5.4, 5.8, 5.9, 5.13

Additional References

Amazing Illustrations by Ketrina (Yim) Thompson: CS Illustrated Cache Handouts

Exercises

Check your knowledge!

Short Exercises