Unit 2. Hardware Systems
Unit 2. Hardware Systems
Hardware Systems
This unit covers computer hardware the
components that make up a computer system
and how they work together.
– learn about how the computer processes information
and how memory works.
– learn about how data can be moved among
components inside and outside the system unit.
– familiar with different media for storing data.
By the end of this unit, you should
– understand how a computer works.
– also help you become an informed consumer of
computer equipment.
contents
2.1 Processor and Memory
2.2 Peripherals
2.3 Storage devices
2.4 Putting Together the Hardware Components
2.5 Improving Computer performance
Assessments:
– Exercise 2
Overview of Hardware Components
Microprocessor
(executes instructions)
Main Memory
Storage Devices Chipset (temporarily stores data
(permanently store data (controls data flow) and program instructions
and application programs) while the computer
is running)
Legend
Component
Peripherals s
(input/output)
Data Path
Hardware Components
The microprocessor( 微处理器 ), also called the
processor,
– is the main component that executes instructions stored in the
main memory.
– The microprocessor is sometimes referred to as the "brain" of
the computer system, making decisions and sending commands
to the other components to complete a set of instructions.
The main memory( 主存,内存 ) stores instructions to
be executed by the microprocessor.
– The data stored in main memory is lost when the computer is
turned off.
In contrast to main memory, storage devices ( 存储设
备)
– such as CD-ROM drives and floppy disk drives
– store data permanently even when the computer is turned off.
Hardware Components
Peripherals( 周边设备,外设 ) enable data
input and output.
– the monitor, the printer, the keyboard, and the mouse.
– The peripherals also include mechanisms that allow
data to be transferred in and out of a computer
system.
The chipset ( 芯片组 ) acts as the traffic cop
controlling the flow of data and coordinating
interactions among components in the system.
– Components pass data through the chipset, and the
chipset monitors the data flow and passes data to
other components.
1.
How a File is Displayed
The microprocessor sends instructions to the storage devices (via the chipset) requesting the specified file to be loaded
into main memory.
2. The storage devices send the file through the chipset to main memory.
1 Main Memory
Storage Devices 4 3 (temporarily stores data
(permanently store data 2 and program instructions
and application programs) while the computer
Chipset is running)
Legend
Component
Peripherals s
(input/output)
Data Path
Components inside the System
Unit A. Motherboard
B. Power supply
H. Disk drives
C. Microprocessor
(underneath a
cooling fan)
G. IDE cable
D. Expansion slot
E. Expansion card
F. Chipset
Components inside a computer
A. Motherboard
– Provides sockets for microprocessor and memory chips, slots for
circuit boards, and the circuitry that enable electrical signals to
travel from component to component. Most of the hardware
components inside the system unit are attached to the
motherboard.
B. Power supply
– Provides electrical power to the computer system.
C. Microprocessor
– Processes instructions stored in main memory. Sometimes, the
microprocessor is found underneath a cooling fan to prevent it
from overheating.
D. Expansion slot
– Serves as a socket on the motherboard into which an expansion
card maybe inserted.
Components inside a computer
E. Expansion card
– Enables a computer to control peripheral devices such as the
monitor and the microphone.
F. Chipset
– Controls data flow among components.
G. IDE (Integrated Drive Electronics) cable
– Transfers data from storage devices to the motherboard.
H. Disk drives
– Stores data permanently (even after the computer is turned off).
They may be any drives such as floppy disk drive, the CD-
ROM/CD-RW, DVD-ROM/DVD+/-RW drive, and the hard disk
drive.
2.1 Processor and Memory
2.1.1 Processor Basics
2.1.2 Types of Memory
2.1.3 Lab: Benchmarking (Optional)
Assessments:
– Multiple-Choice Quiz 4
overview
The processor and memory are essential
components that enable a computer to
process commands.
– The processor carries out instructions given to
the computer.
– These instructions are stored in the
computer's memory.
2.1.1 Processor Basics
Processor
Instruction Execution with the CPU
Performance: Factors and Measures
Types of Processors
Processor
A computer's processor is usually referred to as the
microprocessor due to its size, which is about the size
of your fingernail.
A microprocessor processes all the instructions given to
the computer (add two numbers, execute program
instructions, or print documents).
Physically, the microprocessor is a single chip known as
an integrated circuit (IC).
– Each chip is made out of silicon and it contains millions of
transistors packed onto a chip.
– The Intel Pentium M Processor, introduced on March 12, 2003,
– has 77 million transistors, and the width of the smallest wire on
the chip is 0.13 micron, or 0.00000013 meter.
– 0.13 micron is about 1/800 of the width of a human hair.
Central Processing Unit (CPU).
The microprocessor is referred to as the
Central Processing Unit (CPU).
– The job of a microprocessor is to execute a
series of machine instructions.
– These instructions are procedures to carry out
a task written in a form that the computer can
understand.
Instruction Execution with the
CPU
Instructions are stored in the computer‘s
memory, RAM (random access memory)
There are two main components of the CPU.
– control unit, which accesses instructions stored in
RAM, interprets what they mean, and then dispatches
them.
– Arithmetic/Logic Unit (ALU) that performs
arithmetic (addition, subtraction, multiplication, division) and
logic (greater than, less than, equal to) operations needed to
process the instructions.
Fetch-Execute Cycle( 指令执行周
期)
There are four steps that the CPU performs
when executing an instruction; they are called
the fetch-execute cycle.
The four steps are as follows:
– 1. Fetch - The control unit gets the instruction from
memory.
– 2. Interpret - The control unit decodes what the
instruction means and directs the necessary data to
be moved from memory to the ALU.
– 3. Execute - The control unit directs the ALU to
perform the necessary arithmetic or logic operations.
– 4. Store - The result of the computation is stored in
memory.
Fetch-Execute Cycle
Memory
Let R = X + Y Step 1. Control unit
fetches instruction Control Unit
Number 1 (X)
Number 2 (Y)
Accumulator
(Result of Number 1 +
Number 2)
cache
Cache 高速缓冲存储器
– a special high-speed memory that stores most
recently used data in order to speed up the
process of instruction execution.
A cache can speed up data retrieval
because 基于统计的调度策略
– recently used data is likely to be used again
by the computer.
Level 1/2 cache memory
Level 1 (L1) cache memory or primary cache memory
– is located on the CPU to provide the CPU with the fastest
access to data.
Level 2 (L2) cache memory or secondary cache
– is a slower cache,
– located between the RAM and the CPU (sometimes on the
CPU).
If data cannot be found on either cache, it will be
retrieved from RAM.
Relative to the physical distance between the CPU and
storage areas for data and instructions, data is retrieved
more quickly
– from the L1 cache,
– then the L2 cache, and
– then the RAM.
The Microprocessor
Microprocessor
CPU
(ALU, Registers, Control unit)
L1 cache
L2 cache
(usually on CPU)
Main Memory
Storage Devices Chipset (temporarily stores data
(permanently store data (controls data flow) and program instructions
and application programs) while the computer
is running)
Legend
Component
Peripherals s
(input/output)
Data Path
Processor Performance
Rate at which the instructions are processed (clock rate)
– Measured in Hertz
– 1 Hertz - one cycle per second
– Processor clock rate measured in MHz
Machines are compared based on their
– clock speed or
– number of instructions per second (IPS).
This measure depends on
– both the number of cycles per second
– and the mix of instructions executed.
Measure of processor performance is benchmarking.( 基
准测试 )
– ZDNet is organization which has a set of useful benchmarks( 基
准测试程序 )
Bandwidth( 带宽 )
the volume of data that can be transmitted
within a fixed amount of time between
components in a computer system
– the transfer speed from the disk to the
motherboard or
– through connections to other computers.
Bandwidth is expressed in bits per
second (bps), or sometimes bytes per
second (Bps)
2.1.2 Types of Memory
RAM
ROM
CMOS Memory
Summary
Types of Memory( 存储器 ) Main Memory
Microprocessor RAM
(instructions to be
(executes instructions)
executed after computer
is booted)
Boot Memory
ROM
(instructions needed to
boot the computer)
Storage Devices Chipset
(permanently store data CMOS
(controls data flow)
and application programs) (Configuration information
used in the boot process)
Legend
Component
Peripherals s
(input/output)
Data Path
Memory
Types of Memory (continued)
RAM (random access memory) is a
temporary holding area for both data and
instructions. It is also referred to as main
memory.
Data in RAM is lost when the computer is
turned off.
Types of Memory (continued)
Measured by its memory capacity and latency.
– Capacity (容量)
is the maximum number of bits or bytes that can be stored.
The capacity of RAM is typically measured in megabytes
(MB). Many computers have RAM capacity of 128MB or
more.
– Latency ( 响应时间、延迟时间、等待时间 )
is the delay between the time when the memory device
receives an address and the time when the first bit of data is
available from the memory device.
This delay is also referred to as access time (访问时间) .
Latency is typically measured in nanoseconds (ns), billionth
of a second (10-9 sec). Latency measures the speed of
RAM.
DRAM (Dynamic RAM , 动态
RAM)
a common type of RAM.
– Made of an integrated circuit (IC, 集成电路 ), composed of
millions of transistors( 晶体管 ) and capacitors( 电容器 ).
– A capacitor can hold electrons. An empty capacitor represents a
“0”, and a non-empty capacitor represents a “1”. Each capacitor
can register either a “0” or a “1” for a memory cell, storing one bit
of data.
– The transistor is like a switch that controls whether the
capacitor's state (charged or not charged, 1 or 0) is to be read or
changed.
– However, a capacitor is like a cup that leaks, in order to keep its
charge, the memory control needs to be recharged or refreshed
periodically( 周期性刷新 ). Therefore, it is called the dynamic
RAM because its state is not constant.
– Refreshing capacitors also takes time and slows down memory.
DRAM (continued)
SDRAM (Synchronous Dynamic RAM)
– Used in many personal computers
– Fast and relatively inexpensive
– Synchronized to the clock so that data can be sent to
the CPU at each tick of the clock, increasing the
number of instructions the processor can execute
within a given time
DDR SDRAM (Double Data Rate SDRAM)
– Transfers twice the amount of data per clock cycle
compared to SDRAM
– Capacity is up to 2 GB
DRAM (continued)
RDRAM (Rambus Dynamic RAM)
– Higher bandwidth than SDRAM
– More expensive compared to SDRAM
– Enhances the performance of applications that
access large amounts of data through memory, i.e.
real-time video and video editing
SRAM (Static RAM)
– Uses transistors to store data
– Because SRAM does not use capacitors, reading
data from SRAM does not require recharging the
capacitors. Therefore, it is faster than DRAM.
– Holds fewer bits and costs more compared to DRAM
of the same size
– Used in the cache because it is fast and cache does
not require a large memory capacity
RAM Comparisions
SDRAM @@ $
RDRAM @@@ $$
SRAM @ $$$
ROM
Read-only memory (ROM) is
programmed with data hard-wired
固化 when it is manufactured.
Data and instructions on a ROM
are permanent( 持久 ), or
nonvolatile, which means they are
not lost when power is turned off.
Why is ROM needed ?
Why is ROM needed when RAM enables all the
memory operations necessary for a computer?
– Because data in RAM is lost when the computer
is turned off, some instructions are needed for the
CPU to start or boot the computer when the
computer is first turned on.
– Therefore, ROM contains a set of instructions that
is needed to start the computer.
– These instructions tell the computer how to
access the hard disk, find the operating system,
and load it into RAM.
– Then RAM stores all subsequent instructions to
be executed by the CPU.
Type of ROM
Typically, ROM is hardwired with start-up instructions for
the computer.
At one time, changing the boot instructions (to integrate
a new video card and disable the old one) on a ROM
required replacing the entire ROM chip.
Currently, a type of ROM, electrically erasable
programmable read-only memory (EEPROM),
– can be updated by applying an electrical field changing
instructions stored on the chip one byte at a time.
– This could slow down the update process.
An alternative to EEPROM is flash memory.
– Flash memory is a type of EEPROM that rewrites data in
chunks, usually 512 bytes in size, instead of 1 bit at a time.
CMOS Memory
Configuration settings of a computer such as
storage capacity, memory capacity (RAM), and
display configurations also need to be stored
permanently.
This information is stored in CMOS
(complementary metal oxide semiconductor ,
互补金属氧化物半导体 ) memory.
The CMOS chip requires very little electrical power
to hold data.
– It can be powered by a small battery on the
motherboard, or packaged with the chip.
– The battery maintains the data on the CMOS
when the computer is turned off.
Summary : Which Memory Device
to Use?
ROM
no
Need to
Need to
store Need to
maintain yes configura-
no update
Start data when
tion information
power is
information ?
off?
?
no yes yes
EEPROM
RAM CMOS /
Flash
Comparing memory devices
Memory Cost Capacity Latency Location
Register $$$$ 8-128 bits almost On CPU close to the
instantaneous ALU
Boot Memory
ROM
(instructions needed to
boot the computer)
Storage Devices Chipset
(permanently store data (controls data flow) CMOS
and application programs) (Configuration
information used during
the boot process)
Legend
Component
Peripherals s
(input/output)
Data Path
Memory
2.2 Peripherals
2.2.1 Connecting Peripherals
2.2.2 Buses
2.2.3 Input/Output Devices
Assessments:
– Multiple-Choice Quiz 5
2.2.1 Connecting Peripherals
Expansion Slots and Cards
Ports
USB and FireWire
Comparing Different Ports
Peripherals( 外
设)
Microprocessor
(executes instructions)
Main Memory
Storage Devices (temporarily stores data
(permanently store data Chipset and program instructions
and application programs) while the computer
is running)
Peripherals Legend
Parallel
modem Component
PS-2
sound Memory
card
PCI Slots Port
Expansion
video Card
card USB Expansion
AGP Slot FireWire
Slot
Peripheral
Device
Modem Monitor Digital camera Camcorder Printer
Bus
Speaker Scanner Mouse Disk drive
Expansion Slot, Card, and Port
An expansion slot is a
slit-like socket on the
motherboard into which a
circuit board can be
inserted.
The circuit board is called
the expansion card.
– Used to extend the
capability of a computer
– sound / video card
– Also provides port(s), which
are connector(s) between
the expansion card and the
peripheral device.
Expansion Slots
The two most common types of expansion slots are
Peripheral Component Interconnect (PCI) and Accelerated
Graphics Port (AGP).
PCI (Peripheral Component Interconnect , 互连外围设备 ) slot
– Can hold a variety of expansion cards such as a sound
card or an Ethernet card
AGP (Accelerated Graphics Port, 图形加速接口 ) slot
– Primarily used for graphics cards
PCMCIA (personal computer memory card international
association, 个人计算机存储卡国际协会 ) slot
– Used for laptops in place of PCI slots on desktop
computers
– Relatively smaller than a PCI slot
Expansion Cards
Small circuit boards that control the peripheral devices
– Graphics Cards
Takes signals from the processor and displays the graphics,
images in the monitor
– Sound Cards
Converts analog sound signals to digital and vice versa
– Modem
Transmits data over phone or cable lines
– Ethernet card
Serves as the interface to a Local Area Network (LAN), a
common network technology allowing users access to
network resources such as the Internet, email, shared
printers, etc.
Transfers data at a rate of 10 Mb/s
Newer versions of Ethernet called "Fast Ethernet" and
"Gigabit Ethernet" support data rates of 100 Mb/s and 1 Gb/s
(1000 Mb/s).
Ethernet cards for PCMCIA slot
and PCI slot, respectively
Expansion Ports
Ports are connectors
that enable signals to
be passed in and out
of a computer or
peripheral device.
Cables from
peripheral devices
connect to ports of a
computer system.
Different Types of Ports
PS/2 port, also known as serial port
– Transfers data one bit at a time
– Uses a 6-pin, mini-DIN configuration, which look like a small,
round port
– Used to be the standard for keyboard and mouse
connections, however, they are gradually being replaced by
USB ports.
DB-9 port
– Also becoming obsolete ( 废弃 )
– Used to connect PDA devices before the advent of USB
ports
– Connects external modem, barcode scanner, and other older
electronic devices
DB-25F, also known as Parallel port
– Transfers data one byte at a time
– Requires a 25-pin male connector (DB-25M) on the cable
– Can be used for printers or external drives
USB and FireWire
USB (Universal Serial Bus, 通用串行总线 ) port
– Appears on desktop systems and laptops
– Can connect up to 127 devices via a USB hub, which
provides multiple USB ports (e.g. mouse, keyboard,
scanner, printer, digital camera, and hard disk drive)
– Supports "hot connectivity," which allows peripherals to
be connected to the system, configured, and used without
restarting the machine
– Replacing serial and parallel ports
FireWire
– Faster data transfer rate and more expensive compared to
USB (50MBps versus 1.5 MBps)
– Supports up to 63 devices
– Intended for data-intensive devices such as DVD players
and digital camcorders
– Peripheral devices can be connected via chaining.
– Supports hot connectivity
USB v.s. FireWire
In response to FireWire's fast data transfer rate,
USB-2 is developed with a data transfer rate of
60 MBps.
To compete with USB, FireWire 2 is developed
with a data transfer rate of 100 MBps.
Comparing Different Ports
Port Usage Status
FireWire Camcorder and Becoming the standard
external mass storage for digital video devices
(e.g. CD-ROM, hard
drive, etc.)
Assessments:
– Multiple-Choice Quiz 6
Whys?
Why does a computer need to store files on a hard disk
drive?
Why not keep everything in RAM memory?
There are two reasons.
– RAM memory is volatile: the data is represented by electric
charges and is lost when the power is turned off. A hard disk
drive stores information as magnetized patches on the disk
surface, so the data persists even when power is removed.
– hard disk drives are useful is that they have a much larger
capacity than RAM. A typical personal computer today will have
at least 512 megabytes of RAM memory and 120 gigabytes of
disk storage. That disk capacity is more than 200 times what can
fit in RAM! So, even though hard disk drives are slow as
compared to RAM, they are an important component of your
computer system.
2.3.1 Disk Controller Interfaces
IDE Interface
EIDE Master/Slave
common interfaces
There are many common interfaces to connect a storage
device to a computer.
– Universal Serial Bus (USB)
– FireWire.
Another common interface is Integrated Drive
Electronics (IDE ,集成驱动装置 ).
An IDE is the interface that enables data to transfer
between storage devices and the chipset.
IDE is designed specifically as disk interface
USB and FireWire can interface with other devices
besides storage devices such as digital cameras and
printers.
Disk Controller Interfaces
Storage Devices
Microprocessor
(executes instructions)
Hard drive
I
CD-ROM D
Disk
E Main Memory
Controller (temporarily stores data
Chipset
PCI and program instructions
DVD-ROM (controls data flow)
while the computer
is running)
Legend
Component
Peripherals s
(input/output)
Data Path
Bus
IDE Interface
Provides a standard way for storage devices to
connect to a computer
The controller for the IDE is
– usually integrated into the disk or CD-ROM drive, and
– the controller directs how the hard drive stores and
accesses data.
IDE was created as a way to standardize( 标准
化 ) the use of hard drives in computers by
combining the controller and the hard drive
– because having separate controllers and hard drives
resulted in poor signal quality and performance.
IDE Interface
In 1984, IBM introduced the AT computer with a
hard drive had a combined drive and controller.
– A ribbon cable from the drive/controller combination is
used to connect to the system unit, creating the AT
Attachment (ATA) interface.
Soon, other vendors( 制造商 ) started offering
IDE drives based on the ATA standard
developed by IBM.
Thus, IDE became the term that covered the
entire range of integrated drive/controller
devices.
Because almost all IDE drives are ATA-based,
the two terms are used interchangeably.
EIDE is Enhanced IDE.
EIDE
Provides a set of two IDE (Integrated Device Electronics)
ports.
– Primary port and secondary port
– Each port attaches to a cable containing two plugs, and each plug
can connect to a device.
– Total of four devices can be accommodated: two on the primary,
and two on the secondary.
USB storage device (thumb Solid state 64, 128, 256 MB, Many
drive) or more
CompactFlash form factor Magnetic 340 MB, 1 GB, 4 Unlimited
— Microdrive GB
Name Type Capacity Writability
VRAM Regusters
network
Hard Drive
USB
Tape CD
Magnetic Storage
DVD
Storage Review
Optical Storage
2.4 Putting Together the
Hardware Components
2.4.1 How Components Work Together.
2.4.2 Lab: Researching a Computer
System.
2.4.3 Lab: Online Configuration
2.4.1 How Components Work
Together
Working Together Microprocessor
CPU
Main Memory
F Legend
Peripherals P i
Parallel Component
modem C U r
I S e PS-2 Memory
sound A W
B
card G i Port
P r
PCI Slots Expansion
e
Card
video
card
Expansion
USB FireWire Slot
AGP Slot
Peripheral
Device
Phone line Monitor Digital camera Camcorder Printer Bus
Speaker, microphone Scanner Mouse, keyboard Disk drive
Major Hardware Components and Their
Functionality
CPU executes instructions stored in memory devices.
During the boot process, the CPU fetches instructions
from the permanent memory devices, ROM and CMOS.
ROM is read-only memory that stores instructions
needed to start up the computer.
CMOS contains system configuration data.
Once the computer is booted, RAM is used to load the
rest of the instructions to be executed by the CPU.
Major Hardware Components and Their
Functionality
Data from storage devices such as the CD-ROM drive
and the hard drive are passed through the disk
controller. Data can also be stored on hard disk or CD.
Data in the hardware system passes through buses. The
buses are the communication channels among
components in the system unit.
Peripheral devices such as the keyboard, mouse,
joystick, printer, speakers, and microphone are
connected to the computer via ports typically in the back
of a system unit.
Expansion cards can be plugged into the expansion
slots of the computer to extend the functionality of a
computer.
How Components Work
Together
When a computer processes requests from the user, the CPU
directs the other components to carry out specific tasks, and
data is passed among components through buses and the
chipset.
– To save a file to hard disk
the CPU would pass the data to be saved through the front
bus to the chipset.
The chipset sends the file data via the PCI bus to the disk
controller, which would then send the data to the hard disk
storage device.
– To open and display an image file
the CPU would signal the disk controller to fetch the image
file on the storage device using and store it in RAM.
The graphics card would then access the image data and
display the image as pixels on the computer monitor.
Lab: Researching a Computer
System
Researches done through product reviews
Price comparisons
Price and comparisons can be found at:
some web site
– www.pconline.com.cn
– www.it168.com
– www.zol.com.cn
Lab: Online Configuration
Computer hardware vendors have their
own web sites
Sites specify system configurations of
various products
Priced by components
2.5 Improving Computer
Performance
2.5.1 Moore's Law
2.5.2 Bottlenecks
2.5.3 Throughput and Latency
Assessments:
– Multiple-Choice Quiz 7
2.5.1 Moore's Law
Law can be stated as:
Number of transistors on a microchip doubles every 18
months.
Denser the chip Higher the capacity
Limitations: Chips must be thick enough for the electrons
to pass through.
Predictions based on Moore’s Law
– Processing power (speed) doubles every 18 months.
– Storage capacity of RAM increases exponentially.
Other observations:
– Storage capacity of hard disk drives is also increasing
exponentially( 指数增长 ).
– Cost for consumers to purchase computer parts is
decreasing over time.
Moore’s Law (continued)
Moore's Law Applied to Intel Processors
100,000,000
10,000,000
Number of Transistors
(Log scaled)
1,000,000
100,000
10,000
1,000
1971 1972 1974 1978 1982 1985 1989 1993 1997 1999 2000
Year of Processor Introduction
Parkinson’s Law of Data
Parkinson's Law of Data: Data expands
to fill the space available.
– As more memory or disk space becomes
available, the demand for more memory or
disk space increases accordingly.
– As Parkinson's Law predicts
today's operating systems are much more
elaborate and require more memory for their own
use.
– As disk drive capacity increases
people begin using them in new ways (e.g. storing
musical recordings, short video clips, and movies).
2.5.2 Bottlenecks
Bottlenecks — Slowing a Process
Typical Bottlenecks
Eliminating Bottlenecks
Bottlenecks—Slowing a Process
Bottleneck is a step within a series of
steps that takes the longest time to
complete.
Time required to perform a task consisting
of several steps may be delayed by the
bottleneck step.
Process time cannot be shortened without
speeding up the bottleneck. 研究解决问
题的关键!
Typical Bottlenecks
Typical bottlenecks:
– Cache
– RAM
– I/O
– Video card (particularly for 3-D gaming)
Eliminating Bottlenecks
To speed up performance of a system:
– Use profiling tools( 测试工具 ) to
measure each section’s time taken to
complete to determine the bottleneck
steps
– Improve upon the bottleneck steps
2.5.3 Throughput and Latency
Throughput and Latency are two key terms used
in discussing computer performance.
– Throughput( 吞吐量 , 计算能力 ) refers to the
rate at which data flows through the system.
E.g., a computer might execute 500 million
instructions per second.
– Latency ( 响应时间、等待时间 ) refers to the
time required to complete an individual
operation.
E.g., it might take five seconds to launch an
application, or two minutes to reboot the
entire system.
These measures are clearly related
Suppose you want your Web server to
display a large graphic on a user's
computer when they press a button.
Latency is how much time passes
– from the button press
– until the image is displayed.
If the image is a 1 MB file, then with a
throughput of ten megabits per second,
the latency to display the image will be at
least 0.8 seconds.
Whether latency or throughput is most
appropriate to report depends on the setting.
If you are selecting a provider for your Web
server's network connection,
– you will be more concerned with having
enough throughput, or bandwidth, to serve
your needs.
If you are a user of the same web server
– you will certainly be concerned with the
latency for your request.
– you does not matter to how many other
requests the server processes per second
(i.e., throughput).
– You are mainly concerned with your request.
Whether latency or throughput is most
appropriate to report depends on the setting.
As a server administrator
– you might hear complaints from people whose
latency was exceedingly high, even though
your throughput was acceptable.
your server handles two different kinds of
requests:
– a request for a small file that can be sent quickly and
– a request for a large file that takes a long time to send.
If the vast majority of requests are for small files
– throughput and latency for small files may be
fine
– while the latency for large files may be
unacceptable.
A simple way to think about
latency
is to model the time it takes to do a task as
being equal to
– some constant startup time,
+
– a time that scales with the size of the task.
END of Unit 2