1 | As shown above, caches are familiar in the real world -- here to support movement of food from manufacturer to your larder. It would be inconvenient to drive to the store for every item needed -- it is more convenient to cache items in your larder |
2 | Caches store instructions and data -- often in separate caches |
3 | Cache have a total size but also the cache line size which is minimum unit transferred into cache -- this due to spatial locality is often quite big. |
4 | They also have a "write-back" strategy to define when information is written back from cache into primary memory |
5 | Factory |
6 | Level 3 Middleman Warehouse |
7 | Level 2 Middleman Warehouse |
8 | Local Supermarket |
9 | Your Larder |
10 | CPU -- The Frying pan |