# L3 cache

> third tier of hardware cache used in modern central processing units

**Wikidata**: [Q28972917](https://www.wikidata.org/wiki/Q28972917)  
**Source**: https://4ort.xyz/entity/l3-cache

## Summary
L3 cache is the third tier of hardware cache in modern CPUs, designed to reduce memory access latency by storing frequently used data closer to the processor. It sits between the faster L2 cache and the slower primary memory (RAM), balancing speed and capacity to improve overall system performance.

## Key Facts
- **Hierarchy Position**: L3 cache is the third level in the CPU cache hierarchy, following L2 cache and preceding L4 cache (rarely) or primary memory (often).
- **Purpose**: Acts as a dynamically managed local memory that mirrors main memory to reduce access costs.
- **Subclass**: Part of the broader **CPU cache** class, which includes all cache levels (L1, L2, L3, etc.).
- **Notable CPUs**: Used in processors like the **AMD Ryzen Threadripper 1950X** (2017), **AMD Ryzen 7 9800X3D** (2024), and **Intel Core i5 9600k** (2018).
- **Aliases**: Also known as *level 3 cache*, *L3 CPU cache*, or *Level-3-Cache*.

## FAQs
### Q: What is the role of L3 cache in a CPU?
A: L3 cache reduces the time it takes for the CPU to access frequently used data by storing it closer to the processor than main memory (RAM), improving performance.

### Q: How does L3 cache differ from L2 cache?
A: L3 cache is larger but slower than L2 cache, serving as a middle layer between L2 and primary memory to balance speed and capacity.

### Q: Do all modern CPUs have L3 cache?
A: Most modern CPUs include L3 cache, though some high-end or specialized processors may also feature L4 cache.

### Q: What happens if L3 cache is missing?
A: Without L3 cache, the CPU would rely more on slower primary memory, potentially reducing performance in memory-intensive tasks.

### Q: Which CPUs are known for their L3 cache performance?
A: Processors like the **AMD Ryzen 7 9800X3D** (2024) and **Intel Core i7-6700** are notable for their L3 cache implementations.

## Why It Matters
L3 cache plays a critical role in modern computing by bridging the speed gap between the CPU and main memory. As applications demand faster data access, L3 cache helps reduce bottlenecks by storing larger datasets than L1 or L2 caches while remaining faster than RAM. This improves performance in tasks like gaming, video editing, and scientific computing. Without L3 cache, CPUs would spend more time waiting for data from slower memory, leading to inefficiencies. Its presence is especially important in multi-core processors, where shared L3 cache allows cores to communicate more efficiently.

## Notable For
- **Balancing Speed and Capacity**: Larger than L1/L2 caches but faster than RAM, making it ideal for performance optimization.
- **Multi-Core Efficiency**: Often shared among CPU cores, enabling better data sharing and reducing redundancy.
- **Presence in High-End CPUs**: Featured in advanced processors like AMD’s Ryzen and Intel’s Core series.
- **Rare L4 Cache Predecessor**: In some systems, L3 cache is followed by an even larger (but rarer) L4 cache.

## Body
### **Cache Hierarchy Overview**
- **L1 Cache**: Fastest, smallest (closest to CPU cores).
- **L2 Cache**: Larger than L1 but slower.
- **L3 Cache**: Larger than L2, shared across cores in multi-core CPUs.
- **L4 Cache**: Rare, used in select high-end systems.
- **Primary Memory (RAM)**: Slowest but largest storage in the hierarchy.

### **Technical Role**
- Reduces latency by storing copies of frequently accessed data.
- Acts as a buffer between L2 cache and RAM.
- Shared L3 cache in multi-core CPUs improves inter-core communication.

### **Examples in Modern CPUs**
- **AMD Ryzen Threadripper 1950X (2017)**: 16-core CPU with L3 cache.
- **AMD Ryzen 7 9800X3D (2024)**: High-end processor with advanced L3 cache.
- **Intel Core i5 9600k (2018)**: Mid-range CPU utilizing L3 cache.

### **Performance Impact**
- Reduces CPU stalls by minimizing trips to RAM.
- Critical for workloads with large datasets (e.g., gaming, rendering).
- Shared L3 cache in multi-core systems enhances efficiency.

## Schema Markup
```json
{
  "@context": "https://schema.org",
  "@type": "Thing",
  "name": "L3 cache",
  "description": "Third tier of hardware cache used in modern central processing units.",
  "sameAs": ["https://www.wikidata.org/wiki/Q11579950"],
  "additionalType": "CPU cache"
}