Docsity

Quantifying Cost and Performance - Computer Organization | CS 4504, Study notes of Computer Architecture and Organization

Toggle sidebar
bg1
1
“Eighty percent of success is showing up."
Woody Allen
Quiz: Bad Chinese Food Challenge
You are given 100 marbles. 50 red and 50 yellow
There are two empty identical baskets.
Distribute all the marbles in the two baskets such that if I randomly,
without looking, reach into one of the baskets and pull out one
marble, I have the highest probability of pulling out a yellow
marble. Give the approximate probabilities.
Name: ___________________
Basket #1: ____ red ____ yellow
Basket #2: ____ red ____ yellow
Probability of picking yellow: ______
"What does showbusiness teach you?
It teaches you that design is war;
it is a power struggle between the produces, directors,
authors, everyone who wants to be involved.."
Ted Nelson (Internet Pioneer)
“Everyone wants to direct.”
Hollywood proverb
Three aspects of design
ISA
organization
hardware
-Programmer visible instruction set
-High-level design (chip + chipset)
-Detailed design (VLSI, package)
+
architecture
From market to silicon
Design process
<design optimization><bkwd compatibility><legacy code –ISA><needs of users>
Implementation
of architecture
family
Functional
requirements of
architecture
Existing
application
software
Marketplace
Lessons from the market
•Separate architecture design and technology
–Increases ability to adapt arch family
•Backward compatibility necessary to compete
–Must support existing apps
•Marketplace demands performance –cheap
–Users want speed, but will only pay so much
price performance
Arch design
pf3
pf4
pf5

Partial preview of the text

Download Quantifying Cost and Performance - Computer Organization | CS 4504 and more Study notes Computer Architecture and Organization in PDF only on Docsity!

“Eighty percent of success is showing up."

Woody Allen

Quiz: Bad Chinese Food Challenge

You are given 100 marbles. 50 red and 50 yellow

There are two empty identical baskets.

Distribute all the marbles in the two baskets such that if I randomly,

without looking, reach into one of the baskets and pull out one

marble, I have the highest probability of pulling out a yellow

marble. Give the approximate probabilities.

Name: ___________________

Basket #1: ____ red ____ yellow

Basket #2: ____ red ____ yellow

Probability of picking yellow: ______

"What does showbusiness teach you?

It teaches you that design is war;

it is a power struggle between the produces, directors,

authors, everyone who wants to be involved.."

Ted Nelson (Internet Pioneer)

“Everyone wants to direct.”

Hollywood proverb

Three aspects of design

ISA

organization

hardware

  • Programmer visible instruction set
  • High-level design (chip + chipset)

+ - Detailed design (VLSI, package)

architecture

From market to silicon

Design process

<legacy code – ISA>

Implementation

of architecture

family

Functional

requirements of

architecture

Existing

application

software

Marketplace

Lessons from the market

  • Separate architecture design and technology
    • Increases ability to adapt arch family
  • Backward compatibility necessary to compete
    • Must support existing apps
  • Marketplace demands performance – cheap
    • Users want speed, but will only pay so much

price Arch design performance

Quantifying Cost and Performance

“Any performance problem can be solved by removing a

level of indirection.”

M. Haertel

“All problems in Computer Science can be solved by

another level of indirection.”

Butler Lampson

DRAM costs

Intel Pentium III Cost Quantifying Cost

Number of square dies that can be placed on a round wafer

Percentage of dies per wafer free from manufacturing defects

Number of “good” dies per wafer

2 diearea

waferdiameter

diearea

( 12 waferdiameter) diesper wafer

2 π π

α

−

defectsperareadiearea

dieyield wafer yield 1

gooddies per wafer=diesper wafer∗dieyield

Need to understand cost of computers ~ IC cost.

Example

• MIPS 4600

  • 77 mm

die area

  • Wafer cost = $

(a) Find # good chips for 20-cm wafer diameter

1 defect per cm

, wafer yield 95%, α=3.

77mm

=.77cm

=die area

diesper wafer

2

=  

π π

