technology trends and performance p&h, h&p, vdacs470/s17/chapter1cperf.pdf10-21 zepto 1021...

56
COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface From Chapter 1 Technology Trends and Performance P&H, H&P, VDA

Upload: others

Post on 07-Mar-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

COMPUTERORGANIZATION ANDDESIGNThe Hardware/Software Interface

From Chapter 1

Technology Trends and

Performance

P&H, H&P, VDA

Page 2: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

2

Components of PerformanceComponents of

Performance

Units

CPU time for a program Time (seconds, etc.)

Instruction count Instructions executed by

the program

CPI Average number of

clock cycles per

instruction

Clock cycle time Time period of clock

(seconds, etc.)

Page 3: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

3

Small and Large Numbers

Small Large

10-3 milli m 103 kilo k

10-6 micro μ 106 mega M

10-9 nano n 109 giga G

10-12 pico p 1012 tera T

10-15 femto f 1015 peta P

10-18 atto 1018 exa

10-21 zepto 1021 zetta

10-24 yocto 1024 yotta

Page 4: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

4

Computer Memory Size

Number bits bytes

210 1,024 K Kb KB

220 1,048,576 M Mb MB

230 1,073,741,824 G Gb GB

240 1,099,511,627,776 T Tb TB

Page 5: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 5

The Computer Revolution

Progress in computer technology

Underpinned by Moore’s Law

Makes novel applications feasible

Computers in automobiles

Cell phones

Human genome project

World Wide Web

Search Engines

Computers are pervasive

§1.1

Intro

ductio

n

Page 6: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 6

Classes of Computers

Personal computers General purpose, variety of software

Subject to cost/performance tradeoff

Server computers: Network based

High capacity, performance, reliability

Range from small servers to building sized

Supercomputers High-end scientific and engineering calculations

Highest capability but a small fraction of the computer market

Embedded computers Hidden as components of systems

Stringent power/performance/cost constraints

Page 7: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 7

The PostPC Era

Page 8: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

The PostPC Era

Chapter 1 — Computer Abstractions and Technology — 8

Personal Mobile Device (PMD)

Battery operated

Connects to the Internet

Hundreds of dollars

Smart phones, tablets, electronic glasses

Cloud computing

Warehouse Scale Computers (WSC)

Software as a Service (SaaS)

Portion of software run on a PMD and a portion run in the Cloud

Amazon and Google

Page 9: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 9

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

Page 10: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Eight Great Ideas

Design for Moore’s Law

Use abstraction to simplify design

Make the common case fast

Performance via parallelism

Performance via pipelining

Performance via prediction

Hierarchy of memories

Dependability via redundancy

Chapter 1 — Computer Abstractions and Technology — 10

§1.2

Eig

ht G

reat Id

eas in

Com

pute

r

Arc

hite

ctu

re

Page 11: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 11

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.3

Belo

w Y

our P

rogra

m

Page 12: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 12

Components of a Computer

Same components for

all kinds of computer

Desktop, server,

embedded

Input/output includes

User-interface devices

Display, keyboard, mouse

Storage devices

Hard disk, CD/DVD, flash

Network adapters

For communicating with

other computers

§1.4

Under th

e C

overs

The BIG Picture

Page 13: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 13

Touchscreen

PostPC device

Supersedes keyboard

and mouse

Resistive and

Capacitive types

Most tablets, smart

phones use capacitive

Capacitive allows

multiple touches

simultaneously

Page 14: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 14

Through the Looking Glass

LCD screen: picture elements (pixels)

Mirrors content of frame buffer memory

Page 15: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 15

Opening the Box

Capacitive multitouch LCD screen

3.8 V, 25 Watt-hour battery

Computer board

Page 16: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 16

Inside the Processor (CPU)

Datapath: performs operations on data

Control: sequences datapath, memory, ...

Cache memory

Small fast SRAM memory for immediate access to

data

Devices outside of CPU

Secondary storage

Removable storage

Network/Cloud storage

Page 17: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 17

A Safe Place for Data

Volatile main memory

Loses instructions and data when power off

Non-volatile secondary memory

Magnetic disk

Flash memory

Optical disk (CDROM, DVD)

