GCSE · Computer Science · Eduqas · Spec C500QS

CPU performance: cache size and levels

Same item, two requests. One comes back almost instantly; the other leaves the processor drumming its fingers. Only where the item was stored changed.

Computer Science · Cache lookup

Where does the processor find the item?

At each step, is the item in this level? Pick an answer and follow the route to its end.

Check L1 → Check L2 → Check L3

4 possible routes.

On The processor needs an item. 2 branches to choose from.

Same request, different luck. Decide where the item is being held and watch how the search ends.

Exam line: The route depends only on where the item is held. The search stops at the first hit, and only a miss in every cache level sends the processor to main memory, where it waits longest.
Watch out: Look at where each route stops. A hit ends the search straight away, so the levels after it are never checked. Main memory only gets involved when every cache level has missed.

Computer Science · The four stores

Fastest to slowest: put them in order

How quickly the processor can get an item from it

1 · Fastest to access4 · Slowest to access
  1. L3 cache

  2. Main memory (RAM)

  3. L1 cache

  4. L2 cache

Exam line: Speed order: L1, then L2, then L3, then main memory. Across the three cache levels, capacity and distance from the core run the opposite way to speed.

Watch out: The biggest cache level is not the fastest. L3 holds the most of the three but is the slowest of them to access.

Cache size

?

Reason it through

Why can a larger cache make a processor perform better?

Link 1 of 4

First link · your turn

Start with what a cache does. What does making it larger let it do?

2
Locked — reveal the link above first
3
Locked — reveal the link above first
4
Locked — reveal the link above first

Computer Science · Why levels?

Why not one huge, super-fast cache?

A friend says: "Three cache levels is silly. Just build one enormous cache as fast as L1 and be done with it."

Which idea is closest to what you think right now?
How sure are you?

Computer Science · Write it up

Write the full explanation, then mark it

Explain how the size of the cache and the use of L1, L2 and L3 levels affect the performance of a processor. [6 marks]

0 words · your answer stays on this page and is not sent anywhere.

Exam line: Chain your points: more hits, fewer slow fetches, less waiting, more instructions in a given time. Then say what the levels add.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

How the size of the cache and its levels change how long the processor has to wait

What you need to know

  • Cache is a small amount of very fast memory on or very close to the processor.
  • It holds copies of data and instructions the processor is likely to need again.
  • The processor checks the cache first. If the item is there, that's a cache hit and it's fetched quickly.
  • If it isn't, that's a cache miss. The item must come from main memory (RAM), which is slower to access than cache.
  • Have a goMaya says: "A cache miss means the data's gone forever!" Where does the processor actually get the item from?

    From main memory (RAM). It's slower, but the item isn't lost.

    A miss only means the item wasn't in the cache, so the cost is waiting for a slower fetch, not losing the item.

  • While it waits for main memory, the processor can't carry on, so fewer instructions are processed in a given time.
  • A larger cache can hold more items, so more of what the processor needs is found there: more cache hits.
  • More hits mean fewer slow fetches from main memory, less waiting, and so better processor performance.
  • Have a goFinish the chain: bigger cache, more hits, fewer ___ from main memory, less ___.

    fewer slow fetches from main memory, less waiting

    Each extra hit is one fetch from main memory that doesn't happen, so the processor spends less time waiting.

  • Cache comes in levels, L1, L2 and L3. They differ in speed, capacity and closeness to the processor cores.
  • The search goes L1, then L2, then L3. Only if the item is in none of them does it go to main memory.
  • Have a goAn item isn't in L1 or in L2. What does the processor do next?

    It checks L3.

    Main memory is the last stop, used only after every cache level has missed.

  • Levels balance speed against capacity: small, fast L1 serves the most-needed items, and larger L2 and L3 catch many of the rest.

The big picture

Cache is a small amount of very fast memory on or very close to the processor. If the item is there (a cache hit) it's fetched quickly; if not (a cache miss) it comes from slower main memory and the processor waits. A larger cache means more hits and less waiting. Cache comes in levels: L1 is smallest and fastest, L3 is largest and slowest of the three, and the search runs L1, L2, L3, then main memory.

Key points

1Performance is about waiting: every miss means a slower fetch from main memory and fewer instructions processed in a given time.
2A larger cache holds more items, so there are more hits, fewer slow fetches and less waiting.
3L1 is the smallest and fastest and closest to (built into) each core. L2 is larger than L1 but slower and further out.
4L3 is the largest and slowest cache level, furthest from the cores and typically shared between them, but still faster to access than main memory.
5The processor looks in L1, then L2, then L3, and only goes to main memory if the item is in none of the cache levels.

Worked example

Problem

A program asks for three items one after another. Item A is in L1. Item B is not in L1 but is in L2. Item C is in none of the cache levels. (a) Which item makes the processor wait longest? (b) An upgraded processor has a larger cache that also holds item C, in L3. What changes for item C?

⚠ Watch out

Thinking the biggest cache level must be the fastest. L3 holds the most but is the slowest cache level, while L1 is the smallest and fastest. Also, cache doesn't replace main memory: if an item is in none of the levels, it still comes from RAM.

🧠

Memory hook

Hit means stop searching. Miss means keep looking and wait. Across the cache, size and speed run opposite ways: L1 is smallest and fastest, L3 is largest and slowest.

✓

Check yourself

Out loud, in 30 seconds: why is a cache question really about waiting? Name one change that cuts the waiting.

Flashcards

(13)
What is cache?
A small amount of very fast memory on or very close to the processor that holds copies of data and instructions the processor is likely to need again.
Where does the processor look first when it needs an item?
In the cache, before it goes to main memory (RAM).
What is a cache hit?
The item is found in the cache, so it is fetched quickly.
What is a cache miss?
The item isn't in the cache, so it's fetched from main memory instead, and that takes longer than a cache fetch.
Why does a cache miss hurt performance?
The processor has to wait while the item comes from slower main memory, so fewer instructions are processed in a given time.
How does a larger cache improve performance?
It holds more items, so there are more hits, fewer slow fetches from main memory and less waiting.
What do L1, L2 and L3 have in common, and how do they differ?
All three are cache. They differ in speed, capacity and closeness to the processor cores.
Describe L1 cache.
The smallest and fastest level, closest to (built into) each processor core.
Describe L2 cache.
Larger than L1 but slower to access, and further from the core than L1.
Describe L3 cache.
The largest and slowest level, furthest from the cores and typically shared between them, but still faster to access than main memory.
Which store does the processor try last, and when?
Main memory (RAM), only after L1, L2 and L3 have all missed. Before that the order is L1, then L2, then L3.
Why have several cache levels instead of one?
They balance speed against capacity: the most-needed items are reached very quickly in small, fast L1, while larger L2 and L3 catch many items that would otherwise need a slow fetch from main memory.
L3 is the largest cache level. Is it the fastest?
No. L3 is the slowest cache level (though faster than main memory). L1 is the smallest and fastest.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 16 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.