Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

A level 2 (L2) cache is the second tier of a processor’s cache hierarchy. It holds instructions or data that the processor is likely to need soon, so a request that misses the faster first-level (L1) cache can often be served from L2 instead of going all the way to main memory. Its size, speed and whether it is shared between cores all depend on the specific processor or system design, so there is no single L2 size or layout that applies to every chip.

Where L2 sits in the memory hierarchy

The term “level” describes position. Caches are arranged in a sequence from the one closest to the processor’s execution units to the one furthest away, and each step down trades some speed for more capacity. In a typical arrangement the order is:

  • L1 cache: the smallest and closest tier, usually split into instruction and data caches in designs that document it that way.
  • L2 cache: the next tier. It is larger than L1 and sits behind it.
  • Further tiers: some designs add a third-level (L3) cache. Others go from L2 directly to main memory.
  • Main memory: the system RAM, the last stop before the data has to come from storage.

The numbering therefore says nothing about whether L2 is physically private to one core or shared by several. That is a separate design decision, covered below.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What happens on an L2 request

When a processor needs a piece of data or an instruction, the lookup proceeds in order through the levels. Each level either holds the item (a hit) or does not (a miss):

#1 Best Overall
Sale
AMD RYZEN 7 9800X3D 8-Core, 16-Thread Desktop Processor
  • The world’s fastest gaming processor, built on AMD ‘Zen5’ technology and Next Gen 3D V-Cache.
  • 8 cores and 16 threads, delivering +~16% IPC uplift and great power efficiency
  • 96MB L3 cache with better thermal performance vs. previous gen and allowing higher clock speeds, up to 5.2GHz
  • Drop-in ready for proven Socket AM5 infrastructure
  • Cooler not included
  1. The processor checks L1. If the item is there, the request is finished.
  2. If L1 misses, the request moves to L2. If L2 holds the item, it is returned from L2 and main memory is not accessed.
  3. If L2 also misses, the request must be satisfied at a lower level. In Intel’s Pentium 4 microarchitecture, the L2 cache’s miss path leads to main memory through the system bus.

The value of L2 is that it catches many of the L1 misses before they reach that slower final step. Designs with an L3 cache insert that tier between L2 and main memory.

Documented examples of L2 designs

Vendor documentation describes L2 caches for specific products. These examples show how much the design can vary. They are not a description of every processor, and each one should be read with its architecture and date in mind.

Rank #2
Sale
AMD Ryzen 9 9950X3D 16-Core Processor
  • AMD Ryzen 9 9950X3D Gaming and Content Creation Processor
  • Max. Boost Clock : Up to 5.7 GHz; Base Clock: 4.3 GHz
  • Form Factor: Desktops , Boxed Processor
  • Architecture: Zen 5; Former Codename: Granite Ridge AM5

Intel Pentium 4 (2001 microarchitecture paper)

Intel’s paper “The Microarchitecture of the Pentium 4 Processor,” published in the Intel Technology Journal in 2001, describes the L2 cache as storing instruction bytes and data that cannot fit in the trace cache and the L1 data cache. When the L2 cache misses, the system bus accesses main memory. This is a clear example of L2 as an intermediate level. The paper does not give the L2 size or whether it was shared, so those details should not be assumed for that chip.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Intel XScale (third-generation microarchitecture manual, 2007)

Intel’s manual for the third-generation XScale microarchitecture describes its L2 as optional and as the next level of the memory hierarchy below the L1 instruction and data caches. The manual lists 256 KB and 512 KB as configuration options for that family. These values apply to that embedded processor family and do not describe L2 caches in general.

Rank #3
Sale
AMD Ryzen 5 5500 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler
  • Can deliver fast 100 plus FPS performance in the world's most popular games, discrete graphics card required
  • 6 Cores and 12 processing threads, bundled with the AMD Wraith Stealth cooler
  • 4.2 GHz Max Boost, unlocked for overclocking, 19 MB cache, DDR4-3200 support
  • For the advanced Socket AM4 platform

AMD Versal ACAP CPM CCIX (architecture manual AM016, revision 1.1, 24 November 2020)

AMD’s architecture manual for the Versal ACAP CPM CCIX block includes a “Level 2 Cache” chapter. It describes an integrated shared L2 cache intended to reduce latency and bandwidth demands for accesses between accelerators and memory. For this implementation, the manual specifies a 1 MB cache that is physically addressable and physically tagged, with 64-byte cache lines. These figures belong to that product and revision and should not be applied to other AMD parts.

Intel 12th Gen Core hybrid architecture (developer guide)

Intel’s game developer guide for the 12th Gen Intel Core hybrid architecture states that the L2 cache for the logical E-core processor is shared in banks of four logical processors. This is a useful reminder that L2 sharing depends on how the processor is organized. A hybrid design does not give every core its own L2, and it does not mean all L2 caches are shared across the whole chip.

