What is Spatial locality?
The tendency to access addresses near one just accessed, as when reading an array in order. It is why caches fetch data a whole cache line at a time.
Field: Memory Hierarchy
The tendency to access addresses near one just accessed, as when reading an array in order. It is why caches fetch data a whole cache line at a time.
Field: Memory Hierarchy
Caches exploit temporal locality (reusing the same data soon) and spatial locality (using nearby addresses next), with L1 reachable in a few cycles and even L3 in tens of cycles.
What is the main purpose of cache memory?Neighboring addresses are often used together (spatial locality), so fetching them as a block is efficient, and it matches DRAM bursts (8 transfers × 8 bytes = 64 bytes in DDR4).
What is the typical size of a cache line (cache block) in m…Reading an array from start to end is an example of spatial locality, using nearby addresses in succession, which is a different property.
Which is the best example of temporal locality?Temporal locality Cache memory Cache line False sharing Miss penalty Average memory access time Capacity miss Compulsory miss Conflict miss Direct-mapped cache