Key Concepts & Self-Assessment18 Key Facts
Review key Cache Memory: Multi-Level CPU Hierarchy, SRAM Architecture & Cache Locality exam facts and rate your mastery to track revision.
Progress: 0/18 Rated 0 Mastered 0 Review Later
#1
Cache memory is a small, high-speed SRAM memory integrated into the CPU to accelerate data access.
#2
The primary purpose of cache memory is to bridge the performance speed gap between fast CPU cores and slower main DRAM memory.
#3
Cache memory is constructed from Static RAM (SRAM), which uses 6-transistor flip-flop cells and requires no periodic refreshing.
#4
Main system memory is constructed from capacitor-based DRAM, which uses a 1-transistor, 1-capacitor cell requiring constant electrical refreshing.
#5
Cache effectiveness is governed by the Principle of Locality, comprising Temporal Locality and Spatial Locality.
#6
Temporal locality states that memory addresses accessed recently are likely to be accessed again in the near future (e.g., variables in loops).
#7
Spatial locality states that memory locations adjacent to recently accessed addresses are likely to be accessed soon (e.g., sequential arrays).
#8
A 'cache hit' occurs when the requested memory data is successfully found in cache, allowing instant single-cycle execution.
#9
A 'cache miss' occurs when data is not in cache, forcing the CPU to stall while data is retrieved from slower main memory.
#10
Data is transferred between main memory and cache in fixed-size blocks called 'cache lines', which are standardly 64 bytes wide.
#11
Modern CPUs deploy a 3-level hierarchy: L1 (fastest, private), L2 (larger, private), and L3 (largest, shared across cores).
#12
L1 cache operates at CPU clock speeds with latencies of 1 to 4 cycles, while accessing main DRAM requires 150 to 250 cycles.
#13
L1 cache is split into dedicated L1 Instruction Cache (L1i) and L1 Data Cache (L1d) to permit simultaneous instruction and operand fetching.
#14
Set-associative cache placement balances hardware search complexity with conflict-miss reduction (e.g., 8-way or 16-way set associativity).
#15
Under a 'write-through' policy, data is written to cache and main memory simultaneously; under 'write-back', memory is updated only upon line eviction.
#16
Cache replacement algorithms like Least Recently Used (LRU) decide which cache line to discard when the cache becomes full.
#17
Cache coherency protocols (such as MESI: Modified, Exclusive, Shared, Invalid) ensure parallel multi-core processors see consistent memory states.
#18
3D vertical cache stacking (such as AMD 3D V-Cache) bonds additional SRAM dies atop processor silicon to massively expand L3 capacity.
Subject Specialist Commentary
Analytical perspective & practical exam advice from the Master10 academic board
Cache memory is a small, ultra-fast memory unit integrated directly onto the processor die to bridge the speed disparity between rapid CPU cores and slower main DRAM. Built from Static RAM using six-transistor circuits, cache requires no electrical refreshing. Its operation relies on the principle of locality, anticipating that instructions and data accessed recently, or stored in adjacent memory addresses, will be required again almost immediately by active computer processes.
In computer knowledge tests for banking and SSC exams, questions frequently compare memory hierarchy levels. Do not confuse cache SRAM with main DRAM; SRAM is faster and does not require periodic capacitive refreshing. Remember the hierarchy: L1 cache is the fastest private cache, while L3 is larger and shared across cores. Remember the phrase "Spatial means Space, Temporal means Time" to distinguish between accessing neighboring sequential data and reusing recently referenced variables.
Related Knowledge Topics to Discover
Computer & Digital Awareness
Microprocessors vs Microcontrollers: Architectural Differences, Harvard vs Von Neumann & Embedded Systems
Explore Topic
Computer & Digital Awareness
Operating Systems: Kernel Architecture, Process Scheduling & Resource Management
Explore Topic
Cybersecurity & Digital Safety
What Is Two-Factor Authentication and How Does It Protect Your Account?
Explore Topic
Looking for more GK practice?
Explore 52,789+ questions across 65 General Knowledge categories.