Rank #4
Sale
AMD Ryzen™ 5 9600X 6-Core, 12-Thread Unlocked Desktop Processor
  • Pure gaming performance with smooth 100+ FPS in the world's most popular games
  • 6 Cores and 12 processing threads, based on AMD "Zen 5" architecture
  • 5.4 GHz Max Boost, unlocked for overclocking, 38 MB cache, DDR5-5600 support
  • For the state-of-the-art Socket AM5 platform, can support PCIe 5.0 on select motherboards
  • Cooler not included

Comparing the examples

Example Source and date L2 position Documented L2 size Sharing
Intel Pentium 4 Intel Technology Journal, 2001 Behind the trace cache and L1 data cache; misses go to main memory Not stated in the source Not stated in the source
Intel third-generation XScale Intel manual, 2007 Optional next level below the L1 instruction and data caches 256 KB or 512 KB options Not stated in the source
AMD Versal ACAP CPM CCIX AMD manual AM016 rev. 1.1, 24 Nov 2020 Integrated L2 for accelerator-to-memory accesses 1 MB, physically addressable and tagged Integrated shared L2
Intel 12th Gen Core hybrid (E-core) Intel developer guide for 12th Gen Core hybrid architecture L2 for the logical E-core processor Not stated in the source Shared in banks of four logical processors

The table shows why a single definition has to stay general. Each row is correct only for its own product, and the blanks are gaps in the cited documents rather than evidence that those caches lack a size or sharing arrangement.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why L2 size and sharing vary

Designers choose L2 capacity and sharing according to the workload and the chip’s layout. A larger L2 can hold more of the working set but takes more silicon area and can be slower to access. A shared L2 lets cores use the same pool of cached data, while a private L2 keeps each core’s data separate and avoids contention between them. Because these choices differ by product, the only reliable way to know the L2 configuration of a given processor is to check its own technical documentation.

Best Value
Sale
AMD Ryzen 7 7800X3D 8-Core, 16-Thread Desktop Processor
  • Processor provides dependable and fast execution of tasks with maximum efficiency.Graphics Frequency : 2200 MHZ.Number of CPU Cores : 8. Maximum Operating Temperature (Tjmax) : 89°C.
  • Ryzen 7 product line processor for better usability and increased efficiency
  • 5 nm process technology for reliable performance with maximum productivity
  • Octa-core (8 Core) processor core allows multitasking with great reliability and fast processing speed
  • 8 MB L2 plus 96 MB L3 cache memory provides excellent hit rate in short access time enabling improved system performance
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to find the L2 size on your own computer

  • Windows: open Task Manager, select the Performance tab, then select CPU. The panel lists L1, L2 and L3 cache sizes for the processor.
  • Linux: run lscpu in a terminal and look for the “L2 cache” line. The output may include a count such as “(4 instances)”, which means the figure is the total across that many cache instances, not the size of a single one.

Check whether a reported value is per core or total before comparing it with a spec sheet. On hybrid processors, the figures can differ between core types.

What L2 size does not tell you

A larger L2 is not automatically faster in real use, and the cache level alone does not establish a processor’s speed. The documents above do not provide universal latency values for L2 caches, and no benchmark in them compares L2 designs across all processors. For a real comparison, use the exact model’s documented L2 capacity and sharing, then look at independent performance tests for the workloads you care about.

The safest way to describe L2 is as a position in the hierarchy: the tier that handles requests that miss L1 and stands between the processor and main memory, with its size and layout set by each processor’s design.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

SaleBestseller No. 1
AMD RYZEN 7 9800X3D 8-Core, 16-Thread Desktop Processor
AMD RYZEN 7 9800X3D 8-Core, 16-Thread Desktop Processor
8 cores and 16 threads, delivering +~16% IPC uplift and great power efficiency; Drop-in ready for proven Socket AM5 infrastructure
$447.15
SaleBestseller No. 2
AMD Ryzen 9 9950X3D 16-Core Processor
AMD Ryzen 9 9950X3D 16-Core Processor
AMD Ryzen 9 9950X3D Gaming and Content Creation Processor; Max. Boost Clock : Up to 5.7 GHz; Base Clock: 4.3 GHz
$659.99
SaleBestseller No. 3
AMD Ryzen 5 5500 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler
AMD Ryzen 5 5500 6-Core, 12-Thread Unlocked Desktop Processor with Wraith Stealth Cooler
6 Cores and 12 processing threads, bundled with the AMD Wraith Stealth cooler; 4.2 GHz Max Boost, unlocked for overclocking, 19 MB cache, DDR4-3200 support
$87.95
SaleBestseller No. 4
AMD Ryzen™ 5 9600X 6-Core, 12-Thread Unlocked Desktop Processor
AMD Ryzen™ 5 9600X 6-Core, 12-Thread Unlocked Desktop Processor
Pure gaming performance with smooth 100+ FPS in the world's most popular games; 6 Cores and 12 processing threads, based on AMD "Zen 5" architecture
$176.49
SaleBestseller No. 5
AMD Ryzen 7 7800X3D 8-Core, 16-Thread Desktop Processor
AMD Ryzen 7 7800X3D 8-Core, 16-Thread Desktop Processor
Ryzen 7 product line processor for better usability and increased efficiency; 5 nm process technology for reliable performance with maximum productivity
$348.00

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.