dieyield.95 1

  1. 0

−

gooddies per wafer=  357 ∗.478 = 170

Example

(b) Find cost per projected good die (untested, unpkged)

(c) Find IC cost

dieper wafer dieyield

wafercost

gooddiesper wafer

wafercost

die cost = =

$. 083 /sec* 10 sec

dieyield

costperunit timetestingtime

testing cost = =

MIPS 4600: PQFP package

•Pin count < 220 (MIPS 4600 has 208 pins)

•Package cost = $

•Test time = 10 sec

•Test cost per hour = $

•Assume final test yield = 1

Wafer cost = $

finaltest yield

diecosttestingcostpackagingcost ICcost =

Lies, darn lies, and statistics

  • To minimize
    • Cheating on results
    • Apples to oranges
  • Define methods for comparisons of workloads

(benchmarks)

  • How to fairly compare multiple machines and codes

Total 130 310 201

Program B 30 300 200

Program A 100 10 1

Computer 1 Computer 2 Computer 3

C3 is 1.5x faster than C2 for Prog B

C3 is 10x faster than C2 for Prog A

C1 is 10x faster than C2 for Prog B

C2 is 10x faster than C1 for Prog A

C3 is 1.5x faster than C

C1 is 1.5x faster than C

C1 is 2.4x faster than C

Using total execution time

All quantifiable methods should be proportional to total execution time

  • the great comparator – ensuring reflection of real performance.

Let’s get mean

Arithmetic mean

=

n

i

time i

n 1

*Both track total execution time

Arithmetic mean (weighted)

=

n

i

weighti time i

1

Total 130 310 201

Program B 30 300 200

Program A 100 10 1

Computer 1 Computer 2 Computer 3

What about unequal emphasis of codes in suite?

Weighted arithmetic mean

example

Computer C 20 20 20

Computer B 55 18.10 10.

Computer A 500.5 91.909 1.

W 1 =.5, W 2 =.5 W 1 =.909,W 2 =.091 W 1 =.999,W 2 =.

Arithmetic mean (weighted)

=

n

i

weighti time i

1

Prog 2 1000 100 20

Prog 1 1 10 20

Comp A Comp B Comp C

Be normal

Normalized execution time: normalize to a particular

machine by dividing all execution times by chosen

machine’s time

Example: Program P1 has the following execution times:

On machine A: 10 secs

On machine B: 100 secs

On machine C: 150 secs

Normalized to A: A=1, B=10, C=

Normalized to B: A=.1, B=1, C=1.

Execution time

ratio

Getting Meaner

Normalized arithmetic mean Normalized geometric mean

=

n

i 1

Executiontimeratio i

n

n

n

i 1

∏Executiontimeratio^ i

=

Prog 2 1000 100 20

Prog 1 1 10 20

Comp A Comp B Comp C

Taking the average of the normalized times Normalized example

ETR P2 1 .1 .02 10 1 .2 50 5 1

ETR P1 1 10 20 1 1 2 .05 .5 1

A B C A B C A B C

Normalized to A Normalized to B Normalized to C

=

n

i 1

Executiontimeratio i

n

n

n

i 1

∏Executiontimeratio^ i

=

NGM 1 1 .63 1 1 .63 1.58 1.58 1

NAM 1 5.05 10.01 5.05 1 1.1 25.0 2.75 1

A B C A B C A B C

Normalized to A Normalized to B Normalized to C

Bad idea

Geometric vs. Arithmetic

  • Arithmetic mean
    • Provides weighted average
    • Pros: proportional to overall execution time
    • Cons:
      • Can be rigged easily (disproportionate problem size)
      • Cannot use with normalizing
  • Normalized Geometric mean
    • Provides relative performance of machines to ref
    • Pros: same results regardless of ref machine
    • Cons:
      • Not proportional to overall execution time
      • Large % change in small overall time contributor can skew
  • Suggestions
    • Weight programs according to their actual frequency
    • Use problem size to pre -normalize program execution time
    • Combine approaches: summary of simple means and relative

performance to base machine