Registers vs. SSD: Millions of Times Slower Data Access
Accessing data directly from CPU registers takes a single nanosecond, whereas retrieving it from a solid-state drive (SSD) can take tens of microseconds, a colossal difference of tens of thousands to millions of times in access speed.
The top 3
- CPU Stalls: The Million-Cycle Cost of Disk Access: Accessing data from an SSD can incur a latency equivalent to hundreds of thousands or even millions of CPU clock cycles, causing the processor to stall and wait, significantly impacting application performance.
- Memory Hierarchy: Nanoseconds to Milliseconds Latency Gaps: Data access times vary astronomically across the memory hierarchy: registers take ~0.1 nanoseconds, L1 cache ~1 nanosecond, main memory (DRAM) ~50-100 nanoseconds, and SSDs ~0.1 milliseconds (100,000 nanoseconds), highlighting vast performance differences.
- Cache Miss Penalty: Underutilizing CPU Potential: A cache miss occurs when requested data isn't in faster cache memory, forcing the system to retrieve it from slower main memory or disk. This delay, known as a cache miss penalty, causes the CPU to stall, leading to underutilization and significant performance bottlenecks.
Sources
Open the full topic