The CPU cache is a small, very fast buffer memory inside the processor. It keeps frequently used data and instructions close to the cores, so the CPU does not have to wait for the much slower RAM.
L1 cache – fastest and smallest (about 32–64 KB), separate for each core, ~1 ns.
L2 cache – larger and a bit slower (about 256 KB – 2 MB), usually per core.
L3 cache – largest and slowest of the three (about 8–64 MB+), shared by all cores – still much faster than RAM.
The CPU looks for data first in L1, then L2, then L3, then RAM, then the disk. Found = cache hit; not found = cache miss. All cache levels relieve the RAM and speed up access to data and instructions.
Diagram
Key vocabulary
Term
Meaning
Example
cache
a small fast memory that stores frequently used data
The CPU has 32 MB of L3 cache.
cache hit / miss
data found / not found in the cache
A cache miss means the CPU has to wait for RAM.
latency
the delay before data is available
L1 cache has a latency of about one nanosecond.
nanosecond (ns)
one billionth of a second
RAM access takes about 80 ns.
shared
used by several parts together
The L3 cache is shared by all cores.
memory hierarchy
levels of memory from fast/small to slow/large
The memory hierarchy starts with registers and L1.
Useful phrases
to keep data close to the CPUThe cache keeps data close to the CPU.
to wait for memoryWithout cache the CPU would wait for memory all the time.
the larger …, the slower …The larger the cache level, the slower it is.
to make a big differenceA bigger L3 cache can make a big difference in games.
Talk about it
Explain the CPU cache with an everyday comparison (desk, drawer, shelf, archive).
Why don’t manufacturers just make the L1 cache much bigger?
Look up the cache sizes of your own CPU and explain them.
IHK hint
German: CPU-Cache: schneller Zwischenspeicher im Prozessor; L1 (schnellster, kleinster), L2, L3 (größter, langsamster, gemeinsam genutzt); entlastet den Arbeitsspeicher.