1/35
Comprehensive vocabulary flashcards covering memory hierarchy concepts, cache structures, memory technologies, cache miss models, formulas, and performance optimizations.
Locality
The architectural principle that programs access a relatively small portion of their address space at any instance of time.
Temporal Locality
The principle stating that if an item was referenced, it will probably be referenced again soon.
Spatial Locality
The principle stating that if an item is referenced, items with close addresses tend to be referenced soon.
Memory Hierarchy
A multi-level storage structure where, as the distance from the processor increases, the size of the memories and the access time both increase.

Block (or Line)
The minimum unit of information that can be either present or not present in a cache.

Hit Rate
The fraction of memory accesses found in a specified level of the memory hierarchy.
Miss Rate
The fraction of memory accesses not found in a specified level of the memory hierarchy, calculated as 1−Hit rate.
Hit Time
The time required to access a level of the memory hierarchy, including the time needed to determine whether the access is a hit or miss.
Miss Penalty
The time required to fetch a block into a level of the memory hierarchy from the lower level, including the time to access the block, transmit it between levels, insert it into the missing level, and pass it to the requester.
SRAM (Static Random Access Memory)
Integrated circuits configured as memory arrays with single access ports for read or write, placed closest to the processor (caches) with typical access times of 0.5–2.5ns and costing approximately 500\text{--}\\1000 per GiB in 2020.
DRAM (Dynamic Random Access Memory)
Main memory technology where values kept in a cell are stored as charge in a capacitor and accessed via transistors, requiring periodic refreshes (re-writing), with typical access times of 50–70ns and costing approximately 3\text{--}\\6 per GiB in 2020.
Flash Semiconductor Memory
A type of electrically erasable programmable read-only memory (EEPROM) with typical access times of 5,000–50,000ns and costing approximately 0.06\text{--}\\0.12 per GiB in 2020.
Magnetic Disk
A magnetic hard disk consisting of platters that rotate on a spindle at 5,400 to 15,000 revolutions per minute, with access times of 5,000,000–20,000,000ns and costing approximately 0.01\text{--}\\0.02 per GiB in 2020.
Track
One of thousands of concentric circles that make up the surface of a magnetic disk platter.
Sector
One of the segments that make up a track on a magnetic disk; it represents the smallest amount of information that is read or written on a disk.
Seek
The mechanical process of positioning a read/write head over the proper track on a magnetic disk platter.
Rotational Latency (Rotational Delay)
The time required for the desired sector of a disk to rotate under the read/write head, usually assumed to be half the rotation time.
Tag
An address field stored alongside each cache block that indicates which memory address the cached block corresponds to.
Set Associative Cache
A cache structure where blocks are grouped into sets, and any block mapped to a set can be placed anywhere within that set.
n-Way Set Associative Cache
A cache placement scheme where each set consists of exactly n block locations.
Direct-Mapped Cache
A cache organization that has only one block per set, meaning each main memory block maps to exactly one predetermined location in the cache.
Fully Associative Cache
A cache organization that contains only one single set, allowing memory blocks to be placed anywhere in the cache.
Write-Through Cache
A cache writing scheme that updates the item in the cache and simultaneously writes through to update main memory.
Write-Back Cache
A cache writing scheme that only updates the copy of data in the cache, deferring updates to main memory until the block is replaced.
Write Buffer
A hardware buffer used by both write-through and write-back caches that holds data waiting to be written to memory, allowing the processor to proceed immediately.
Compulsory Miss
A cache miss that occurs on the first access to a block, which occurs even if the cache were infinite in size.
Capacity Miss
A cache miss that occurs when the cache cannot contain all the blocks needed during the execution of a program.
Conflict Miss
A cache miss occurring in direct-mapped or set-associative caches when multiple blocks map to the same set and discard an existing block that is later retrieved.
Coherency Miss
The special fourth category of cache misses caused by cache flushes or invalidations required to keep multiple caches coherent in a multiprocessor system.
Misses per Instruction (MPI)
A cache performance metric calculated as: InstructionMisses=Miss rate×InstructionMemory accesses.
Average Memory Access Time (AMAT)
A metric defined as: AMAT=Hit time+(Miss rate×Miss penalty).
Virtual Index / Physical Tag Method
A cache optimization that uses the page offset (identical in virtual and physical addresses) to index the cache, removing Translation Lookaside Buffer (TLB) access from the critical path to reduce hit time.
Offset Bits
The lower portion of a physical memory address calculated as: Offset Bits=log2(Block size in bytes).
Index Bits
The portion of a physical memory address calculated as: Index Bits=log2(Number of cache blocks).
Tag Bits
The high-order portion of a physical address calculated as: Tag Bits=B−(Index Bits+Offset Bits), where B is the total number of physical address bits.
Direct Mapping Cache Index Formula
The formula used to determine a block's cache location: Cache Index=A(modTotal cache blocks), where A is the main memory block address.