Chapter 1 Computer Abstractions and Technology
Chapter 1 Computer Abstractions and Technology
Chapter 1
Computer Abstractions
and Technology
1.1 Introduction
Computers in automobiles
Cell phones
Human genome project
World Wide Web
Search Engines
Classes of Computers
n
Desktop computers
n
n
Server computers
n
n
n
Embedded computers
n
n
n
n
Understanding Performance
n
Algorithm
n
Application software
n
System software
n
Handling input/output
Managing memory and storage
Scheduling tasks & sharing resources
Hardware
n
High-level language
n
Assembly language
n
Hardware representation
n
n
Desktop, server,
embedded
Components of a Computer
Input/output includes
n
User-interface devices
n
Storage devices
n
Network adapters
n
Anatomy of a Computer
Output
device
Network
cable
Input
device
Input
device
Anatomy of a Mouse
n
Optical mouse
n
n
n
LED illuminates
desktop
Small low-res camera
Basic image processor
n
Looks for x, y
movement
Supersedes roller-ball
mechanical mouse
Abstractions
The BIG Picture
n
Implementation
n
Magnetic disk
Flash memory
Optical disk (CDROM, DVD)
Networks
n
n
n
n
Within a building
Technology Trends
n
Electronics
technology
continues to evolve
n
Increased capacity
and performance
Reduced cost
Year
Technology
1951
Vacuum tube
1965
Transistor
1975
1995
2005
DRAM capacity
Relative performance/cost
1
35
900
2,400,000
6,200,000,000
Chapter 1 Computer Abstractions and Technology 19
Boeing 777
Boeing 747
Boeing 747
BAC/Sud
Concorde
BAC/Sud
Concorde
Douglas
DC-8-50
Douglas DC8-50
0
100
200
300
400
500
Boeing 777
Boeing 777
Boeing 747
Boeing 747
BAC/Sud
Concorde
BAC/Sud
Concorde
Douglas
DC-8-50
Douglas DC8-50
500
1000
4000
6000
8000 10000
Passenger Capacity
2000
1.4 Performance
Defining Performance
1500
10
Response time
n
Throughput
n
Relative Performance
n
n
11
Elapsed time
n
CPU time
n
CPU Clocking
n
Clock (cycles)
Data transfer
and computation
Update state
12
CPU Time
CPU Time = CPU Clock Cycles Clock Cycle Time
=
n
Performance improved by
Reducing number of clock cycles
n Increasing clock rate
n Hardware designer must often trade off clock
rate against cycle count
n
Clock RateB =
1.2 20 10 9 24 10 9
=
= 4GHz
6s
6s
Chapter 1 Computer Abstractions and Technology 26
13
CPI Example
n
n
n
n
by this much
14
CPI =
= CPIi
Relative frequency
Chapter 1 Computer Abstractions and Technology 29
CPI Example
n
IC in sequence 1
IC in sequence 2
Sequence 1: IC = 5
n
Clock Cycles
= 21 + 12 + 23
= 10
Avg. CPI = 10/5 = 2.0
Sequence 2: IC = 6
n
Clock Cycles
= 41 + 12 + 13
=9
Avg. CPI = 9/6 = 1.5
15
Performance Summary
The BIG Picture
CPU Time =
n
Program
Instruction Clock cycle
Performance depends on
n
n
n
n
Power Trends
In CMOS IC technology
Power = Capacitive load Voltage 2 Frequency
30
5V 1V
1000
16
Reducing Power
n
Uniprocessor Performance
17
Multiprocessors
n
Multicore microprocessors
n
Hard to do
n
n
n
Manufacturing ICs
18
n
n
1
(1+ (Defects per area Die area/2))2
19
SPEC CPU2006
n
n
n
i=1
Description
IC109
CPI
Tc (ns)
Exec time
Ref time
SPECratio
perl
2,118
0.75
0.40
637
9,777
15.3
bzip2
Block-sorting compression
2,389
0.85
0.40
817
9,650
11.8
gcc
GNU C Compiler
1,050
1.72
0.47
24
8,050
11.1
mcf
Combinatorial optimization
336
10.00
0.40
1,345
9,120
6.8
go
Go game (AI)
1,658
1.09
0.40
721
10,490
14.6
hmmer
2,783
0.80
0.40
890
9,330
10.5
sjeng
2,176
0.96
0.48
37
12,100
14.5
libquantum
1,623
1.61
0.40
1,047
20,720
19.8
h264avc
Video compression
3,102
0.80
0.40
993
22,130
22.3
omnetpp
587
2.94
0.40
690
6,250
9.1
astar
Games/path finding
1,082
1.79
0.40
773
7,020
9.1
xalancbmk
XML parsing
1,058
2.70
0.40
1,143
6,900
Geometric mean
6.0
11.7
20
Performance: ssj_ops/sec
Power: Watts (Joules/sec)
10
10
SPECpower_ssj2008 for X4
Target Load %
Performance (ssj_ops/sec)
100%
231,867
295
90%
211,282
286
80%
185,803
275
70%
163,427
265
60%
140,160
256
50%
118,324
246
40%
920,35
233
30%
70,500
222
20%
47,126
206
10%
23,066
180
0%
Overall sum
141
1,283,590
2,605
ssj_ops/ power
493
Chapter 1 Computer Abstractions and Technology 42
21
Taffected
+ Tunaffected
improvemen t factor
22
MIPS =
=
Instructio n count
Execution time 10 6
Instructio n count
Clock rate
=
Instructio n count CPI
CPI 10 6
10 6
Clock rate
Cost/performance is improving
n
Concluding Remarks
23