cachememory
_cachememory_ is a small, high-speed storage that holds copies of data from frequently used main memory locations to reduce the processor’s average data access time. It leverages temporal and spatial locality to boost performance by keeping recently used values close to the CPU.
Caches are organized in several levels. L1 caches are the smallest and fastest, located on or near
When the CPU requests data, the cache is checked for a matching block. If present, a cache
Caches can be direct-mapped, fully associative, or set-associative. Each cache line stores a data block plus
Write policy choices affect performance and correctness. Common policies include write-through (writes go to memory immediately)
The effectiveness of a cache is described by hit rate, hit time, and miss penalty. Average memory