What is L3 cache, and how much faster is it than RAM?

By TechCompare · Updated · How we check

L3 cache is shared between cores and sits behind their small L1 and L2 caches and in front of main memory. It answers in 10-15 ns, while RAM takes 50-80 ns, so data that spills out of L3 costs about 5x as long per access.

Calculator

Memory & Storage Throughput Visualizer

Data to transfer: 500 GB

L1 Cache2,000,000 MB/s
L3 Cache500,000 MB/s
DDR5 RAM (1 channel)48,000 MB/s
DDR4 RAM (1 channel)25,600 MB/s
NVMe Gen 514,000 MB/s
NVMe Gen 47,000 MB/s
NVMe Gen 33,500 MB/s
SATA SSD550 MB/s
HDD160 MB/s

L3 is also called the last level cache, or LLC, because it's the last stop before a request goes out to RAM. Each core checks its own small L1 and L2 caches first. A miss in both goes to L3, which is far larger. It still answers in 10-15 ns. Only when L3 misses too does the CPU wait on DDR5 RAM, at 50-80 ns. That jump is roughly 5x in latency, and the next step down, from RAM to storage, is much bigger.

How big is L3 cache?

It depends on the chip, and a maker's spec page gives one total per processor. These are the L3 totals on a few recent chips:

So a desktop chip lands between 36 MB and 192 MB here, and server chips with many cores reach hundreds of megabytes. The EPYC 9684X passes 1 GB of L3 in a single socket. Intel's spec pages list this memory as Intel Smart Cache. Its Core processor datasheet describes Smart Cache as a shared last level cache that may also be called a 3rd level cache.

Per chiplet, the numbers are smaller. AMD builds its chips from core chiplets, and AMD's EPYC 9005 whitepaper says a Zen 5 core complex has up to eight cores sharing a 32 MB L3 cache, with one complex per chiplet. The Ryzen 9 9950X lists three dies in its package, which is two core chiplets of 32 MB each plus the I/O die. That's how it gets 64 MB. Intel's spec pages give only a total per chip, so this page doesn't list a per chiplet size for Intel.

What is 3D V-Cache?

3D V-Cache is AMD's way of adding L3 without making the chiplet wider. As AMD's 3D V-Cache page describes it, a 64 MB cache die is bonded to the core chiplet with a direct copper-to-copper connection. In the second generation that die sits below the cores, which gives the cores direct access to the cooler.

The stacked die is more L3, not a new cache level. The Ryzen 7 9800X3D has one core chiplet with its own 32 MB, plus the stacked 64 MB, which adds up to the 96 MB on its spec page. The Ryzen 9 9950X3D2 Dual Edition stacks a die on each of its two chiplets, which adds up to its 192 MB.

Games keep large, hot working sets such as textures and world state. When more of that data fits in L3, fewer reads go out to RAM, where each one takes 50-80 ns instead of 10-15 ns. That's why AMD sells its Ryzen X3D chips as gaming processors. A program that rarely misses L3 has little to gain from the extra cache.

Hardware tier
CPU Cache
On-die processor cache levels
Topic focus
L3 cache vs RAM
l3-vs-ram

How this is calculated

A database index scan that fits in L3 runs 5x faster than one that spills to RAM. A game engine's texture streaming slows down once the working set no longer fits in L3. Server CPUs (AMD EPYC, Intel Xeon) ship with large L3 caches, up to 504 MB on the Xeon 6980P and 1152 MB on the EPYC 9684X with 3D V-Cache, because many workloads are limited by how much data fits in L3.

The L3-to-RAM gap is a physics problem: capacitance on the memory bus limits how fast signals can travel between the CPU die and the DIMM slots. A larger L3 keeps more reads on the chip and off that bus.

Verdict

Size your working set to fit in L3 whenever you can. Spilling to RAM turns a 10-15 ns access into 50-80 ns, a 5x step. That's why the biggest server chips carry hundreds of megabytes of L3, and more than 1 GB with stacked cache. It's also why AMD adds stacked cache to its X3D gaming chips.

More Latency scenarios

Frequently asked questions

What is L3 cache?
The last and largest cache on a CPU before main memory. Each core has its own small L1 and L2, and L3 is the shared pool behind them, so a miss in both goes to L3 before it goes to RAM. It answers in 10-15 ns. Most chips call it L3 or LLC, short for last level cache, and Intel lists its version as Smart Cache.
How much slower is RAM than L3 cache?
About 5x. L3 sits around 10-15 ns per access while DDR5 RAM answers in 50-80 ns. The L3-to-RAM step is much larger than the L1-to-L2 step, but the modeled RAM-to-NVMe step is larger still at roughly 1,000x. Keeping a working set inside L3 versus spilling to RAM is the difference between fast and visibly slow.
How big is L3 cache?
It depends on the chip. Among the recent chips in the sizes section above, it runs from 36 MB on the 24-core Intel Core Ultra 9 285K to 1152 MB on AMD's 96-core EPYC 9684X, which is over 1 GB with stacked cache. Each chip there links to its spec page.
Why do Ryzen X3D chips with 3D V-Cache do well in games?
They carry much more L3, so more of a game's hot data stays on the chip instead of going out to RAM. The 3D V-Cache section above shows how a stacked 64 MB die adds to each chiplet's own 32 MB.
Why can't CPUs just have more L1 instead of an L3?
Physics and cost. Faster cache memory takes more die area per byte and draws more power, so a large L1 would be both expensive and slower. The hierarchy exists to fake 'large and fast' with 'small and fast on top of large and slow'. L1 gets the recent bytes, L2 catches its evictions, and L3 pools the rest across cores.