Upload
arungargit
View
217
Download
0
Embed Size (px)
Citation preview
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 1/50
Chapter 5
Data Storage Technology
2005 IS112
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 2/50
Chapter goals
Describe the distinguishing characteristics of
primary and secondary storage
Describe the devices used to implement primary
storage Describe the memory allocation schemes
Compare and contrast secondary storage
technology alternatives
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 3/50
Goals cont.
Describe factors that determine storage device performance
Choose appropriate secondary storage technologies and devices
Eplore storage devices and their technologies
!utlines characteristics common to all storage devices
Eplains the technology strengths and "ea#nesses of primary
storage and secondary storage
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 4/50
Storage types
$rimary storage % memory or &'( )olds instructions and data for currently eecuting
programs
*olatile % re+uires electricity to maintain data Secondary storage % electromagnetic or
optical devices ,on-volatile storage devices "ith large capacities
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 5/50
Storage device components
Storage devices are comprised of Storage medium
&ead."rite mechanism
Device controller % interface bet"een the storage
device and the system bus /discussed in chapter
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 6/50
Storage device
characteristics
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 7/50
Speed
Speed of primary storage /&'( directly impactsperformance of entire system
&'( etends the limited capacity of C$ registers
The C$ continually moves data and instructionsbet"een registers and &'( If a read."rite to &'( ta#es more than one C$
cycle3 then C$ must "ait for information
&'( is faster than secondary storage by a factor of105 or more
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 8/50
Speed cont.
Speed is also an issue for secondary storage
Called 4access time or 4see# time
'ccess time is defined as time to complete one read
or "rite operation 'ccess time for dis# or tape storage can vary
depending on location of information3 therefore
access time is epressed as an average
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 9/50
Access times
$rimary storage % epressed in nanoseconds
/billionths of a second
Secondary storage % epressed in
milliseconds /thousandths of a second
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 10/50
Data transfer rate
Complete measure of data access speed
consists of access time and the unit of data
transfer to.from the storage device 'ccess time plus ho" much data is transferred
Data transfer unit for primary storage is
based on "ord si6e /usually 72 bit
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 11/50
Data transfer unit
Data transfer unit /amount of data moved at atime for secondary storage varies dependingon the device
nit is called a 4bloc# 8loc# si6e is stated in bytes 4Sector is data transfer unit for magnetic and
optical devices Common sector.bloc# si6e is 512 bytes
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 12/50
Data transfer rate
Epressed in terms of bytes.second 'ccess time combined "ith data transfer unit
Data transfer rate describes ho" much data
can be transferred bet"een devices over a
period of time
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 13/50
Volatility
*olatile % storage device is volatile if it cannot
reliable hold data for long periods of time
,on%volatile % storage device is non-volatile if it can
reliably store data for long periods of time Computer systems need a combination of volatile
and non-volatile storage devices
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 14/50
Access method
$hysical structure of storage device9s
read."rite mechanism determines the "ay/s
data can be accessed Serial access &andom access
$arallel access
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 15/50
Serial access
Stores and retrieves data items in a linear or
se+uential order
Slo"est access method
Tape typically used for bac#up purposes
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 16/50
Random access
'lso called a direct access device Can directly access data stored on the device 'll primary storage and dis# storage devices
are direct access $arallel access % "ith multiple read."rite
heads3 can simultaneously access more than
one storage location
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 18/50
Cost and capacity
'n increase in speed3 permanence or portability
generally comes at increased cost if all other factors
are held constant:
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 19/50
Storage DeviceCharacteristics
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 20/50
Primary storage devices
&andom access memory /&'( is a generic
term for storage device that (icrochip implementation using semiconductors
'bility to read and "rite "ith e+ual speed &andom access to stored bytes3 "ords3 or larger
data units
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 21/50
Primary Storage Devices
Critical performance characteristics 'ccess speed
Data transfer unit si6e
(ust closely match C$ speed and "ord
si6e to avoid "ait states
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 22/50
Storing lectrical Signals
Directly 8y devices such as batteries and capacitors
Trade off bet"een access speed and volatility
Indirectly ses energy to alter the state of a device; inverse
process regenerates e+uivalent electrical signal
(odern computers use memory implemented"ith semiconductors /&'( and ,*(
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 23/50
Random Access !emory
Characteristics (icrochip implementation using
semiconductors
'bility to read and "rite "ith e+ual speed
&andom access to stored bytes3 "ords3 or
larger data units
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 24/50
SRA! vs. DRA!
Static &'( % implemented "ith transistors &e+uires continuous supply of electricity to preserve data
Dynamic &'( % uses transistors and capacitors
&e+uire a fresh infusion of po"er thousands of times persecond:
Each refresh operation is called a refresh cycle
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 25/50
Random Access !emory
To bridge performance gap bet"een memory
and microprocessors &ead-ahead memory access
Synchronous read operations !n-chip memory caches
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 26/50
"onvolatile !emory
&andom access memory "ith long-term or
permanent data retention
sually relegated to speciali6ed roles and
secondary storage; slo"er "rite speeds andlimited number of re"rites
<enerations of devices /&!(3 E$&!(3 and
EE$&!(
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 27/50
"onvolatile !emory
=lash &'( /most common ,*( Competitive "ith D&'( in capacity and read
performance
&elatively slo" "rite speed >imited number of "rite cycles
,*( technologies under development
=erroelectric &'( $olymer memory
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 28/50
SRA! vs. DRA!
Static &'( % implemented "ith transistors &e+uires continuous supply of electricity to preserve data
Dynamic &'( % uses transistors and capacitors
&e+uire a fresh infusion of po"er thousands of times persecond:
Each refresh operation is called a refresh cycle
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 29/50
Read only memory
&!( % random access memory device that
can store data permanently or semi-
permanently
Typically used to store 8I!S /basic inputoutput services
Instructions stored in &!( is called firm"are
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 31/50
CP$ !emory Access
(anagement of &'( is critical to
performance of computer
!rgani6ation3 access3 and management or
&'( is done by the operating system )o" memory is accessed is large factor in
performance of &'(
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 32/50
Physical memoryorgani%ation (ain memory of any computer is a se+uence of
contiguous memory cells 'ddressable memory % highest number storage byte
that can be represented Determined by the number of bits used to represent an
address If 72 bits used to represent and address3 highest address is
272 ? @32A@3AB32A3 or @ <8
$hysical memory % actual memory installed3 usuallyless than addressable memory
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 33/50
!emory addressing &allocation (emory allocation is the assignment or reservation
of memory segments for system soft"are3
application programs3 and data
(emory allocation is the responsibility of theoperating system
Common scheme is to place !S in lo" memory and
applications in high memory
This can be demonstrated "ith C program
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 35/50
Absolute vs. relativeaddressing Some programming languages /C3 C
allo" instructions that reference eplicitmemory locations
8&',C) to location ST! to location
'bsolute addressing describes memoryaddress operands that refer to actual physical
memory locations
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 37/50
Relative addressing
Instructions that refer to memory use a combinationof registers to compute addresses
hen !S loads application into memory3 !S loadsstarting point of application into one register
Instruction in application that refers to memorylocation is using an offset /i:e: distance frombeginning of application
!S adds offset to starting point to calculate physical
memory location
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 40/50
!agnetic storage
ses magnetism to store binary information onto astorage medium that can store magnetic information
>east epensive medium for secondary storage
Can be portable &etains data "ithout electricity !ver longer periods of time "ill eventually lose
information
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 41/50
Read)'rite in magneticdevice
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 42/50
!agnetic decay and lea#age
$rimary disadvantage is loss of data over
time Magnetic Decay % the tendency of magnetically
charges particles to lose their charge over time Magnetic Leakage % a decrease in the strength of
individual bit charges
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 44/50
*rgani%ation of trac#s andsectors
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 45/50
*ptical mass storage devices
Advantages: )igher recording density
>onger data life
&etain data for decades
,ot subFect to problems of magnetic decay and lea#age
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 46/50
*ptical storage
!ptical storage devices store bit values as
variations in light reflection:
Storage medium is a surface of highly reflectivematerial:
The read mechanism consists of a lo"-po"er laser
and a photoelectric cell:
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 47/50
Storing binary information
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 48/50
+amples of optical devices
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 49/50
Chapter summary
' typical computer system has primary and
secondary storage devices
The critical performance characteristics of primarystorage devices are their access speed and the
number of bits that can be accessed in a single read
or "rite operation
7/25/2019 2006is112Ch05
http://slidepdf.com/reader/full/2006is112ch05 50/50
Summary cont.
$rograms generally are created as through theyoccupied contiguous primary storage locationsstarting at the first location
(agnetic storage storage devices store data bits asmagnetic charges
!ptical discs store data bits as variations in lightreflection