Page 18: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 18

Networks

Communication, resource sharing,

nonlocal access

Local area network (LAN): Ethernet

Wide area network (WAN): the Internet

Wireless network: WiFi, Bluetooth

Page 19: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 19

Technology Trends

Electronics

technology

continues to evolve

Increased capacity

and performance

Reduced cost

Year Technology Relative performance/cost

1951 Vacuum tube 1

1965 Transistor 35

1975 Integrated circuit (IC) 900

1995 Very large scale IC (VLSI) 2,400,000

2013 Ultra large scale IC 250,000,000,000

DRAM capacity

§1.5

Technolo

gie

s fo

r Build

ing P

rocessors

and M

em

ory

Page 20: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Semiconductor Technology

Silicon: semiconductor

Add materials to transform properties:

Conductors

Insulators

Switch

Chapter 1 — Computer Abstractions and Technology — 20

Page 21: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 21

Manufacturing ICs

Yield: proportion of working dies per wafer

Page 22: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 22

Intel Core i7 Wafer

300mm wafer, 280 chips, 32nm technology

Each chip is 20.7 x 10.5 mm

Page 23: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 23

Integrated Circuit Cost

Nonlinear relation to area and defect rate

Wafer cost and area are fixed

Defect rate determined by manufacturing process

Die area determined by architecture and circuit design

