Memory2 Flashcards
- What is cache locality?
- Reuse of nearby or recent data
- What is temporal locality?
- Reusing recently accessed data
- What is spatial locality?
- Accessing nearby memory locations
- What is cache hit?
- Data found in cache
- What is cache miss?
- Data not found in cache
- What is cache hit ratio?
- Cache hits divided by total accesses
- What is cache miss penalty?
- Extra time after a cache miss
- What is L1 cache?
- Smallest and fastest CPU cache
- What is L2 cache?
- Middle-level CPU cache
- What is L3 cache?
- Larger shared CPU cache
- What is write-through cache?
- Writes update cache and memory
- What is write-back cache?
- Writes update memory later
- What is cache coherence?
- Keeping shared cache data consistent
- What is a dirty bit?
- Marks modified cache block
- What is a cache line?
- Fixed-size block in cache
- What is direct-mapped cache?
- Each block maps to one cache line
- What is set-associative cache?
- Block maps to one cache set
- What is fully associative cache?
- Block can go anywhere
- What is page fault?
- Needed page not in RAM
- What is paging?
- Dividing memory into fixed pages
- What is segmentation?
- Dividing memory into logical segments
- What is virtual address?
- Address used by a program
- What is physical address?
- Actual RAM address
- What is MMU?
- Memory Management Unit
- What does MMU do?
- Translates virtual to physical address
- What is TLB?
- Translation Lookaside Buffer
- What does TLB store?
- Recent address translations
- What is thrashing?
- Excessive page swapping
- What is memory fragmentation?
- Wasted unusable memory space
- What is garbage collection?
- Automatic unused memory cleanup