1.1.2 CPU performance · Paper 1
What makes a CPU faster
Each section has pictures and things to try, then its key points and key words. Exam practice is at the end of the page.
You need to know
- What clock speed, cache size and number of cores mean
- How changing each one affects performance, on its own or together
You don't need to know
- OCR doesn't rule anything out here.
Three things that change CPU speed
| Characteristic | What it is | If you increase it |
|---|---|---|
| Clock speed | How many fetch-execute cycles happen each second, measured in hertz (3.5 GHz = 3.5 billion a second) | More instructions are run each second |
| Cache size | How much very fast memory is on the CPU | More data can be kept close by, so the CPU waits for RAM less often |
| Number of cores | How many processing units are in the CPU. Each core can run its own instructions. | More instructions can be run at the same time |
Try it
Build a CPU, then run the program. Can you get it under 2 seconds?
Key points
Clock speed
Before this: 1.1.1The fetch-execute cycle
- Clock speed is the number of fetch-execute cycles a CPU can carry out each second.
- It is measured in hertz (Hz). 1 GHz = 1 billion cycles per second.
- A higher clock speed means more instructions can be processed each second, so programs run faster.
- Higher clock speeds make the CPU hotter and use more power.
- Some CPUs can be overclocked to run faster than intended, but this can cause overheating.
Number of cores
Before this: 1.1.1The fetch-execute cycle
- A core is a processing unit inside the CPU. Each core can fetch, decode and execute its own instructions.
- A quad-core CPU has 4 cores, so it can process up to 4 instructions at the same time.
- More cores help with multitasking and with programs designed to use many cores, such as video editing.
- Doubling the cores does not double the speed. Some programs can't be split up, and cores sometimes have to wait for each other.
Key words
Say what each one means, then tap to check.
It's not always that simple
- Doubling the cores does not double the speed. Some programs can't be split up to use more than one core.
- A bigger cache helps less and less once it can hold everything that's used often.
- A higher clock speed makes the CPU hotter and use more power.
Try it
Think of the CPU as a motorway. The lanes are cores, the speed limit is the clock speed, and the cars are the work. Does adding lanes always get the traffic through faster?
Exam tip: When comparing two CPUs, talk about all three characteristics together, and say what effect each has.
Try it
Practise a "which CPU is better" exam question. Choose a CPU, then two reasons that fit the job.
- Higher clock speed: more instructions each second
- More cores: more instructions at the same time
- Bigger cache: waits for RAM less often
- Fewer cores: less to keep track of
- A video editing app that can split its work across lots of cores.
CPU A CPU B Clock speed 3.6 GHz 3.2 GHz Cores 4 8 Cache 8 MB 16 MB - An old game that can only use one core.
CPU A CPU B Clock speed 4.2 GHz 3.0 GHz Cores 4 8 Cache 16 MB 8 MB - A program that uses the same data over and over again.
CPU A CPU B Clock speed 3.8 GHz 3.5 GHz Cores 6 6 Cache 32 MB 8 MB - A web server that handles thousands of visitors at the same time.
CPU A CPU B Clock speed 2.9 GHz 3.9 GHz Cores 16 4 Cache 32 MB 8 MB
Key points
Comparing CPUs
Before this: Clock speedNumber of cores1.1.1Cache
- When comparing CPUs, look at all three characteristics together: clock speed, cache size and number of cores.
- A high clock speed suits tasks that run on one core, like many games.
- More cores suit tasks that can be split up, like video editing or running lots of programs.
- A bigger cache helps all tasks, by reducing trips to RAM.
- Other things also affect speed, such as the amount of RAM.
Key words
Say what each one means, then tap to check.
Also useful: Cache
Exam practice
10 questions in the style of the OCR exam, 23 marks in total. Try each one, then check the mark scheme.
Three things that change CPU speed
Hint
Look at the letters in "3.5 GHz".
State means give a short, clear answer. You don't need to explain it.
1 mark: one answer is enough.
Show mark scheme
- Hertz / GHz.
Also accept: GHz / MHz (any hertz unit).
Hint
What does the clock speed count, and what does more of those each second mean for a program?
Explain means say what happens and why. Words like “because” and “so” help.
2 marks: aim for 2 things said, such as a point and then the reason for it.
Show mark scheme
- More fetch-execute cycles per second…
- …so more instructions are processed / programs run faster.
Don't accept: "The computer is faster" with no reason.
1 mark for each point.
Hint
Think about how a laptop feels when it has been working hard for a long time.
Give means give a short, clear answer. You don't need to explain it.
1 mark: one answer is enough.
Show mark scheme
- Produces more heat / uses more power / may need better cooling.
Hint
What can each core do on its own? So what can several cores do together?
Explain means say what happens and why. Words like “because” and “so” help.
2 marks: aim for 2 things said, such as a point and then the reason for it.
Show mark scheme
- Each core can process instructions independently…
- …so more instructions can be processed at the same time.
Don't accept: "More cores means more speed" with no explanation.
1 mark for each point.
Hint
Can every program be split into parts that run at the same time?
Give means give a short, clear answer. You don't need to explain it.
2 marks: make 2 separate points.
Show mark scheme
- Not all software is designed to use multiple cores / tasks can't always be split…
- …so some cores may be idle / waiting.
1 mark for each point.
It's not always that simple
Compare these CPUs for a student who mainly browses the web and writes essays.
| CPU X | CPU Y | |
|---|---|---|
| Clock speed | 2.8 GHz | 3.4 GHz |
| Cores | 4 | 8 |
| Cache | 6 MB | 16 MB |
Hint
Go through clock speed, cores and cache one at a time. Then ask: does this student really need the faster CPU?
Compare means say how the two things are similar or different. Mention both of them in each point.
4 marks: each point should mention both things.
Show mark scheme
- CPU Y has a higher clock speed, so more instructions per second.
- CPU Y has more cores, so can multitask better.
- CPU Y has a larger cache, so fewer accesses to RAM.
- For browsing and essays, CPU X would be enough / Y may be unnecessary and more expensive.
Don't accept: "CPU Y is better" with no reasons.
Don't accept: Only listing the numbers from the table without saying what effect they have.
Example answer
CPU Y has a higher clock speed (3.4 GHz), so it can carry out more instructions each second. It also has more cores and a bigger cache, so it can multitask better and needs to use slower RAM less often. But web browsing and writing essays are light tasks, so CPU X would be fast enough and is likely to be cheaper.
Max 4. Credit a justified recommendation.
Mixed questions on the whole page
Hint
What does the clock speed count? And how many is "giga"?
Explain means say what happens and why. Words like “because” and “so” help.
2 marks: aim for 2 things said, such as a point and then the reason for it.
Show mark scheme
- It is the number of fetch-execute cycles the CPU carries out each second.
- 3.2 GHz is 3.2 billion cycles per second.
1 mark for each point.
Hint
Think about what cache stores, how fast it is compared with RAM, and what a bigger one lets the CPU do.
Explain means say what happens and why. Words like “because” and “so” help.
3 marks: aim for 3 things said, such as a point and then the reason for it.
Show mark scheme
- More frequently used data and instructions can be stored in cache.
- Cache is faster to access than RAM.
- So the CPU has to fetch from slower RAM less often.
Don't accept: "Cache is faster" on its own, without linking it to fetching from RAM less often.
1 mark for each point.
Hint
Does every program know how to use more than one core?
Explain means say what happens and why. Words like “because” and “so” help.
2 marks: aim for 2 things said, such as a point and then the reason for it.
Show mark scheme
- Some programs are not written to use more than one core.
- Some tasks cannot be split up to run at the same time.
- Cores may have to wait for each other / for data from RAM.
1 mark each, max 2
Two CPUs are being considered for a computer used for video editing.
| CPU A | CPU B | |
|---|---|---|
| Clock speed | 3.0 GHz | 3.6 GHz |
| Cores | 8 | 4 |
| Cache | 16 MB | 8 MB |
Recommend which CPU should be used. Justify your answer.
Hint
Video editing can be split into lots of parts that run at the same time. Which CPU is best at that?
Justify means give reasons that back up your answer.
4 marks: give reasons for each point you make.
Show mark scheme
- Recommends CPU A (no mark on its own).
- A has more cores, so more instructions can be processed at the same time.
- Video editing software can make use of multiple cores.
- A has a larger cache, so data needs fetching from RAM less often.
- B has a higher clock speed, so it would be faster at tasks that only use one core.
Also accept: CPU B, if it is justified, e.g. its higher clock speed helps parts of the software that only use one core.
Don't accept: "It is faster" with no reason. Say which feature makes it faster and why.
Don't accept: "8 cores is twice as fast as 4". Not every task can be split across all the cores.
Example answer
CPU A. It has 8 cores instead of 4, and video editing software can split its work across cores, so more instructions can be processed at the same time. CPU A also has a bigger cache (16 MB), so it has to fetch from slower RAM less often. CPU B has a higher clock speed, but that mainly helps tasks that only use one core.
Max 4. Accept B if well justified.