CS251 - Computer Organization and Design - Spring 2008
Lecture 2 - Performance
Practical Details
- Course web pages
- Excessive collaboration
Good rule of thumb: talk together but write independently
Penalties are severe
- Read chapter 1
- Read sections 4.1 to 4.3; skim sections 4.4 to 4.6
- Exercises 4.1 to 4.18, 4.45 and 4.46 could be assignment or exam
questions.
Performance of Computer Systems
In the box on page 271, the authors write, `Execution time is the only
valid ... measure of performance.'
This is not true!!
- real-time systems
- low power systems
- portable systems
- robust systems
- systems with user interfaces
- not to mention `entertaining systems' or `beautiful systems' or
`systems that make you feel cool'.
Exercise for the reader. Write an essay on the social distortions that
make it possible for the authors to write what they did, and presumably,
believe, it.
So, how do we measure performance?
- Define an objective function.
- Might be as simple as `execution speed' x `battery life'
- Might be as complex as transactions per hour using our mix of
transactions
- Measure the objective function in different system configurations
Execution time is commonly used as a proxy for other measures.
- The drunk under the lamppost.
- Goodhart's law.
What affects execution time?
Features of the computer
- clock speed
- instruction set
- compiler efficiency
- memory speed
- I/O bandwidth
Features of the workload
- instruction mix
- computation versus memory versus I/O
- data locality
Possible computer solutions
- (1&2) two design choices
- CISC: complex instruction set, many instructions, fast clock,
multiple cycle execution times
- RISC: reduced instruction set, few simple instructions, fast clock,
single cycle execution
- (3) two design choices
- Procedural: simple to compile, not much to optimize
- Object-oriented: hard to compile, heavy optimization needed
- (4) multi-level cache
- (5) co-processors
Benchmarks
Collections of code to be executed, standard sets of problems to solve.
- Appear to be objective
- Can be officially made into standards
- Design for the benchmark: Goodhart's law
Return to: