CPU-Memory Speed Gap: The Core Reason for Pointer Chasing's Impact

The ever-widening disparity between CPU clock speeds and DRAM latency, a trend accelerating since the 1980s, is the fundamental reason pointer chasing becomes a killer, forcing the CPU to stall for hundreds of cycles during cache misses.

The top 3

  1. Cache vs. RAM Latency: The Staggering Gap: Accessing data from the fastest L1 cache takes merely 1-3 CPU cycles (~1 nanosecond), while fetching from main memory (RAM) can cost 60-100 cycles, or even over 200 cycles for a cache miss, making it 50 to 100 times slower.
  2. The Memory Wall: A Decades-Long Widening Gap: The CPU-memory speed gap, known as the 'memory wall,' has widened significantly since the 1990s; CPU speeds increased by up to 55-60% annually until the early 2000s, while DRAM access times improved by only 3-10% per year, creating an almost two orders of magnitude difference today.
  3. Bridging the Gap: Key Hardware Innovations: Beyond multi-level caches (L1, L2, L3), architectural innovations like out-of-order execution, advanced memory controllers with reordering, and emerging technologies such as Compute Express Link (CXL) attached memory, Processing-in-Memory (PIM), and Compute-in-Memory (CiM) architectures aim to mitigate the CPU-memory speed disparity.

Sources

Open the full topic