eitf20: computer architecture...lund university / eitf20/ liang liu 2016 the first electronic...

67
Lund University / EITF20/ Liang Liu 2016 EITF20: Computer Architecture Part1.1.1: Introduction Liang Liu [email protected] 1

Upload: others

Post on 26-Dec-2019

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

EITF20: Computer ArchitecturePart1.1.1: Introduction

Liang Liu

[email protected]

1

Page 2: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Course Factor

Computer Architecture (7.5HP)

http://www.eit.lth.se/kurs/eitf20

EIT’s Course Service Desk (studerandeexpedition)

• Course secretary: Anne Andersson, Room 3152B

• e-mail: [email protected]

2

Page 3: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Outline

Computers

Computer Architecture

This Course

Trends

Performance

Quantitative Principles

3

Page 4: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Computer is everywhere

4

Page 5: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Build a Computer…

5

Power Consumption: 65 to 250 watts

Page 6: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Build a Computer…

6

Page 7: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Build a Computer…

7

Page 8: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Build a Computer…

8

$ 2.98

Page 9: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Build a Computer…

9

80 Megawatts

Page 10: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Class of Computers

10

Page 11: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Intel v.s. ARM

11

Page 12: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

IoT - ARM

12

Page 13: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Mid-1800 Programmable

computer

• Charles Babbage (analytical engine)

• Ada Lovelace (programmer)

1940s First modern computers

• Zuse, MARK, ENIAC, ...

1960s Mainframe

• 1964 IBM System/360

1970s Minicomputer

• 1971 First microprocessor

Time-line

13

£17,000

(1832)

Page 14: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

1980s Desktop

• 1977 Apple II

• 1981 IBM PC

1990s PDA

2000s Embeded computers

2010s Cloud computing

2020s Boundless computing, Edge computing

Time-line

14

Page 15: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

The first electronic computer

15

ENIAC-1946

18 000 vacuum tubes, 30 ton, 150m2 ,140kW

Page 16: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

The first electronic computer

16

ENIAC-1946

18 000 tubes, 30 ton, 150m2 ,140kW

How many transistors

of today’s most

advanced CPU?

Page 17: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

The first electronic computer

17

ENIAC-1946

18 000 tubes, 30 ton, 150m2 ,140kW

If we just scale up from

18000 to 2 billion:

4 Mton = 1.7 million Volvo V70

19 Mm2 = 2700 football filed

18 GW = 28 Barsebäcksreaktorer

Page 18: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

The first electronic computer

18

ENIAC-1946

18 000 tubes, 30 ton, 150m2 ,140kW

"Computers in the future may weigh no

more than 1.5 tons."-- Popular Mechanics, forecasting the relentless

march of science, 1949

"640K ought to be enough for anybody."

-- Bill Gates, 1981

"I think there is a world market for maybe

five computers."

-- Thomas Watson, chairman of IBM, 1943

Page 19: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Interlude: The imitation game

19

Page 20: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Interlude: Alan Turing

20

Page 21: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Interlude: Debug

21

Page 22: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Development of Microprocessor

22

Page 23: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Outline

Computers

Computer Architecture

This Course

Trends

Performance

Quantitative Principles

23

Page 24: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 201624

The art of designing computers is

based on engineering principles

and

quantitative performance evaluation

Page 25: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Computer abstraction levels

25

Page 26: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

ISA: Instruction-set architecture

Computer orginization: micro architecture

Specific implementation

Computer Architecture

26

Computer architecture is a set of disciplines that

describe the functionality, organization and

implementation of computer systems.

Page 27: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

ISA

27

An instruction set architecture (ISA) is the interface between the

computer's software and hardware and also can be viewed as the

programmer's view of the machine.

Page 28: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Microarchitecture

28

Microarchitecture is the way a given instruction set

architecture (ISA) is implemented on a processor.

von Neumann architecture

Page 29: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Microarchitecture

29

Microarchitecture is the way a given instruction set

architecture (ISA) is implemented on a processor.

Page 30: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Microarchitecture

30

Page 31: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Implementation

31

Page 32: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

The role of computer architecture?

32

Page 33: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Why computer architecture?

33

Understand how to evaluate and choose

• What do we mean ”one computer is faster than another”?

• How can Gene Amdahl help you decide which enhancement

is the best?

• Is a larger cache better than higher clock frequency?

• Why is pipelining faster than combinational circuits?

• Different levels of caches - why?

• ...

Design your own specialized architecture

• Embedded special purpose processors

Axis Communications/Ericsson/Nokia/ARM/SAAB

...

Write better program

Page 34: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

What computer architecture?

34

Design and analysis

• ISA

• Orgnization (microarchitecture)

• Implementation

To meet requirements of

• Functionality (application, standards…)

• Price

• Performance

• Power

• Reliability

• Dependability

• Compatability

• ..

Page 35: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

What affect computer architecture?

35

Page 36: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

X86 Architecture

36

Page 37: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Architecture change due to new applications

37

?

Page 38: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Architecture change due to new applications

38

Page 39: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Outline

Computers

Computer Architecture

This Course

Trends

Performance

Quantitative Principles

39

Page 40: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

After this course, you will...

Have a thorough knowledge about the design principles for

modern computer systems

Have an understanding of the relations between

• The design of the instruction set of a processor

• The microarchitecture of a processor

Be able to evaluate design alternatives towards design goals

using quantitative evaluation methods

Side effects...

• Better digital IC designer

• Better understanding of compiler, operating system, high-

performance programming

Course Objectives

40

Page 41: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Book Recommendation

Computer Architecture – A Quantitative Approach

• Hennessy, Patterson

• 5th Edition

Page 42: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Course Content & Schedule

42

Overview

Instruction set

