Docsity

Computer Design and Evaluation: Performance, Architecture, and Benchmarking, Study notes of Computer Science

Toggle sidebar
bg1
CMSC 411 - A. Sussman (from D. O'Leary) 1
Computer Systems Architecture
CMSC 411
Unit 1 – Computer Design and
Evaluation
Alan Sussman
January 28, 2003
CMSC 411 - Alan Sussman 2
Administrivia
• Class web pages are at
http://www.cs.umd.edu/class/spring2003/cmsc411-0301
– and linked in from CS dept. class web pages
• Class accounts for project will be on CSIC Linux
cluster
• First homework, for Unit 1, handed out Thursday,
1/30
• Start reading Ch. 1 of H&P
CMSC 411 - Alan Sussman 3
Introduction
• Why are you taking this course?
– You really liked the material in 311 and want to
learn more?
– The course time fit into your schedule well?
– You needed upper level CS courses and chose
this one at random?
– All the courses you really wanted to take were
filled?
CMSC 411 - Alan Sussman 4
What can you expect to learn in
this course?
• What to look for in buying a PC (brag to
parents and friends!).
• How computer architecture affects
programming style.
• Variations on interconnection networks.
• A great deal of jargon.
CMSC 411 - Alan Sussman 5
Syllabus
• More on web page
• Importance of doing the homework.
• Lecture notes available on the web. You
can print them before coming to class and
then add your own notes (if I put them up in
time).
• I'll correct any typos/errors after each
lecture and re-post
CMSC 411 - Alan Sussman 6
The Textbook – H&P
• Everyone complains about it.
• Virtually all of the top schools use it.
• You can handle it, but you have to work at
it – do the reading
• Through lecture notes, other references, and
edits, I'll try to help you put it all together.
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Computer Design and Evaluation: Performance, Architecture, and Benchmarking and more Study notes Computer Science in PDF only on Docsity!

Computer Systems Architecture

CMSC 411

Unit 1 – Computer Design and

Evaluation

Alan Sussman

January 28, 2003

CMSC 411 - Alan Sussman 2

Administrivia

  • Class web pages are at http://www.cs.umd.edu/class/spring2003/cmsc411- - and linked in from CS dept. class web pages
  • Class accounts for project will be on CSIC Linux cluster
  • First homework, for Unit 1, handed out Thursday, 1/
  • Start reading Ch. 1 of H&P

CMSC 411 - Alan Sussman 3

Introduction

  • Why are you taking this course?
    • You really liked the material in 311 and want to learn more?
    • The course time fit into your schedule well?
    • You needed upper level CS courses and chose this one at random?
    • All the courses you really wanted to take were filled?

CMSC 411 - Alan Sussman 4

What can you expect to learn in

this course?

  • What to look for in buying a PC (brag to

parents and friends!).

  • How computer architecture affects

programming style.

  • Variations on interconnection networks.
  • A great deal of jargon.

CMSC 411 - Alan Sussman 5

Syllabus

  • More on web page
  • Importance of doing the homework.
  • Lecture notes available on the web. You

can print them before coming to class and

then add your own notes (if I put them up in

time).

  • I'll correct any typos/errors after each

lecture and re-post

CMSC 411 - Alan Sussman 6

The Textbook – H&P

  • Everyone complains about it.
  • Virtually all of the top schools use it.
  • You can handle it, but you have to work at

it – do the reading

  • Through lecture notes, other references, and

edits, I'll try to help you put it all together.

CMSC 411 - Alan Sussman 7

Chapter 1 of H&P

  • Read Chapter 1; you can skip the economics of cost vs. price.
  • Historical Perspective - Section 1.
    • Computers as we know them are roughly 55 years old.
    • The von Neumann machine model that underlies computer design is only partially von Neumann's.
    • Why does Konrad Zuse say he had ``the bad luck of being too early"? - Optional: Read his own recollections in TR 180 of ETH, Zürich, http://www.inf.ethz.ch/research/publications/show.php?what=180&la ng=en&type=tr (contains both German and English)
    • No one was able to successfully patent the idea of a stored-program computer, much to the dismay of Eckert and Mauchly. CMSC 411 - Alan Sussman 8

Early development steps

  • Make input and output easier than wiring

circuit boards and reading lights.

  • Make programming more easy by

developing higher level programming

languages, so that users did not need to use

binary machine code instructions.

  • Develop storage devices.

CMSC 411 - Alan Sussman 9

Later development steps

  • Faster
  • More storage
  • Cheaper
  • Networking and parallel computing
  • Better user interfaces
  • Ubiquitous applications
  • Development of standards

CMSC 411 - Alan Sussman 10

Perspective: An example

  • Most powerful computer in 1988: CRAY Y-MP.
  • 1993: a desktop workstation (IBM Power-2) matched its power at less than 10% of the cost.
  • How did this happen?
    • hardware improvements, e.g., squeezing more circuits into a smaller area.
    • improvements in instruction-set design, e.g., making the machine faster on a small number of frequently used instructions.
    • improvements in compilation, e.g., optimizing code to reduce memory accesses and make use of faster machine instructions.

CMSC 411 - Alan Sussman 11

Computer Architecture

  • instruction set architecture:
    • which elementary instructions are basic to programming the machine.
  • organization:
    • memory systems to store information,
    • bus systems to move information,
    • logical design of CPU (recall from 311).
  • hardware:
    • what physical components are used to form the computer. CMSC 411 - Alan Sussman 12

Why a computer scientist should

care

  • to choose an architecture that matches a

user's needs.

  • to compare and benchmark different

computers.

  • to decide whether an upgrade is cost-

efficient.

  • to write a program that exploits the

strengths of a given computer.

CMSC 411 - Alan Sussman 19

Time (cont.)

  • Usual measurements of time:
    • system performance measures the elapsed time on unloaded (single user) system.
    • CPU performance measures user CPU time on unloaded system.

CMSC 411 - Alan Sussman 20

How to measure CPU

performance

  • Benchmark : a program used to measure performance.
    • real programs - what is reality?
    • kernels - loops in which most of time is spent in a real program
    • toy programs
    • synthetic programs
  • Fact: Computer manufacturers tune their product to the popular benchmarks. ``Your results may vary," unless you run benchmark programs and nothing else. See Figure 1.12 listing programs in the SPEC CPU2000 benchmark suite

Computer Systems Architecture

CMSC 411

Unit 1 – Computer Design and

Evaluation

Alan Sussman

January 30, 2003

CMSC 411 - Alan Sussman 22

Administrivia

  • Homework #1 posted
    • H&P 1.3 (a,b), 1.7 (a-c), 1.11, 1.17(a-d)
    • due in one week, in class - Feb. 6

CMSC 411 - Alan Sussman 23

Last time

  • Computer architecture is:
    • Instruction set arch. (ISA), organization, hardware
  • Have to deal with rapidly changing technology
    • Transistor, DRAM, disk density all increasing very rapidly (50-60%/year), and cost dropping
  • Cost of a die on a wafer proportional to square of die area
  • Performance = 1/(execution time)
    • System performance is elapsed time
    • CPU performance is user CPU time
  • Benchmarks
    • Real programs vs. kernels vs. toy or synthetic programs CMSC 411 - Alan Sussman 24

Reproducibility

  • Benchmarking is a laboratory experiment,

and needs to be documented as fully as a

well-run chemistry experiment.

  • Identify each variable hardware component.
  • Identify compiler flags and measure variability.
  • Verify reproducibility and provide data for others to reproduce the benchmarking results.

CMSC 411 - Alan Sussman 25

Reporting results

  • Example of parameters for SPEC CINT benchmark is in H&P Figure 1. - for a Dell workstation running Windows NT4. - data on hardware - CPU (how many, primary and secondary caches), memory, disk - data on software – OS, compilers, file system type, and compiler flags used (very important!)
  • How to summarize results?

CMSC 411 - Alan Sussman 26

Sample results

From Figure 1.15 in H&P – which machine is fastest?

Program 1001 110 40 P3 (sec)

Program 1000 100 20 P2 (sec)

Program 1 10 20 P1 (sec)

Computer C

Computer B

Computer A

CMSC 411 - Alan Sussman 27

Statistical reporting

  • “It is rare indeed when advertisers, politicians, pop economists, and drumbeaters for medical programs offer a statistical argument that is not either misleading or downright deceptive.” - Martin Gardner
  • “... in mathematics you don't understand things, you just get used to them.” - John von Neumann
  • “... if you torture your data long enough, they will tell you what you want to hear.” - James L. Mills, M.D. CMSC 411 - Alan Sussman 28

Statistical reporting (cont.)

  • The average execution time is the arithmetic mean : - sum the execution times for each program and divide by the number of programs n.
  • The harmonic mean is n divided by the sum of some function of each execution time.
  • Often, both of these means are modified to give more weight to more important programs.

CMSC 411 - Alan Sussman 29

Statistical reporting (cont.)

  • The arithmetic mean is good if the weights represent your own workload. Then you can compare how each machine will perform for you. - Don't set the weights based on performance on any particular machine; Figure 1.16 illustrates confusing results obtained by doing this.
  • The harmonic mean gives the same sort of information, but is used when rates (e.g., instructions per second) are measured instead of times.

CMSC 411 - Alan Sussman 30

Geometric mean

  • To measure relative performance, use the geometric mean. - Choose a reference machine , divide all execution times by the corresponding times on the reference machine, multiply these ratios together, and take the n th root of the product.
  • Geometric means have the nice property that you get consistent results regardless of which machine is used to normalize (Figure 1.17)

CMSC 411 - Alan Sussman 37

CPU Performance

  • More jargon …
  • Something new happens in a computer during every clock cycle.
  • The clock rate is what manufacturers usually advertise to indicate a chip's speed: - e.g., a 1.2GHz Pentium 4.
  • But how fast the machine is depends on the clock rate and the number of clock cycles per instruction (CPI) CMSC 411 - Alan Sussman 38

CPU Performance (cont.)

  • So total CPU time = instruction count (IC)

times CPI divided by clock rate

(MHz/GHz).

  • IC * CPI / MHz
  • There’s an example on p. 44 that illustrates

the overall effect

  • Note: CPI is not a good measure of

performance since it varies by type of

instruction!

CMSC 411 - Alan Sussman 39

How to design a fast computer

  • Amdahl's law says put your effort into optimizing instructions that are often used.
  • The locality of reference rule-of-thumb says that a program spends 90% of its time in 10% of the code, so we should put effort into taking advantage of this, through a memory hierarchy.
  • For data accesses, 2 types of locality
    • temporal
    • spatial

CMSC 411 - Alan Sussman 40

Take advantage of parallelism

  • At system level
    • e.g., use multiple CPUs (Unit 7), disks (Unit 6)
  • At processor level
    • among instructions (Unit 4)
    • e.g., pipelining (Unit 3)
  • At digital design level
    • e.g., set associative caches (Unit 5), carry- lookahead in ALU design

CMSC 411 - Alan Sussman 41

Performance/Price Performance

For desktop systems (H&P Figure 1.18) – 512MB ECC SDRAM, July 2001

Dell 530 Pentium 4 1700 $

Sunblade 1000 UltraSPARC III 750 $

Sunblade 100 UltraSPARC II-e 500 $

IBM RS6000 IBM Power III-2 450 $13, 44P/

HP c3600 PA 8600 552 $12,

Dell 420 Pentium III 1000 $

Compaq 7000 AMD Athlon 1400 $

Clock rate Price (MHz)

Model Processor

CMSC 411 - Alan Sussman 42

SPEC CINT2000 – H&P 1.

CMSC 411 - Alan Sussman 43

SPEC CFP2000 – H&P 1.

CMSC 411 - Alan Sussman 44

Performance/Price Performance

  • For OLTP systems
  • See Figure 1.21 (and www.tpc.org) for

system details

  • both high total performance, and high price performance systems
  • No uniprocessor systems
  • one cluster (IBM with 280 Pentium IIIs)
  • others multiprocessors (SMPs)

CMSC 411 - Alan Sussman 45

High performing OLTP systems

H&P Figure 1.

CMSC 411 - Alan Sussman 46

High price/performance systems

H&P Figure 1.

CMSC 411 - Alan Sussman 47

Fallacies

  • MIPS (Millions of Instructions Per Second)

or MFLOPS (Millions of Floating Point

Operations) is a good way to compare

performance.

  • Fallacy : One computer may have more

powerful instructions than another, and

MIPS/MFLOPS depends on the instruction

mix that you choose.

CMSC 411 - Alan Sussman 48

Fallacies (cont.)

  • Relative performance of 2 processors with

same ISA can be judged by clock rate or by

single benchmark suite

  • Fallacy : other factors matter too, e.g.,

pipeline structure, memory system