What Is CPU Cache? (L1, L2, and L3 Cache)

What is CPU cache and what does L1 cache, L2 cache and L3 cache mean? How important is CPU cache when choosing a new CPU? Here's the ultimate guide.

Watching Intel or AMD keynotes at CES, Computex, or other events is always captivating as we wait to see what kinds of magic they will introduce with their new generations of CPUs—these include more cores, less power draw, and far better performance.

When AMD’s CEO Lisa Su or Intel’s CEO Pat Gelsinger begins explaining and breaking down the new technologies or chip architectures, however, it’s easy to get confused. One of the terms commonly thrown around to impress gamers is cache, specifically L1, L2, or L3 cache.

This word comes up so often because it is extremely important for modern processors, so let’s explore why this is the case.

Related:What Is A CPU?What CPU Do I Have?CPU Hierarchy 2023 – PC Processors Tier List

Table of ContentsShow

What Is Cache?

What CPU Do I Have

The term cache is frequently used in the computing world. It is not unique to processors, and it is necessary for your PC to work as efficiently as it does.

For example, your browser constantly caches data of website images, templates, videos, etc. This means the next time you open that website, your computer won’t have to waste extra time, bandwidth, and energy to process that data again. Instead, the browser will just access its cache, and the site will load much faster.

This also applies to operating systems. The data stored in RAM is cached, allowing the operating system to be considerably more responsive.

Cache In CPUs

What Is A CPU

Is cache any different in CPUs? Its purpose is very similar, but it differs in some important ways.

Processors work incredibly fast but require quick access to certain data to utilize that speed properly. As regular system memory (DRAM) is simply too slow and far away from the processor, the CPU has its own hardware cache, which is considerably smaller and much closer to the CPU die. By reducing the communication distance, the entire process of accessing information becomes much faster.

This means it is very similar to software (browser’s saved data) and hardware (RAM) caches, but there is still more to it.

L1, L2, or L3—What Is It?

CPU Hierarchy

You might notice CPU cache is always backed by the term L1, L2, L3, and sometimes even L4. These terms denote the multilevel cache used for CPUs.

So, L1 would be level one, L2 is level two, and L3, of course, is level three.

  • L1 is the fastest memory found in any consumer PC. It is considerably faster than other levels of cache or RAM. However, it is also much smaller in capacity because it is costly to make. These days, the L1 cache ranges from 256KB to no more than 1MB, but even that is sufficient since this memory is built directly into the CPU cores. It is also important to note every core receives a dedicated L1 cache.
  • L2 can have several times larger capacity than L1 (Ryzen 5900X has 6MB of L2 cache). L2 cache is usually a few megabytes and can go up to 10MB. However, L2 is not as fast as L1, it is located farther away from the cores, and it is shared among the cores in the CPU.
  • L3 is considerably larger than L1 and even L2. Intel’s i9-11900K has 16MB of L3 cache, while AMD’s Ryzen 5950X has 64MB. Unlike L1, L2 and L3 caches are shared between all cores. It is also the slowest memory on the CPU.
  • L4 is not very common; you won’t find it on any modern consumer CPU. It takes the form of DRAM compared to L1, L2, or L3 SRAM, and it is also placed separately from the chip.

To further optimize access to data, L1 is often split into L1d (for data) and L1i (for instructions).

cache latency
Cache latency from top (faster) to bottom (slower).

Does CPU Cache Impact Gaming Performance?

During the 2021 Computex, AMD announced they have managed to cram in even more cache. This is possible thanks to AMD’s new stacked Zen 3 chiplets.

Zen 3 processors will receive 64MB of 7nm process cached, named 3D V-Cache. This will increase the L3 cache of these processors up to 192 MB, which is triple the amount compared to regular Zen 3 chips; that is considerably more.

However, Lisa Su also mentioned that 3D V-Cache will be huge for gamers. Why? Well, based on AMD’s chart, a greater and faster cache can substantially impact gaming performance.

3D V Cache Technology Performance Uplift Across Gaming
5900X vs 3d-stacked 5900X frequency-matched at 4.0 GHz.

The image above shows a comparison between Zen 3 Ryzen 9 5900X fixed at 4.0 GHz against another 12-core processor (probably 5900X) that has been 3D stacked, also fixed at 4.0 GHz.

This means the only differences between the two CPUs are the speed and size of the cache. Even with such small differences, the 3D stacked process provides up to 25% more FPS in Monster Hunter World over the 5900X. On average, it is 15% faster in gaming.

This is the performance boost we usually see when jumping to a smaller process and not merely by adding more cache.

However, this is perhaps only the case for AMD’s newer and faster cache. What about the memory found in CPUs from previous generations?

Based on TechSpot’s thorough analysis and testing, it appears that CPU cache has a notable effect on gaming performance.

They were able to test this by locking the i9-10900K (20MB cache) and i7-10700K (16 MB cache) to eight cores and also matching the frequency. This makes the cache the only difference between these two SKUs.

In games such as Tom Clancy’s Rainbow Six Siege, which isn’t very GPU bound, the 10900K beat the 10700K by about 5%. Benchmarks in Shadow of the Tomb Raider also displayed similar differences in performance.

i9 10900K i7 10700K i5 10600K comparison
Comparison of i9-10900K, i7-10700K, and i5-10600K with core and frequency-matched.

To further explore this idea, TechSpot dropped down to an even lower cache size. They locked both the i9-10900K and the i7-10700K to six cores and matched them to the same frequency as a 10600K, which has only 12MB of cache.

In all games, the 10900K and 10700K were considerably faster. In some games, the 10900K was up to 20% faster than the 10600K—that is a huge difference.

So, the final answer is yes! CPU cache does have a significant impact on gaming performance. That impact likely also translates to other tasks, such as rendering or encoding.

Conclusion

Intel CPU

A processor is an extremely complicated piece of hardware, and each of its components has its own purpose and is highly important. Removing just one part will greatly hinder the CPU’s performance. Because of this, we can’t truly determine the importance of CPU cache and how exactly it impacts gaming or productivity performance.

Even so, we did get a decent insight with the benchmarks above. They show us that CPU cache is vital, and improvements in speed or capacity in the future will surely bring increased FPS in games, faster rendering, and more.

You Might Like These Too

The Best CPU Benchmarking Software
The Best CPU Benchmarking Software For 2023
Branko Gapo

Keeping up with the incredibly fast evolution of computer technology is almost impossible. That's why Branko will be using his knowledge on this matter to share news and information on all the latest essential technological innovations and advancements related to CPUs.