Lecture 02 Performance

Lecture 02 Performance - CS M151B / EE M116C Computer...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Reinman CSM151B 2-1 CS M151B / EE M116C Computer Systems Architecture Performance Some notes adopted from Morgan Kaufman Publishing
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Reinman CSM151B 2-2 Understanding Performance • Algorithm – Determines number of operations executed • Programming language, compiler, architecture – Determine number of machine instructions executed per operation • Processor and memory system – Determine how fast instructions are executed • I/O system (including OS) – Determines how fast I/O operations are executed
Background image of page 2
Reinman CSM151B 2-3 Below Your Program • Application software – Written in high-level language • System software – Compiler: translates HLL code to machine code – Operating System: service code • Handling input/output • Managing memory and storage • Scheduling tasks & sharing resources • Hardware – Processor, memory, I/O controllers §1.2 Below Your Program
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Reinman CSM151B 2-4 Levels of Program Code • High-level language – Level of abstraction closer to problem domain – Provides for productivity and portability • Assembly language – Textual representation of instructions • Hardware representation – Binary digits (bits) – Encoded instructions and data
Background image of page 4
Reinman CSM151B 2-5 Time to do the task from start to finish – execution time, response time, latency Tasks per unit time – throughput, bandwidth Vehicle Ferrari Greyhound Speed 160 mph 65 mph Time to San Diego* 0.75 hours 2 hours Passengers 2 60 Throughput (pmph) 320 3900 Time vs Throughput * obviously this does not include LA traffic!
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Reinman CSM151B 2-6 Defining Performance • Which airplane has the best performance? 0 100 200 300 400 500 Douglas DC- 8-50 BAC/Sud Concorde Boeing 747 Boeing 777 Passenger Capacity 0 2000 4000 6000 8000 10000 Douglas DC- 8-50 BAC/Sud Concorde Boeing 747 Boeing 777 Cruising Range (miles) 0 1000 1500 Douglas DC- 8-50 BAC/Sud Concorde Boeing 747 Boeing 777 Cruising Speed (mph) 0 100000 200000 300000 400000 Douglas DC- 8-50 BAC/Sud Concorde Boeing 747 Boeing 777 Passengers x mph §1.4 Performance
Background image of page 6
Reinman CSM151B 2-7 Response Time and Throughput • Response time – How long it takes to do a task • Throughput – Total work done per unit time • e.g., tasks/transactions/… per hour • How are response time and throughput affected by – Replacing the processor with a faster version? – Adding more processors? • We’ll focus on response time for now…
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Reinman CSM151B 2-8 Relative Performance • Define Performance = 1/Execution Time •“ X i s n times faster than Y” n = = X Y Y X time Execution time Execution e Performanc e Performanc • Example: time taken to run a program – 10s on A, 15s on B – Execution Time B / Execution Time A = 15s / 10s = 1.5 – So A is 1.5 times faster than B
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 29

Lecture 02 Performance - CS M151B / EE M116C Computer...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online