Hardware - CPU Performance Flashcards
what is the function of the clock speed
determines number of fetch-execute-decode cycles per second
- every action in CPU happens within a tick of the clock / clock cycle
what is clock speed measure in
Hertz (Hz)
how many cycles would a 3.8 GHz processor have
3.7 billions times per second
what is Cache size
temporary storage of copies of data + instructions being ** read to + written from** the main memory
what are the advantages of the speed of cache memory
- operates must faster than main memory –> data transferred in and out of cache memory quicker
- much quicker to access than RAM –> makes CPU more efficient –> since less time waiting for data to be transferred
why are copies of data and instructions stored in Cache
- want to avoid retrieving data / instructions from the main memory as much as possible –> takes more time
- save time by have cache memory* already in the processor
what is the system cache uses to optimise speed
- there are 2 or 3 levels of cache
- *fastest cache** = smallest capacity = Level 1 cache
- CPU will optimise use of fastest cache before using next level , or RAM , to improve performance speed
describe the difference type of levels within cache
L1:
- fastest , but smallest in size
- hold most frequently use instructions / data
L2:
- bigger capacity, but slower in speed
- holds less frequently used instructions + data
what is a core
a processor (complete copy of CPU)
what is the function of different numbers of cores
- 1 core can process one operation per clock cycle
- dual-core = 2 operations simultaneously
- quad-core = 4 operations simultaneously
does doubling the number of cores simply double the overall speed?
No
- core communicate with each other –> takes time + efficiency
- many programs are not designed for multiple core –> will not work
what are the factors that will affect the speed of the CPU
- cache size
- clock speed
- number of cores
what is an instruction set
a processors list ofall its specific commands, written in machine code that can be processed + executed by a CPU
what is each command associated with
machine code
what is a mnemonic
mnemonics represent assembly language instructions / machine code to make it easier for humans to understand