User Agents

Web browsers and everyday web tech, explained

What Is L3 Cache? Definition & How It Works

· 5 min read · Cookies and Cache

In this article
  1. Background: Why Caches Exist
  2. How L3 Cache Works
  3. L3 Cache vs. L1 and L2
  4. How to Choose a CPU Based on L3 Cache
  5. Common Problems and Misconceptions
  6. Cost and Manufacturing
  7. Alternatives and Future Trends
  8. Frequently Asked Questions

L3 cache (Level 3 cache) is a pool of memory built into a computer processor (CPU) that stores frequently used data to speed up processing. It sits between the faster L1 and L2 caches and the much slower main memory (RAM). When the CPU needs data, it checks L1, then L2, then L3; if the data is in L3, it avoids a trip to RAM, which saves time and power. L3 cache is shared across all CPU cores in a processor, unlike L1 and L2 which are usually per-core. Its size typically ranges from 4 MB to 64 MB on modern desktop and server chips, and it is made of SRAM (static random-access memory), which is faster but more expensive than the DRAM used for main memory.

Background: Why Caches Exist

Processors run at billions of cycles per second, but RAM cannot deliver data that fast. If the CPU had to fetch every instruction from RAM, it would stall for dozens of cycles waiting. Caches solve this by storing copies of recently used data closer to the cores. The cache hierarchy is a trade-off: smaller caches are faster but hold less; larger caches hold more but are slower. L1 is the smallest and fastest (typically 32–64 KB per core), L2 is larger (256 KB–1 MB per core), and L3 is the largest but slowest of the three. Even L3 is many times faster than RAM, so a hit there still saves significant time.

How L3 Cache Works

When the CPU requests data, the cache controller follows a lookup order: L1, then L2, then L3, then RAM. If the data is found in L3, it is copied to L2 and L1 for future use. If not, it is fetched from RAM and stored in all three levels. L3 is typically a shared cache: all cores on a processor can access it, which lets one core use data that another core already loaded. This is especially useful for multi-threaded workloads where threads share data. The cache is divided into slices or sets, and a hash function decides which slice holds a given address. The replacement policy (often a variant of least-recently-used) decides what to evict when the cache is full.

L3 Cache vs. L1 and L2

The key differences are size, speed, and sharing. L1 is per-core, extremely fast (around 1 ns access time), and small. L2 is also per-core (or shared by two cores in some designs) and slightly slower. L3 is shared by all cores and is the largest but slowest cache level. For example, an Intel Core i9-13900K has 32 KB L1 and 2 MB L2 per core, but 36 MB of shared L3. In contrast, an AMD Ryzen 9 7950X has 64 KB L1, 1 MB L2 per core, and 64 MB of L3. The larger L3 on AMD chips helps with gaming and productivity because more data can stay on-chip.

How to Choose a CPU Based on L3 Cache

More L3 cache generally improves performance, but it is not the only factor. When comparing CPUs, consider the workload:

  • Gaming: Most games benefit from larger L3 because they have large working sets. A CPU with 32 MB or more L3 often performs better in titles like Cyberpunk 2077 or Counter-Strike 2.
  • Productivity: Video editing, 3D rendering, and compilation use many cores; shared L3 reduces inter-core communication overhead.
  • Budget builds: A smaller L3 (e.g., 8–16 MB) is fine for basic tasks and older games.

However, clock speed, core count, and architecture matter more than L3 alone. A CPU with less L3 but higher clocks can beat one with more L3 in some tasks. Always check real benchmarks for the specific programs you use.

Common Problems and Misconceptions

A frequent misconception is that “L3 cache is the same as RAM” – it is not. L3 is much smaller but far faster. Another myth: “More L3 always means faster.” That is false because a poorly optimized cache hierarchy or slow memory controller can negate the benefit. Also, some users think they can “add” L3 cache to an existing CPU – you cannot. L3 is physically built into the processor die. One real issue is that L3 cache can cause performance variation between CPU models with the same core count but different L3 sizes; for instance, AMD’s 3D V-Cache models have extra L3 stacked on top, which dramatically boosts gaming performance but can reduce boost clocks due to thermal constraints.

Cost and Manufacturing

L3 cache is made of SRAM, which takes up a lot of die area. A 32 MB L3 cache can occupy about 10–15% of a modern CPU die. That area costs money, so CPUs with more L3 are more expensive to produce. For example, AMD’s Ryzen 7 5800X3D has 96 MB of L3 (64 MB standard + 32 MB stacked) and costs more than the standard 5800X. Similarly, Intel’s server chips with large L3 caches are priced higher. The cost is justified for workloads that benefit, but for budget users, a smaller L3 is a reasonable compromise.

Some processors, like Intel’s Sapphire Rapids, use a large L2 cache (up to 2 MB per core) to reduce reliance on L3. Others, like AMD’s 3D V-Cache, stack extra L3 vertically to increase capacity without enlarging the die footprint. In the future, cache may be replaced or supplemented by faster memory technologies like HBM (High Bandwidth Memory) or by software that optimizes data placement. However, L3 cache will remain a key part of CPU design for years because it provides a cheap way to reduce memory latency.

Frequently Asked Questions

Does L3 cache matter for gaming?

Yes, especially in simulation games and esports titles that repeatedly access the same data. A larger L3 cache can reduce frame drops and improve 1% low framerates. However, the impact varies by game and CPU architecture.

Can I increase L3 cache on my CPU?

No. L3 cache is physically part of the processor and cannot be upgraded or added. The only way to get more L3 is to buy a different CPU.

What is a good L3 cache size?

For modern desktop CPUs, 16 MB is considered entry-level, 32 MB is mainstream, and 64 MB or more is high-end. For laptops, 8–16 MB is common due to power and cost constraints.

Is L3 cache faster than RAM?

Yes. L3 cache has a latency of about 10–20 nanoseconds, while RAM latency is 80–100 nanoseconds. L3 is also much closer to the cores, so data transfer is quicker.

Why do some CPUs have more L3 cache than others?

It comes down to cost, die area, and target workloads. Server CPUs often have large L3 to handle many threads, while budget CPUs have less to keep prices low.