CH 6
CH 6
External Memory
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
• Benefits of the glass substrate:
• Improvement in the uniformity of the magnetic film surface to increase
disk reliability
• A significant reduction in overall surface defects to help reduce read-
write errors
• Ability to support lower fly heights
• Better stiffness to reduce disk dynamics
• Greater ability to withstand shock and damage
Data are recorded on and later
retrieved from the disk via a
conducting coil named the head
The write mechanism exploits the
• In many systems there are two heads, a read fact that electricity flowing through
head and a write head
• During a read or write operation the head is
a coil produces a magnetic field
stationary while the platter rotates beneath it
MR
sensor Write current
h Shield
dt
k wi
ac
Tr
Inductive
N write element
S
S
N
N
S
Magnetization S
N
N
S
S
N
N
S
Recording
medium
Inter-sector gap
S6 •••
S6 •••
Track sector
Sector •••
S6
SN
S5
SN
S5
SN
S5
S4
S1
S4
S1
S4 S3 S2
S1
S3 S2
S3 S2
Read-write head
(1 per surface)
Platter
Direction of
Cylinder Spindle Boom
arm motion
gap ID gap data gap gap ID gap data gap gap ID gap data gap
1 field 2 field 3 1 field 2 field 3 1 field 2 field 3
0 0 1 1 29 29
bytes 17 7 41 515 20 17 7 41 515 20 17 7 41 515 20
600 bytes/sector
bytes 1 2 1 1 2 1 512 2
Table 6.1
Physical Characteristics of Disk Systems
Disk Systems
Characteristics
• Fixed-head disk • Removable disk
• One read-write head per • Can be removed and replaced
track with another disk
• Heads are mounted on a • Advantages:
fixed ridged arm that • Unlimited amounts of data
extends across all tracks are available with a limited
number of disk systems
• Movable-head disk • A disk may be moved from
• One read-write head one computer system to
• Head is mounted on an arm 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
• The hard disk in a personal is applied to both
computer is a non-removable disk sides of the platter
Disk
The head mechanism provides a
classification of disks into three Classification
types
Device Busy
• Access time
• The sum of the seek time and the rotational delay
• The time it takes to get into position to read or write
• Transfer time
• 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
Disk Performance Parameters
• Consists of 7 levels
• Levels do not imply a hierarchical
relationship but designate
RAID 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
Redundant Array of physical drives of an array in a
scheme known as striping
Independent Disks
3) Redundant disk capacity is used to
store parity information, which
guarantees data recoverability in
case of a disk failure
Table 6.3
RAID Levels
Disks Large I/O Data Small I/O Request
Category Level Description Data Availability Transfer
Required Rate
Capacity
Lower than single Very high for both
Striping 0 Nonredundant N Very high
disk read and write
Higher than single Up to twice that of a
Higher than RAID
disk for read; single disk for read;
Mirroring 1 Mirrored 2N 2, 3, 4, or 5; lower
similar to single similar to single disk
than RAID 6
disk for write for write
Much higher than
Redundant via Hamming single disk; Highest of all Approximately twice
2 N+m
code comparable to listed alternatives that of a single disk
RAID 3, 4, or 5
Parallel access
Much higher than
single disk; Highest of all Approximately twice
3 Bit-interleaved parity N+1
comparable to listed alternatives that of a single disk
RAID 2, 4, or 5
Similar to RAID 0
Much higher than Similar to RAID 0 for
for read;
4 Block-interleaved parity N+1 single disk; read; significantly
significantly
comparable to lower than single disk
lower than single
RAID 2, 3, or 5 for write
disk for write
Much higher than Similar to RAID 0 Similar to RAID 0 for
Independent
Block-interleaved single disk; for read; lower read; generally lower
access 5 N+1
distributed parity comparable to than single disk than single disk for
RAID 2, 3, or 4 for write write
Similar to RAID 0 Similar to RAID 0 for
Block-interleaved dual Highest of all for read; lower read; significantly
6 N+2
distributed parity listed alternatives than RAID 5 for lower than RAID 5 for
write write
N = number of data disks; m proportional to log N
strip 0 strip 1 strip 2 strip 3
strip 4 strip 5 strip 6 strip 7
strip 8 strip 9 strip 10 strip 11
strip 12 strip 13 strip 14 strip 15
Characteristics Performance
• An error-correcting code is
• Makes use of a parallel access calculated across corresponding
technique bits on each data disk and the
• In a parallel access array all bits of the code are stored in the
member disks participate in corresponding bit positions on
multiple parity disks
the execution of every I/O
request • Typically a Hamming code is
used, which is able to correct
• Spindles of the individual single-bit errors and detect
drives are synchronized so double-bit errors
that each disk head is in the • The number of redundant disks is
same position on each disk at proportional to the log of the
any given time number of data disks
• Data striping is used • Would only be an effective choice
• Strips are very small, often as small in an environment in which many
as a single byte or word disk errors occur
R
RAID a
Level 3 i
d
Redundancy Performance
• Requires only a single • In the event of a drive failure, the
parity drive is accessed and data is
redundant disk, no matter how reconstructed from the remaining 3
large the disk array devices
• Employs parallel access, with • Once the failed drive is replaced,
the missing data can be restored on
data distributed in small strips the new drive and operation
resumed
• Instead of an error correcting
code, a simple parity bit is • In the event of a disk failure, all of
the data are still available in what is
computed for the set of referred to as reduced mode
individual bits in the same • Return to full operation requires
position on all of the data disks that the failed disk be replaced and
the entire contents of the failed disk
• Can achieve very high data be regenerated on the new disk
transfer rates • In a transaction-oriented
environment performance suffers
RAID R
a
Level 4
i
d
Characteristics
Performance
• Makes use of an independent
access technique • Involves a write penalty when
an I/O write request of small 4
• In an independent access array,
each member disk operates size is performed
independently so that separate
I/O requests can be satisfied in • Each time a write occurs the
parallel array management software
• Data striping is used must update not only the user
• Strips are relatively large data but also the
corresponding parity bits
• To calculate the new parity the • Thus each strip write involves
array management software two reads and two writes
must read the old user strip and
the old parity strip
R
RAID RAID a
Level 5 Level 6 i
d
Characteristics Characteristics
RAID Comparison
(page 1 of 2)
Table 6.4
RAID Comparison
(page 2 of 2)
SSD Compared to HDD
• SSDs have the following advantages over HDDs:
Durability
Longer lifespan
Table 6.5
Comparison of Solid State Drives and Disk Drives
Host System
Operating System
Software
File System Software
I/O Driver Software
Interface
Interface SSD
Controller
Addressing
Flash
memory
components
Flash
memory
components
Flash
memory
components
Flash
memory
components
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
Table 6. 6
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.
Optical
DVD
Disk
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-
Products
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.
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
Protective
acrylic Label
Land
Pit
Polycarbonate Aluminum
plastic
Laser transmit/
receive
Sector
Mode
MIN
SEC
00 FF . . . FF 00 Data ECC
2352 bytes
Protective layer
(acrylic)
1.2 mm
Reflective layer thick
(aluminum)
Polycarbonate substrate Laser focuses on polycarbonate
(plastic) pits in front of reflective layer.
Data layer
Beam spot Land
Pit 1.2 µm
0.58 µm
Blu-ray
Track
laser wavelength
= 780 nm
0.1 µm
1.32 µm
DVD
405 nm
0.6 µm
650 nm
Track 1
Track 0
Direction of
Bottom read/write
edge of tape
Track 3 4 8 12 16 20
Track 2 3 7 11 15 19
Track 1 2 6 10 14 18
Track 0 1 5 9 13 17
Direction of
tape motion
(b) Block layout for system that reads/writes four tracks simultaneously