CIE AS & A Level Computer Science, section 4.1 (Central Processing Unit (CPU) architecture)
Factors that affect performance
| Factor | Effect on performance |
|---|---|
| Processor type | a more modern or more efficient design carries out more work per clock cycle |
| Number of cores | each core is a processing unit. More cores let the computer run several tasks at the same time (or one task in parts), if the software can use them |
| Bus width | a wider data bus transfers more bits at once. A wider address bus lets the computer address more memory |
| Clock speed | a higher clock speed (GHz) means more cycles per second and so more instructions executed per second |
| Cache memory | a small amount of very fast memory (SRAM) that holds the most recently or frequently used data and instructions, so the CPU waits less for main memory |
Cache memory
When the CPU needs data, it checks the cache first. If it is there (a cache hit), it is used immediately. If not (a cache miss), it is fetched from the slower main memory and copied to the cache. A larger cache means more hits.
Limits
- Doubling the number of cores does not double speed unless the program can be divided into parts that run in parallel.
- A very high clock speed produces more heat and uses more power.
- Other factors include the amount of RAM and the type of storage.
Worked example
Computer A has 2 cores at 3.0 GHz and 4 MiB of cache. Computer B has 4 cores at 2.6 GHz and 8 MiB of cache. B can perform better with multi-tasking or with software written for several cores, and its larger cache reduces waiting. A may be quicker for a single-threaded task because of its higher clock speed.
Common mistake: saying "more cores always means a faster computer". The software must be able to use them, and the clock speed of each core matters too. Also, cache is not the same as RAM: it is smaller and faster and sits in or near the CPU.
Exam tip: explain each factor with how it improves performance (not just "it makes it faster"). When comparing two computers, use several factors and say which tasks each is better for.
Check yourself
What is a core?
A processing unit within the CPU, able to fetch and execute instructions.
Why does cache memory improve performance?
It holds frequently used data and instructions in very fast memory, so the CPU spends less time waiting for main memory.
Give one factor other than clock speed that affects performance.
Number of cores, cache size, bus width or processor type.