architecture

Pipeline

Memory System

Storage System

I/Os

Multiprocessor

Concept &Theory

Assignment & Project

Exams

Page 43: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Lecture

• Liang Liu, Associate Professor

• Email: [email protected]

• Room: E2342

• Homepage: http://www.eit.lth.se/staff/Liang.Liu

Teaching Assistants

• Mojtaba Mahdavi

• Steffen Malkowsky

Teachers

43

Mojtaba

Mahdavi

Steffen

Malkowsky

Page 44: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Lectures and Labs

Lectures (10)

• Tuesday : 13:15-15:00 E:B (V:B)

• Thursday: 08:15-10:00 E:1406 (E:B)

• Covers design principles and analysis methodology

• Read the literature before each lecture

• Does not cover all of the literature

• Ask many questions!

Labs (4)

• Tuesday: 08:15-12:00 E:4118-E:4119

• Friday: 08:15-12:00 (except for last one) E:4118-E:4119

• 2 students/group

• Read manual and literature before the lab

• Do Home Assignments before lab (or be sent home)

• Experiment and discuss with assistants

• Understand what you have done (or FAIL the exam)

• Finish Lab before DEADLINE

Page 45: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Examination (Written)

Anonymous exam

Pass all labs to be able to attend written exam

Five problems• Highly lab related

• Problem solving

• Descriptive nature

46

Page 46: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Questions?

47

Page 47: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Outline

Computers

Computer Architecture

This Course

Trends

Performance

Quantitative Principles

48

Page 48: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 201649

Moore’s Law

Electronics, Apr. 19, 1965

Gordon Moore (co-founder of Intel)

described a doubling every year in

the number of components per

integrated circuit

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

1959

1960

1961

1962

1963

1964

1965

1966

1967

1968

1969

1970

1971

1972

1973

1974

1975

LOG

2 OF

THE

NU

MB

ER O

F

CO

MPO

NEN

TS P

ER IN

TEG

RA

TED

FU

NC

TIO

N

Page 49: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 201650

Moore’s Law

Moore reformulates to a doubling every 2 years. (1975)

Interview 2000:

”...change the doubling time again... to maybe four or five

years.”

Gordon Moore

Co-founder of Intel ca. 1 billion transistors in 2007

Page 50: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Performance of Microprocessor

51

Page 51: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 201652

Does not Apply to All

Processing power doubles every 18 months

Memory size doubles every 18 months

Disk capacity doubles every 18 months

Disk positioning rate (seek & rotate) doubles every ten years!

Speed of DRAM and disk improves a few % per year

Page 52: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Moore’s Law: power density

53

www.xbitlabs.com

Pentium IV chip area

(in 130 nm technology)1.3 cm2

This gives about 100 W/cm2 that

needs to be transported away (cooling)

Comparison: This little thing

operates at about 10 W/cm2.

Page 53: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Moore’s Law: power density

1

10

100

1000

10000

Po

wer D

en

sit

y [

W/

cm

²]

4004

8008

8080

8085

8086

286386

486

P6

Pentium® proc

Source: Borkar, De Intel

Rocket Nozzle

Nuclear Reactor

Hot Plate

54

Sun’s

Surface

i5, i7

Page 54: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Outline

Computers

Computer Architecture

This Course

Trends

Performance

Quantitative Principles

55

Page 55: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Performance

56

How to define execution time?

Page 56: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Performance

57

Page 57: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Program to evaluate performance

58

Real programs: e.g. TeX, spice, SPEC benchmarks, ...

Kernels - small, key pieces of real applications

Toy programs - sort, prime number generation

• Something 100-line programs

Synthetic benchmarks - “The average program”

• Fake programs to mathc the behaviour of real applications

• Real programs are the only true measurement objects

SPEC benchmarks will be used here (plus some toy programs )

• Real programs modified to be portable and to minimize the effect of IO

Page 58: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Which Computer is Faster?

60

A is 10 times faster than B for P1

B is 10 times faster than A for P2

A and B are faster than C for P1

C is faster than A and B if both P1 and P2 are run

Page 59: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Which Computer is Faster?

61

Page 60: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Outline

Computers

Computer Architecture

This Course

Trends

Performance

Quantitative Principles

62

Page 61: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Quantitative Principles

63

This is intro to design and analysis

• Take advantage of parallelism

ILP, DLP, TLP, ...

• Principle of locality

90% of execution time in only 10% of the code

• Focus on the common case

In makeing a design trade-off, favor the frquent case ove the

infrequent case

• Amdahl’s Law

The performance improvement gained from uisng faster mode is

limited by the fraction of the time the faster mode can be used

• The Processor Performance Equation

Page 62: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Amdahl’s Law

64

Best you could ever hope to do:

enhancedmaximum Fraction - 1

1 Speedup

Page 63: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Amdahl’s Law: example

65

New CPU is 10 times faster!

60% for I/O which remains almost the same…

56.1

64.0

1

10

0.4 0.4 1

1

Speedup

Fraction Fraction 1

1 Speedup

enhanced

enhancedenhanced

overall

Apparently, its human nature to be attracted by 10X

faster, vs. keeping in perspective its just 1.6X faster

Page 64: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Amdahl’s Law: example

66

http://www-inst.eecs.berkeley.edu/~n252/paper/Amdahl.pdf

Page 65: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Aspect of CPU performance

67

Page 66: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Instructions are not created equally

68

Page 67: EITF20: Computer Architecture...Lund University / EITF20/ Liang Liu 2016 The first electronic computer 18 ENIAC-1946 18 000 tubes, 30 ton, 150m2 ,140kW "Computers in the future may

Lund University / EITF20/ Liang Liu 2016

Average CPI: example

69

Invest resources where time is spent!