Beruflich Dokumente
Kultur Dokumente
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
Classes of Computers
Supercomputers
High-end scientific and engineering calculations
Highest capability but represent a small fraction of
the overall computer market
Embedded computers
Hidden as components of systems
Stringent power/performance/cost constraints
Millions
Battery operated
Connects to the Internet
Hundreds of dollars
Smart phones, tablets, electronic glasses,
Clouding computing
Understanding Performance
Algorithm
Determines number of operations executed
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
Assembly language
Textual representation of
instructions
Hardware representation
Binary digits (bits)
Encoded instructions and
data
11
Components of a Computer
The BIG Picture
Input/output includes
User-interface devices
Display, keyboard, mouse
Storage devices
Hard disk, CD/DVD, flash
Network adapters
For communicating with
other computers
Touchscreen
PostPC device
Supersedes keyboard
and mouse
Resistive and Capacitive
types
Most tablets, smart
phones use capacitive
Capacitive allows
multiple touches
simultaneously
14
Computer board
15
16
17
Abstractions
Implementation
The details underlying and interface
18
Networks
Communication, resource sharing, nonlocal
access
Local area network (LAN): Ethernet
Wide area network (WAN): the Internet
Wireless network: WiFi, Bluetooth
20
Technology Trends
Electronics technology
continues to evolve
Increased capacity and
performance
Reduced cost
Year
Technology
1951
Vacuum tube
1965
Transistor
1975
1995
2013
DRAM capacity
Relative performance/cost
1
35
900
2,400,000
250,000,000,000
21
Semiconductor Technology
Silicon: semiconductor
Add materials to transform properties:
Conductors
Insulators
Switch
22
Manufacturing ICs
1
Yield =
(1+ (Defects per area Die area/2))2
Defining Performance
Which airplane has the best performance?
Boeing 777
Boeing 777
Boeing 747
Boeing 747
BAC/Sud
Concorde
BAC/Sud
Concorde
Douglas DC8-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 DC8-50
Douglas DC8-50
500
1000
4000
6000
8000 10000
Passenger Capacity
2000
1500
26
Throughput
Total work done per unit time
e.g., tasks/transactions/ per hour
Relative Performance
Define Performance = 1/Execution Time
X is n time faster than Y
Performanc e X Performanc e Y
= Execution time Y Execution time X = n
thi gian ton cc: bao gm c cpu time, I/O h iu hnh x l, thi gian ch
CPU time
thi gian x l chng trnh no ch tnh ton thi gian cpu lm vic gii quyt
CPU Clocking
Operation of digital hardware governed by a
constant-rate clock
Clock period
Clock (cycles)
Data transfer
and computation
Update state
30
CPU Time
CPU Time = CPU Clock Cycles Clock Cycle Time
CPU Clock Cycles
=
Clock Rate
Performance improved by
Reducing number of clock cycles
Increasing clock rate
Hardware designer must often trade off clock rate
against cycle count
ch p dng cho mt chng trnh
31
32
CPI Example
CPU Time
B = I 600ps = 1.2
CPU Time
I 500ps
A
CPU Time
by this much
34
CPI =
= CPIi
Relative frequency
35
CPI Example
Alternative compiled code sequences using
instructions in classes A, B, C
Class
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
36
Performance Summary
The BIG Picture
Program
Instruction Clock cycle
Performance depends on
Algorithm: affects IC, possibly CPI
Programming language: affects IC, CPI
Compiler: affects IC, CPI
Instruction set architecture: affects IC, CPI, Tc
37
Power Trends
In CMOS IC technology
Power = Capacitive load Voltage 2 Frequency
en dung
30
5V 1V
1000
38
Reducing Power
Suppose a new CPU has
85% of capacitive load of old CPU
15% voltage and 15% frequency reduction
Pnew Cold 0.85 (Vold 0.85)2 Fold 0.85
4
=
=
0.85
= 0.52
2
Pold
Cold Vold Fold
Uniprocessor Performance
Multiprocessors
vic tng s lng b x l ln qu ln cng gp nhiu kh khn trong vic
lp trnh cng nhng vic tnh ton sau ny
Multicore microprocessors
Hard to do
41
SPEC CPU2006
i
42
trung bnh
nhn
43
10
10
Overall ssj_ops per Watt = ssj_ops i poweri
i=0
i=0
s lnh trn nng lng
44
45
Taffected
=
+ Tunaffected
improvemen t factor
46
Instruction count
Clock rate
=
=
6
Instruction count CPI
CPI
10
6
10
Clock rate
Concluding Remarks
Cost/performance is improving
Due to underlying technology development