GCSE · Computer Science · AQA · Spec 8525
CPU performance: cache size
The CPU can work faster than main memory can supply instructions and data. So what does it do while it waits? Let's follow one request.
Follow one request
Is it already in the cache?
Tap a branch to follow the request. One request takes exactly one route, so try them all.
Is it in the cache? → Is there room in the cache?
3 possible routes.
The CPU asks for an instruction or a piece of data. Walk each route and see where the request ends up.
Cache size
Reason it through
Why can a larger cache improve the performance of a CPU?
First link · your turn
A larger cache has more space. What can it do with it?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Why a small, fast memory stops the CPU twiddling its thumbs, and why a bigger one can help.
What you need to know
- The CPU can work faster than main memory can supply instructions and data.
- Cache is a small, fast memory that holds frequently used instructions and data, so the CPU isn't kept waiting.
- In the CPU, cache isn't where files or web pages are saved. That's the browser meaning of the word.
Have a goSam says: "Cache is where my files are saved so they open faster later." Which part of Sam's sentence is the problem, "files" or "faster"?
"Files." The faster part is right, but CPU cache holds frequently used instructions and data.
Sam is using the browser meaning of cache. In the CPU it isn't a place for saved files or pages.
- Every request first asks one question: is it already in the cache?
- If it is, the CPU reads it quickly from cache. If not, it's fetched from slower main memory and a copy is kept in cache.
- If the cache is full, the copy replaces something already held there.
Have a goRequest A is found in the cache. Request B isn't. Which one makes the CPU wait longer, and why?
B. It has to be fetched from main memory, which is slower than reading from the cache.
The found-in-cache route never makes the trip to main memory, which is why it's the quick one.
- The types of memory are RAM, ROM, cache and registers.
- Main memory is RAM and ROM, so cache and registers are memory but not main memory.
Have a goHot take from a mate: "Registers are main memory, because they're memory." Fix the claim in one sentence.
Registers are memory but not main memory. Main memory is RAM and ROM.
Being a type of memory doesn't make something main memory. Cache and registers sit outside it.
- A larger cache can hold more of what the CPU is using, so more requests are found in cache.
- More requests found in cache means fewer waits for main memory, so the CPU spends less time waiting and performance can improve.
The big picture
Cache is a small, fast memory that holds frequently used instructions and data, so the CPU isn't kept waiting for slower main memory. Every request first asks: is it already in the cache? Cache is a type of memory, but it is not main memory. A larger cache can hold more of what the CPU is using, so more requests are found in cache, fewer wait for main memory, and CPU performance can improve.
Key points
Worked example
Problem
Imagine the same 10 requests are run on two CPUs that are identical except for cache size. CPU S (smaller cache) finds 6 of them in cache. CPU L (larger cache) finds 8. Which CPU has to go to main memory less often, and by how many requests? (These numbers are made up, just to show the idea.)
⚠ Watch out
Mixing up two meanings of 'cache'. In the CPU it isn't where files or web pages are saved. It's a small, fast memory for frequently used instructions and data. Also, don't call it main memory: that's RAM and ROM only.
Memory hook
Think of a desk drawer next to the CPU. The things it uses most are kept close, so it doesn't have to walk to the filing room (main memory) every time. Bigger drawer, more things close by, fewer walks.
Check yourself
Say it out loud without looking: a request isn't found in the cache. Where does the data come from, what happens to a copy, and why is this route slower than the found-in-cache one?
Flashcards
(8)Why does a CPU need cache?
What does cache hold?
What question does the CPU ask first about every request?
A request is found in the cache. What happens?
A request is not found in the cache. What happens?
The cache is full and a copy needs adding. What happens?
Which types of memory are covered here, and which of them are main memory?
How can a larger cache affect CPU performance?
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 postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)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 24 October 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.