It3030e CA Chap1 Introduction 2.0m
It3030e CA Chap1 Introduction 2.0m
❑ Server
Network based
High capacity, performance, reliability
Range from small servers to building sized
❑ Desktop computers
General purpose, variety of software
Subject to cost/performance tradeoff
❑ Embedded computers
Hidden as components of systems
Stringent power/performance/cost constraints
Super $Millions
Mainframe
$100s Ks
Server $10s Ks
Differences in scale,
not in substance Workstation $1000s
Personal $100s
Embedded $10s
❑ High-level language
Level of abstraction closer to
problem domain
Provides for productivity and
portability
❑ Assembly language
Textual representation of
instructions
❑ Hardware representation
Binary digits (bits)
Encoded instructions and
data
IT3030E Fall 2022 21
Hardware/software interface: below your program
❑ Application software
Written in high-level language (HLL)
❑ 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
❑ datapath +
control =
processor
(CPU)
❑ A web server
How fast a request can be served?
How many request can be served per second?
performanceX = 1 / execution_timeX
performanceX execution_timeY
-------------------- = --------------------- = n
performanceY execution_timeX
performanceA execution_timeB
-------------------- = --------------------- = n
performanceB execution_timeA
= #-------------------------------------------
CPU clock cycles for a program
clock rate
Instruction_count x CPI
= -----------------------------------------------
clock_rate
4 steps
20 steps
a)
IC × CPI 𝐼𝐶 ×1.5
1. CPUtime P1 = = = 0.5 × 10-9 IC
𝐶𝑅 3 𝐺𝐻𝑧
IC × CPI 𝐼𝐶 ×1.0
CPUtime P2 = = = 0.4 × 10-9 IC
𝐶𝑅 2.5 𝐺𝐻𝑧
IC × CPI 𝐼𝐶 ×2.2
CPUtime P3 = = = 0.55 × 10-9 IC
𝐶𝑅 4 𝐺𝐻𝑧
cycle
IC × CPI
1. CPUtime = = IC × CC × CPI
𝐶𝑅
CPUtime 1.8s
CPI = = = 1.8
𝐼𝐶 × CC 109 ×1ns
CPUtime CPUtime
2. CPI(C) = = = 1.1
𝐼𝐶 × CC 6 × 108 × 1ns
# Note:
1 𝐶𝑃𝑈 𝑐𝑙𝑜𝑐𝑘 𝑐𝑦𝑐𝑙𝑒
CC: Clock cycle = 𝐶𝑅 : Clock rate, CPUtime = 𝐶𝑙𝑜𝑐𝑘 𝑟𝑎𝑡𝑒
CPI: Clockcycle per instruction
IC: Instruction count