2area/2)) Diearea per (Defects(1

1Yield

area Diearea Wafer waferper Dies

Yield waferper Dies

waferper Costdie per Cost

Page 24: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 24

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 500 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.6

Perfo

rmance

Page 25: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 25

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…

Page 26: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 26

Relative Performance

Define Performance = 1/Execution Time

“X is n time faster than Y”

n XY

YX

time Executiontime Execution

ePerformancePerformanc

Example: time taken to run a program

10s on A, 15s on B

Execution TimeB / Execution TimeA

= 15s / 10s = 1.5

So A is 1.5 times faster than B

Page 27: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 27

Measuring Execution Time

Elapsed time

Total response time, including all aspects Processing, I/O, OS overhead, idle time

Determines system performance

CPU time

Time spent processing a given job

Discounts I/O time, other jobs’ shares

Comprises user CPU time and system CPU time

Different programs are affected differently by CPU and system performance

Page 28: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 28

CPU Clocking

Operation of digital hardware governed by a

constant-rate clock

Clock (cycles)

Data transfer

and computation

Update state

Clock period

Clock period: duration of a clock cycle

e.g., 250ps = 0.25ns = 250×10–12s

Clock frequency (rate): cycles per second

e.g., 4.0GHz = 4000MHz = 4.0×109Hz

Page 29: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 29

CPU Time

Performance improved by

Reducing number of clock cycles

Increasing clock rate

Hardware designer must often trade off clock

rate against cycle count

Rate Clock

Cycles Clock CPU

Time Cycle ClockCycles Clock CPUTime CPU

Page 30: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 30

Example: Faster clock but more cycles

Computer A: 2GHz clock, 10s CPU time

Designing Computer B

Aim for 6s CPU time

Can do faster clock, but causes 1.2 × clock cycles

How fast must Computer B clock be?

4GHz6s

1024

6s

10201.2Rate Clock

10202GHz10s

Rate ClockTime CPUCycles Clock

6s

Cycles Clock1.2

Time CPU

Cycles ClockRate Clock

99

B

9

AAA

A

B

BB

Page 31: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 31

Instruction Count and CPI

Instruction Count for a program

Determined by program, ISA and compiler

Average cycles per instruction

Determined by CPU hardware

If different instructions have different CPI

Average CPI affected by instruction mix

Clock Cycles = Instruction Count ´Cycles per Instruction

CPU Time = Instruction Count´CPI´Clock Cycle Time

=Instruction Count ´CPI

Clock Rate

Page 32: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 32

Ex: CPI/Cycle time tradeoff

Computer A: Cycle Time = 250ps, CPI = 2.0

Computer B: Cycle Time = 500ps, CPI = 1.2

Same ISA

Which is faster, and by how much?

1.2500psI

600psI

ATime CPU

BTime CPU

600psI500ps1.2I

BTime Cycle

BCPICount nInstructio

BTime CPU

500psI250ps2.0I

ATime Cycle

ACPICount nInstructio

ATime CPU

A is faster…

…by this much

Page 33: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 33

CPI in More Detail

If different instruction classes take different

numbers of cycles

n

1i

ii )Count nInstructio(CPICycles Clock

Weighted average CPI

n

1i

ii

Count nInstructio

Count nInstructioCPI

Count nInstructio

Cycles ClockCPI

Relative frequency

Page 34: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 34

Ex: Compiler Choices

Alternative compiled code sequences using instructions in classes A, B, C

Class A B C

CPI for class 1 2 3

IC in sequence 1 2 1 2

IC in sequence 2 4 1 1

Sequence 1: IC = 5

Clock Cycles

= 2×1 + 1×2 + 2×3

= 10

Avg. CPI = 10/5 = 2.0

Sequence 2: IC = 6

Clock Cycles

= 4×1 + 1×2 + 1×3

= 9

Avg. CPI = 9/6 = 1.5

Page 35: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 35

Performance Summary

Performance depends on

Algorithm: affects IC, possibly CPI

Programming language: affects IC, CPI

Compiler: affects IC, CPI

Instruction set architecture: affects IC, CPI, Tc

The BIG Picture

cycle Clock

Seconds

nInstructio

cycles Clock

Program

nsInstructioTime CPU

Page 36: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 36

Power Trends

In CMOS IC technology

§1.7

The P

ow

er W

all

FrequencyVoltageload CapacitivePower 2

×1000×30 5V → 1V

Page 37: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 37

Reducing Power

Suppose a new CPU has

85% of capacitive load of old CPU

15% voltage and 15% frequency reduction

0.520.85FVC

0.85F0.85)(V0.85C

P

P 4

old

2

oldold

old

2

oldold

old

new

The power wall

We can’t reduce voltage further

We can’t remove more heat

How else can we improve performance?

Page 38: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 38

Power consumption

Intel Pentium G4400 Processor Review – Budget Skylake

Apr 12, 2016

Page 39: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 39

Uniprocessor Performance§

1.8

The S

ea C

hange: T

he S

witc

h to

Multip

rocessors

Constrained by power, instruction-level parallelism,

memory latency

Page 40: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 40

Multiprocessors

Multicore microprocessors

More than one processor per chip

Requires explicitly parallel programming

Compare with instruction level parallelism

Hardware executes multiple instructions at once

Hidden from the programmer

Hard to do

Programming for performance

Load balancing

Optimizing communication and synchronization

Page 41: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 41

SPEC CPU Benchmark

Programs used to measure performance Supposedly typical of actual workload

Standard Performance Evaluation Corp (SPEC) Develops benchmarks for CPU, I/O, Web, …

SPEC CPU2006 Elapsed time to execute a selection of programs

Negligible I/O, so focuses on CPU performance

Normalize relative to reference machine

Summarize as geometric mean of performance ratios CINT2006 (integer) and CFP2006 (floating-point)

n

n

1i

iratio time Execution

Page 42: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 42

CINT2006 for Intel Core i7 920

Ref machine: Ultraspark II 1997

Page 43: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 43

SPEC Power Benchmark

Power consumption of server at different

workload levels

Performance: ssj_ops/sec

Power: Watts (Joules/sec)

10

0i

i

10

0i

i powerssj_ops Wattper ssj_ops Overall

Page 44: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 44

SPECpower_ssj2008 for Xeon X5650

Page 45: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 45

Pitfall: Amdahl’s Law

Improving an aspect of a computer and

expecting a proportional improvement in

overall performance

§1.1

0 F

alla

cie

s a

nd P

itfalls

2080

20 n

Can’t be done!

unaffectedaffected

improved Tfactor timprovemen

TT

Example: multiply accounts for 80s/100s

How much improvement in multiply performance to

get 5× overall?

Corollary: make the common case fast

Page 46: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 46

Fallacy: Low Power at Idle

Look back at i7 power benchmark

At 100% load: 258W

At 50% load: 170W (66%)

At 10% load: 121W (47%)

Google data center

Mostly operates at 10% – 50% load

At 100% load less than 1% of the time

Consider designing processors to make

power proportional to load

Page 47: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 47

Pitfall: MIPS as a Performance Metric

MIPS: Millions of Instructions Per Second

Doesn’t account for

Differences in ISAs between computers

Differences in complexity between instructions

66

6

10CPI

rate Clock

10rate Clock

CPIcount nInstructio

count nInstructio

10time Execution

count nInstructioMIPS

CPI varies between programs on a given CPU

Page 48: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

48

Relative MIPS Ratings

Peak MIPS Choose an instruction mix to minimize CPI

The rating can be too high and unrealistic for general programs

Relative MIPS: Use a reference computer system

Time(ref)Relative MIPS = ────── × MIPS(ref)

Time

Historically, VAX-11/ 780, believed to have a

1 MIPS performance, was used as reference.

Page 49: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

MIPS

Acronym for million instructions per second.

“MIPS really stands for Meaningless Indicator of Performance”.

MIPS rating can give you a general idea of a computer's speed. The IBM PC/XT computer, for example, is rated at ¼ MIPS, while Pentium-based PCs run at over 100 MIPS.

Page 50: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

50

A 1994 MIPS Rating Chart (updated)

Computer MIPS Price

1975 IBM mainframe 10 $10M

1976 Cray-1 160 $20M

1979 DEC VAX 1 $200K

1981 IBM PC 0.25 $3K

1984 Sun 2 1 $10K

1994 Pentium PC 66 $3K

1995 Sony PCX video game 500 $500

1995 Microunity set-top 1,000 $500

2015 Intel Core i7 6700K (4 core) 161,173 $340

New

York

Tim

es, A

pri

l 20,

1994

Page 51: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Chapter 1 — Computer Abstractions and Technology — 51

Concluding Remarks

Cost/performance is improving

Due to underlying technology development

Hierarchical layers of abstraction

In both hardware and software

Instruction set architecture

The hardware/software interface

Execution time: the best performance measure

Power is a limiting factor

Use parallelism to improve performance

§1.9

Conclu

din

g R

em

ark

s

Page 52: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Transistor: Building Block of

Computers

Microprocessors contain lots of transistors

Intel 8086 (1978): 29 thousand

Intel 80186 (1982): 55 thousand

Intel 80386 (1985): 275 thousand

Intel 80486 (1989): 1.1 million

Intel Pentium (1993): 3.1 million

Intel Pentium II (1998): 7.5 million

Intel Pentium III (2001): 45 million

Intel Pentium 4 (2006): 184 million

Intel Core 2 Duo (2006): 291 million

Intel Quad Core i7 (2011): 1.1 billion

Intel 8-core Xeon (2012): 2.3 billion

52CS270 - Fall Semester 2015

Page 53: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

53

Page 54: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Trends in Technology

Integrated circuit technology Transistor density: 35%/year

Die size: 10-20%/year

Integration overall: 40-55%/year

DRAM capacity: 25-40%/year (slowing)

Flash capacity: 50-60%/year 15-20X cheaper/bit than DRAM

Magnetic disk technology: 40%/year 15-25X cheaper/bit then Flash

300-500X cheaper/bit than DRAM

Tre

nds in

Technolo

gy

Page 55: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Trends in Technology

Growth of something S is α/year In n years S will be 1x(1+ α)n

Example: Number of transistors per year go up by 40% per year.

In 2 years by a factor of (1+0.4)2 = 1.96

Moore’s law (current version): In 2 years the number of transistors on a chip double.

Self fulfilling prophecy?

Tre

nds in

Technolo

gy

Page 56: Technology Trends and Performance P&H, H&P, VDAcs470/s17/Chapter1cPerf.pdf10-21 zepto 1021 zetta 10-24 yocto 1024 yotta. 4 Computer Memory Size Number bits bytes 210 1,024 K Kb KB

Bandwidth and Latency

Bandwidth or throughput Total work done in a given time

10,000-25,000X improvement for processors

300-1200X improvement for memory and disks

Latency or response time Time between start and completion of an event

30-80X improvement for processors

6-8X improvement for memory and disks

Which means that ..

..

Tre

nds in

Technolo

gy