Professional Documents
Culture Documents
Chapter 7
External Memory
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Magnetic Disk
• A disk is a circular platter constructed of nonmagnetic
material, called the substrate, coated with a magnetizable
material
– Traditionally the substrate has been an aluminium or aluminium alloy
material
– Recently glass substrates have been introduced
Magnetic Read
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.1
Inductive Write/Magnetoresistive Read Head
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.2
Disk Data Layout
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.3
Comparison of Disk Layout Methods
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.4
Legacy and Advanced Sector Formats
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Table 7.1
Physical Characteristics of Disk Systems
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Characteristics
• Fixed-head disk • Removable disk
– One read-write head per track – Can be removed and replaced
– Heads are mounted on a fixed with another disk
ridged arm that extends across all – Advantages:
tracks
▪ Unlimited amounts of data are
• Movable-head disk available with a limited number
of disk systems
– One read-write head
▪ A disk may be moved from one
– Head is mounted on an arm computer system to another
– The arm can be extended or
– Floppy disks and ZIP cartridge
retracted
disks are examples of
removable disks
• Non-removable disk
– Permanently mounted in the disk • Double sided disk
drive – Magnetizable coating is applied
– The hard disk in a personal to both sides of the platter
computer is a non-removable disk
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Disk Classification
The head mechanism provides
a classification of disks into
three types
• The head must generate or • Winchester Heads
sense an electromagnetic field
of sufficient magnitude to write • Used in sealed drive assemblies
and read properly that are almost free of contaminants
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Disk Performance Parameters
• When the disk drive is operating the disk is rotating at constant speed
• To read or write the head must be positioned at the desired track and at the beginning of
the desired sector on the track
– Track selection involves moving the head in a movable-head system or electronically selecting one head on
a fixed-head system
– Once the track is selected, the disk controller waits until the appropriate sector rotates to line up with the
head
• Seek time
– On a movable–head system, the time it takes to position the head at the track
• Rotational delay (latency time) 1/2r (r=rotation speed, in revolution per second)
– The time it takes for the beginning of the sector to reach the head
• Block access time (access time)
– The sum of the seek time and the latency time
• Transfer time b/rN (b=number of bytes to transfer, N=number of bytes on track)
– Once the head is in position, the read or write operation is then
performed as the sector moves under the head
– This is the data transfer portion of the operation
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Table 7.2
Typical Hard Disk Drive Parameters
HGST Ultrastar
Characteristics HGST Ultrastar HE Toshiba L200
C15K600
Application Enterprise Data Center Laptop
Capacity 12 TB 600 GB 500 GB
Average seek time 8.0 ms read 2.9 ms read 11 ms
8.6 ms write 3.1 ms write
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
RAID
• Consists of 7 levels
• Levels do not imply a hierarchical relationship but designate
different design architectures that share three common
characteristics:
1) Set of physical disk drives viewed by the operating system as a single logical
drive
2) Data are distributed across the physical drives of an array in a scheme known as
striping
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Table 7.3
RAID Levels
Disks Large I/O Data Small I/O
Category Level Description Data Availability
Required Transfer Capacity Request Rate
Independent
Much higher than Similar to RAID 0 for Similar to RAID 0 for read;
Block-interleaved
access 5 N+1 single disk; comparable read; lower than single generally lower than single
distributed parity
to RAID 2, 3, or 4 disk for write disk for write
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.6
RAID Levels (1 of 2)
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.6
RAID Levels (2 of 2)
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.7
Data Mapping for a RAID Level 0 Array
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
RAID • Addresses the issues of request patterns of
the host system and layout of the data
Level 0 • Impact of redundancy does not interfere
with analysis
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
RAID
Level 2
Characteristics • Performance
• Makes use of a parallel access • An error-correcting code is calculated
technique across corresponding bits on each
data disk and the bits of the code are
• In a parallel access array all member stored in the corresponding bit
disks participate in the execution of positions on multiple parity disks
every I/O request
• Typically a Hamming code is used,
• Spindles of the individual drives are which is able to correct single-bit
synchronized so that each disk head errors and detect double-bit errors
is in the same position on each disk at • The number of redundant disks is
any given time
proportional to the log of the number of
• Data striping is used data disks
• Would only be an effective choice in
– Strips are very small, often as an environment in which many disk
small as a single byte or word errors occur
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
RAID
Level 3
Redundancy • Performance
• Requires only a single redundant disk, • In the event of a drive failure, the parity
no matter how large the disk array drive is accessed and data is
reconstructed from the remaining
• Employs parallel access, with data devices
distributed in small strips • Once the failed drive is replaced, the
missing data can be restored on the new
• Instead of an error correcting code, a
drive and operation resumed
simple parity bit is computed for the
set of individual bits in the same • In the event of a disk failure, all of the
position on all of the data disks data are still available in what is referred
to as reduced mode
• Can achieve very high data transfer • Return to full operation requires that the
rates
failed disk be replaced and the entire
contents of the failed disk be
regenerated on the new disk
• In a transaction-oriented environment
performance
Copyright © 2019, 2016, 2013 suffers Inc. All Rights Reserved
Pearson Education,
RAID
Level 4
Characteristics • Performance
• Makes use of an independent access • Involves a write penalty when an I/O
technique write request of small size is
performed
− In an independent access array,
each member disk operates
• Each time a write occurs the array
independently so that separate I/O management software must update
requests can be satisfied in parallel not only the user data but also the
corresponding parity bits
• Data striping is used • Thus each strip write involves two
− Strips are relatively large reads and two writes
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
RAID RAID
Level 5 Level 6
Characteristics • Characteristics
• Organized in a similar fashion to • Two different parity calculations
RAID 4 are carried out and stored in
separate blocks on different disks
• Difference is distribution of the
parity strips across all disks • Advantage is that it provides
extremely high data availability
• A typical allocation is a round- • Three disks would have to fail
robin scheme
within the mean time to repair
• The distribution of parity strips (MTTR) interval to cause data to
across all drives avoids the be lost
potential I/O bottleneck found in • Incurs a substantial write penalty
RAID 4 because each write affects two
parity blocks
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Table 7.4
RAID Comparison (1 of 2)
Level Advantages Disadvantages Applications
I/O performance is greatly improved The failure of just one Video production and
by spreading the I/O load across many drive will result in all data editing
channels and drives in an array being lost Image Editing
0 No parity calculation overhead is involved Pre- press applications
Very simple design Any application requiring
Easy to implement high bandwidth
Extremely high data transfer rates possible Very high ratio of ECC No commercial imple-
The higher the data transfer rate disks to data disks mentations exist/not
required, the better the ratio of data with smaller word commercially viable
disks to ECC disks sizes— inefficient
2
Relatively simple controller design compared Entry level cost very high—
to RAID levels 3, 4, & 5 requires very high transfer
rate requirement to justify
Very high read data transfer rate Transaction rate equal to Video production and live
Very high write data transfer rate that of a single disk drive streaming
at best (if spindles are (Table can be found
Disk failure has an insignificant impact Image editing
synchronized) on pages 230-231 in
3 on throughput Video editing
Low ratio of ECC (parity) disks to data
Controller design is fairly
Prepress applications
the textbook.)
complex
disks means high efficiency Any application requiring
high throughput
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Table 7.4
RAID Comparison (2 of 2)
Level Advantages Disadvantages Applications
Very high Read data transaction rate Quite complex controller No commercial
Low ratio of ECC (parity) disks to data design implementations
disks means high efficiency Worst write transaction exist/not
rate and Write aggregate commercially viable
transfer rate
4
Difficult and inefficient
data rebuild in the event
of disk failure
Highest Read data transaction rate Most complex controller File and application servers
Low ratio of ECC (parity) disks to data design Database servers
disks means high efficiency Difficult to rebuild in the Web, e- mail, and news
Good aggregate transfer rate event of a disk failure
5 (as compared to RAID servers
level 1) Intranet servers
Most versatile RAID level
Provides for an extremely high data More complex controller Perfect solution for mission
fault tolerance and can sustain multiple design critical applications
simultaneous drive failures Controller overhead to
6 compute parity addresses
is extremely high
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
SSD Compared to HDD
• SSDs have the following advantages over HDDs:
– High-performance input/output operations per second (IOPS)
– Durability
– Longer lifespan
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Table 7.5
Comparison of Solid State Drives and Disk
Drives
Power draw/battery life Less power draw, averages 2–3 watts, More power draw, averages 6–7 watts
resulting in 30+ minute battery boost and therefore uses more battery
Storage capacity Typically not larger than 1 TB for Typically around 500 GB and 2 TB
Notebook size drives; 4 max for max for notebook size drives; 10 TB
desktops max for desktops
Cost Approx. $0.20 per GB for a 1-TB drive Approx. $0.03 per GB for a 4-TB drive
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.8
Solid State Drive
Architecture
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Practical Issues
There are two practical issues peculiar to SSDs
that are not faced by HDDs: • Flash memory becomes
• SDD performance has a unusable after a certain
tendency to slow down as the number of writes
device is used – Techniques for prolonging life:
– The entire block must be read Front-ending the flash with a
cache to delay and group write
from the flash memory and
operations
placed in a RAM buffer
Using wear-leveling algorithms
– Before the block can be written that evenly distribute writes
back to flash memory, the entire across block of cells
block of flash memory must be Bad-block management
erased techniques
– The entire block from the buffer – Most flash devices estimate
is now written back to the flash their own remaining lifetimes
memory so systems can anticipate
failure and take preemptive
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
action
Table 7.6
Optical Disk Products
CD
Compact Disk. A nonerasable disk that stores digitized audio information. The standard system uses
12-cm disks and can record more than 60 minutes of uninterrupted playing time.
CD-ROM
Compact Disk Read- Only Memory. A nonerasable disk used for storing computer data. The standard
system uses 12-cm disks and can hold more than 650 Mbytes.
CD-R
CD Recordable. Similar to a CD-ROM. The user can write to the disk only once.
CD-RW
CD Rewritable. Similar to a CD-ROM. The user can erase and rewrite to the disk multiple times.
DVD
Digital Versatile Disk. A technology for producing digitized, compressed representation of video
information, as well as large volumes of other digital data. Both 8 and 12 cm diameters are used, with
a double-sided capacity of up to 17 Gbytes. The basic DVD is read-only (DVD-ROM).
DVD-R
DVD Recordable. Similar to a DVD-ROM. The user can write to the disk only once. Only one-sided
disks can be used.
DVD-RW
DVD Rewritable. Similar to a DVD-ROM. The user can erase and rewrite to the disk multiple times.
Only one- sided disks can be used.
Blu-ray DVD
High-definition video disk. Provides considerably greater data storage density than DVD, using a
405-nm (blue- violet) laser. A single layer on a single side can store 25 Gbytes.
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Compact Disk Read-Only Memory
(CD-ROM)
• Production:
– The disk is formed from a resin such as polycarbonate
– Digitally recorded information is imprinted as a series of microscopic pits on the
surface of the polycarbonate
▪ This is done with a finely focused, high intensity laser to create a master disk
– The master is used, in turn, to make a die to stamp out copies onto polycarbonate
– The pitted surface is then coated with a highly reflective surface, usually
aluminum or gold
– This shiny surface is protected against dust and scratches by a top
coat of clear acrylic
– Finally a label can be silkscreened onto the acrylic
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.9
CD Operation
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.10
CD-ROM Block Format
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
CD-ROM
• CD-ROM is appropriate for the distribution of large
amounts of data to a large number of users
• Because the expense of the initial writing process it is not
appropriate for individualized applications
• The CD-ROM has two advantages:
▪The optical disk together with the information stored on it can be mass
replicated inexpensively
▪ The optical disk is removable, allowing the disk itself to be used for archival
storage
– The CD-ROM disadvantages:
▪It is read-only and cannot be updated
▪ It has an access time much longer than that of a magnetic disk drive
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
CD Recordable CD Rewritable
(CD-R) (CD-RW)
• Write-once read-many • Can be repeatedly written and
overwritten
• Accommodates applications in • Phase change disk uses a material that
which only one or a small number has two significantly different
of copies of a set of data is reflectivities in two different phase
needed states
• Disk is prepared in such a way • Amorphous state
that it can be subsequently – Molecules exhibit a random
written once with a laser beam of orientation that reflects light poorly
modest-intensity • Crystalline state
• Medium includes a dye layer – Has a smooth surface that reflects
which is used to change light well
reflectivity and is activated by a • A beam of laser light can change the
high-intensity laser material from one phase to the other
• Disadvantage is that the material
• Provides a permanent record of eventually and permanently loses its
large volumes of user data desirable properties
• Advantage is that it can be rewritten
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.11
CD-ROM and DVD-ROM
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.12
Optical Memory Characteristics
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Magnetic Tape
• Tape systems use the same reading and recording techniques as disk
systems
• Medium is flexible polyester tape coated with magnetizable material
• Coating may consist of particles of pure metal in special binders or
vapor-plated metal films
• Data on the tape are structured as a number of parallel tracks
running lengthwise
• Serial recording
– Data are laid out as a sequence of bits along each track
• Data are read and written in contiguous blocks called physical records
• Blocks on the tape are separated by gaps referred to as inter-record
gaps
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Figure 7.13
Typical Magnetic Tape Features
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved
Table 7.7
LTO Tape Drives
LTO-1 LTO-2 LTO-3 LTO-4 LTO-5 LTO-6 LTO-7 LTO-8
Release date 2000 2003 2005 2007 2010 2012 TBA TBA
Compressed
200 GB 400 GB 800 GB 1600 GB 3.2 TB 8 TB 16 TB 32 TB
capacity
Linear density
4880 7398 9638 13,250 15,142 15,143 19,094
(bits/mm)
Tape length (m) 609 609 680 820 846 846 960
Tape width (cm) 1.27 1.27 1.27 1.27 1.27 1.27 1.27
Write elements 8 8 16 16 16 16 32
Encryption
No No No Yes Yes Yes Yes Yes
Capable?
This work is protected by United States copyright laws and is provided solely
for the use of instructions in teaching their courses and assessing student
learning. dissemination or sale of any part of this work (including on the
World Wide Web) will destroy the integrity of the work and is not permit-
ted. The work and materials from it should never be made available to
students except by instructors using the accompanying text in their
classes. All recipients of this work are expected to abide by these
restrictions and to honor the intended pedagogical purposes and the needs of
other instructors who rely on these materials.
Copyright © 2019, 2016, 2013 Pearson Education, Inc. All Rights Reserved