Abstract
- A small-sized type of volatile computer memory that provides high-speed data access to a CPU
Terminologies
Cache Line
- Ranging from 32 to 128 Byte
- When the CPU fetches data into the cache, it brings in entire cache lines rather than individual bytes
Cache Hit
- When CPU Cacheneeded is in CPU Cache
- Takes about 2 clock cycles
Cache Miss
- When the CPU requests data that is not found in the CPU Cache
- It requires fetching the data from the slower Main Memory, incurring a higher access time compared to a Cache Hit
Cache Locality
-
Also known as Locality of Reference
-
Cache Line is transferred into CPU Cache when we obtain Instruction or Data from Main Memory
-
If we are retrieving the same data or surrounding data. For the CPU, it instead of going to Main Memory to retrieve. We can obtain directly from the CPU Cache which is much faster
-
Process (进程) accesses only a small portion of the Memory Address space within a small time interval