L1, L2, L3: The Cache Hierarchy's Speed vs. Size Trade-off

CPU cache is tiered, with L1 being the fastest and smallest (e.g., 16KB-128KB, 1-2 nanoseconds access), L2 larger and slightly slower (e.g., 256KB-2MB, 4-10 nanoseconds), and L3 the largest yet slowest (e.g., 8MB-96MB+, 15-40 nanoseconds) but still significantly faster than main memory. L1 and L2 are typically private per core, while L3 is often shared across all cores.

Sources

Open the full topic