Contemporary Architectures Flashcards
Do all components in the computer affect performance?
Yes
What are the measurements of the following: CPU, memory and cache and buses?
- CPU - speed, number of registers
- Memory & Cache - access time and bandwidth
- Buses - transfer speed
What’s Amdahl’s Law?
Potential speed up of a program using multiple processors compared to a single processor
What’s the equation for speedup?
Time to execute program on a single processor / time to execute program on N parallel processors
What’s the latency?
Time to solution for 1 instruction (response time)
What’s the throughput?
Tasks per unit of time (bandwidth)
Give an in-real-life example of latency:
Airplane takes one hour and has 1000 boxes - clock speed
Give an in-real-life example of throughput:
Transport shiploads 100,000 boxes - pipelining
How do you calculate performance?
1 / CPU time
How do you calculate CPU time?
time / cycle, x cycles / instruction, x instructions / task
What’s MIPS?
Million Instructions Per Second
How do you calculate IPS?
sockets * (cores/socket) * clock * (instructions/cycle)
What do IPS measure?
Non-numerical performance
What’s a FLOPS?
Floating Point Operations Per Second
How do you calculate FLOPS?
sockets * (cores/socket) * (cycles/second) * (FLOPS/cycle)