← All questions
Card 114 · Hardware

Explain the term CPU cache.

Answer

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.

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

L1~32–64 KB~1 ns→L2~256 KB–2 MB~5 ns→L3~8–64 MBshared→RAMGBs~60–100 ns→SSDTBsµs

Key vocabulary

TermMeaningExample
cachea small fast memory that stores frequently used dataThe CPU has 32 MB of L3 cache.
cache hit / missdata found / not found in the cacheA cache miss means the CPU has to wait for RAM.
latencythe delay before data is availableL1 cache has a latency of about one nanosecond.
nanosecond (ns)one billionth of a secondRAM access takes about 80 ns.
sharedused by several parts togetherThe L3 cache is shared by all cores.
memory hierarchylevels of memory from fast/small to slow/largeThe memory hierarchy starts with registers and L1.

Useful phrases

Talk about it

  1. Explain the CPU cache with an everyday comparison (desk, drawer, shelf, archive).
  2. Why don’t manufacturers just make the L1 cache much bigger?
  3. 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.