Computer Abstractions and Technology
Computer Abstractions and Technology
Computer Abstractions
and Technology
1.1 Introduction
Computers in automobiles
Cell phones
Human genome project
World Wide Web
Search Engines
Classes of Computers
Desktop computers
Server computers
Embedded computers
Understanding Performance
Algorithm
Application software
System software
Handling input/output
Managing memory and storage
Scheduling tasks & sharing resources
Hardware
Software
Hardware
Operating System
Compiler
(Unix;
Assembler Windows 9x)
Processor Memory I/O system
Instruction Set
Architecture
transistors, IC layout
CS 161
instruction set
hardware
High-level language
Assembly language
Hardware representation
Desktop, server,
embedded
Components of a Computer
Input/output includes
User-interface devices
Storage devices
Network adapters
Anatomy of a Computer
Output
device
Network
cable
Input
device
Input
device
Magnetic disk
Flash memory
Optical disk (CDROM, DVD)
Networks
Within a building
Historical Perspective
Processor
Main Memory
Disk
Technology Trends
Electronics
technology
continues to evolve
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 20
Manufacturing ICs
1.4 Performance
Defining Performance
Response time
Throughput
Relative Performance
10s on A, 15s on B
Execution TimeB / Execution TimeA
= 15s / 10s = 1.5
So A is 1.5 times faster than B
Chapter 1 Computer Abstractions and Technology 26
Elapsed time
CPU time
CPU Clocking
Clock (cycles)
Data transfer
and computation
Update state
CPU Time
CPU Time CPU Clock Cycles Clock Cycle Time
CPU Clock Cycles
Clock Rate
Performance improved by
CPU Time B
6s
Clock Cycles A CPU Time A Clock Rate A
10s 2GHz 20 10 9
1.2 20 10 9 24 10 9
Clock RateB
4GHz
6s
6s
Chapter 1 Computer Abstractions and Technology 30
Clock Rate
CPI Example
CPU Time
B I 600ps 1.2
CPU Time
I 500ps
A
by this much
n
Clock Cycles
Instruction Count i
CPI
CPIi
Instruction Count i1
Instruction Count
Relative frequency
Chapter 1 Computer Abstractions and Technology 33
CPI Example
IC in sequence 1
IC in sequence 2
Sequence 1: IC = 5
Clock Cycles
= 21 + 12 + 23
= 10
Avg. CPI = 10/5 = 2.0
Sequence 2: IC = 6
Clock Cycles
= 41 + 12 + 13
=9
Avg. CPI = 9/6 = 1.5
Performance Summary
The BIG Picture
Program
Instruction Clock cycle
Performance depends on
Power Trends
In CMOS IC technology
Power Capacitive load Voltage 2 Frequency
30
5V 1V
1000
Reducing Power
0.85
0.52
2
Pold
Cold Vold Fold
Uniprocessor Performance
Multiprocessors
Multicore microprocessors
Hard to do
SPEC CPU2006
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
6.0
Geometric mean
11.7
Performance: ssj_ops/sec
Power: Watts (Joules/sec)
10
ssj_ops
i0
10
power
i0
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%
141
1,283,590
2,605
Overall sum
ssj_ops/ power
493
Chapter 1 Computer Abstractions and Technology 43
Taffected
Tunaffected
improvemen t factor
Instruction count
MIPS
Execution time 10 6
Instruction count
Clock rate
6
Instruction count CPI
CPI
10
6
10
Clock rate
Cost/performance is improving
Concluding Remarks