You are on page 1of 48

+ Chapter 6

External Memory
+
Timing of Disk I/O Transfer
+ 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 [Head Movement: For Track]


 On a movable–head system, the time it takes to position
the head at the track

 Rotational delay (rotational latency) [For Sector]


 The time it takes for the beginning of the sector to reach
the head

 Access time = Seek Time + Rotational Delay


 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
Accessing data transfer speed
+  Seek Time is typically less than 10ns

 Average Rotational Delay = Half of time for one revolution delay


 20,000 RPM 333 RPS = r (approx.)
 Time for 1 revolution = 3 ms (approx.)
 Average delay = (Worst Time + Best Time)/2 = (3+0)/2=1.5 ms

 Transfer Time = T = b/(rN) = Time it takes for the drive to move


under head for the required portion of track
 b = Number of bytes to be transferred
 N = Number of bytes on a track
 r = rotation speed in rps

T = Seek Time + Average Rotational Delay + Transfer Time for required Sectors
A KILO in Storage = 1000 
+
Class Activity
(a)

(b)
What if all these 2500 sectors were located on a different track
+
Solution
a)
 Total sequential read of 5 Tracks

 Seek Time for only one track req.

b)

So, this explains why we get long time to write/read for multiple smaller image files as
compared to large video files & also the need for defragmentation
Solid State Drive (SSD)

A memory device
made with solid state Two distinctive
components that can
be used as a Flash memory types of flash
replacement to a hard memory:
disk drive (HDD) A type of
semiconductor NOR
memory used in many •The basic unit of access is a bit
consumer electronic •Provides high-speed random
access
products including •Used to store cell phone
smart phones, GPS operating system code and on
devices, MP3 players, Windows computers for the
digital cameras, and BIOS program that runs at
The term solid start-up
USB devices
state refers to
electronic
NAND
circuitry built with
• The basic unit is 16 or 32 bits
semiconductors Cost and • Reads and writes in small
performance has blocks
evolved to the point • Used in USB flash drives,
memory cards, and in SSDs
where it is feasible to • Does not provide a random-
use to replace HDDs access external address bus so
the data must be read on a
block-wise basis
SSD Compared to HDD
SSDs have the following advantages over HDDs:
Table
 High-performance input/output operations per second
6.5
(IOPS)

 Durability

 Longer lifespan

 Lower power consumption Comparisons


 Quieter and cooler running capabilities

 Lower access times and latency rates

+
+ Practical Issues
There are two practical issues peculiar to SSDs
that are not faced by HDDs:
<1 Page = 4KB, Block Size = 512 KB>
 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
 Front-ending the flash with a
read from the flash memory cache to delay and group
and placed in a RAM buffer write operations
 Using wear-leveling
 Before the block can be algorithms that evenly
written back to flash distribute writes across block
memory, the entire block of of cells
flash memory must be  Bad-block management
techniques
erased
 Most flash devices estimate
 The entire block from the their own remaining lifetimes
buffer is now written back to so systems can anticipate
the flash memory failure and take preemptive
action
Table 6. 6
Optical
Disk
Products
RAID

Redundant Array
of Independent
Reliability
Redundancy
Disks
Standardization
+  Consists of 7 levels

1) Set of physical disk drives


viewed by the operating
RAID system as a single logical
drive

2) Data are distributed across


the physical drives of an
array in a scheme known as
striping
Redundant Array of
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

N = number of data disks; m proportional to log N


Data Mapping for a RAID Level 0 Array
Stripe

*Parallel Data access


*High data transfer capacity
*High I/O Request Rate
Benefit: Parallel Read
+ RAID
Level 0
RAID 0 for High Data Transfer
RAID 0 for High I/O Request Rate
Capacity

 For applications to experience  A disk array can provide high I/O


a high transfer rate two execution rates by balancing the
requirements must be met: I/O load across multiple disks
1. A high transfer capacity
must exist along the entire  If the strip size is relatively large
path between host memory multiple waiting I/O requests can
and the individual disk be handled in parallel, reducing
drives the queuing time for each request
2. The application must make
I/O requests that drive the
disk array efficiently
Table 6.3 RAID Levels

N = number of data disks; m proportional to log N


+
RAID
Level 1
Characteristics Positive Aspects

 Differs from RAID levels 2 through 6  A read request can be serviced by


in the way in which redundancy is either of the two disks that
achieved contains the requested data

 Redundancy is achieved by the  There is no “write penalty”


simple expedient of duplicating all
the data  Recovery from a failure is simple,
when a drive fails the data can be
 Data striping is used but each logical accessed from the second drive
strip is mapped to two separate
physical disks so that every disk in  Provides real-time copy of all data
the array has a mirror disk that
contains the same data
 Can achieve high I/O request
rates if the bulk of the requests are
 RAID 1 can also be implemented reads
without data striping, although this is
less common
 Principal disadvantage is the cost
+
RAID
Level 2
Characteristics Performance
 An error-correcting code is
 Makes use of a parallel access calculated across corresponding
technique bits on each data disk and the bits
of the code are stored in the
 In a parallel access array all corresponding bit positions on
member disks participate in 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
same position on each disk at  The number of redundant disks is
any given time proportional to the log of the
number of data disks
 Data striping is used  Would only be an effective choice
 Strips are very small, often as in an environment in which many
small as a single byte or word disk errors occur
+
RAID
Level 3
Redundancy Performance
 Requires only a single  In the event of a drive failure, the parity
redundant disk, no matter drive is accessed and data is
reconstructed from the remaining
how large the disk array devices

 Employs parallel access, with  Once the failed drive is replaced, the
data distributed in small missing data can be restored on the
strips new drive and operation resumed

 Instead of an error correcting  In the event of a disk failure, all of the


data are still available in what is
code, a simple parity bit is referred to as reduced mode
computed for the set of
individual bits in the same  Return to full operation requires that
position on all of the data disks the failed disk be replaced and the
entire contents of the failed disk be
 Can achieve very high data regenerated on the new disk
transfer rates
 In a transaction-oriented environment
performance suffers
+ R
RAID a
Level 4 Bottleneck i
d
Characteristics Performance

 Makes use of an independent


access technique  Involves a write penalty when 4
 In an independent access an I/O write request of small
array, each member disk size is performed
operates independently so
that separate I/O requests
can be satisfied in parallel  Each time a write occurs the
array management software
 Data striping is used must update the user data &
 Strips are relatively large the corresponding parity bits
 To calculate the new parity  Thus each strip write
the array management
software must read the old involves two reads and two
user strip and the old parity writes
strip
RAID RAID
+
Level 5 Level 6
Characteristics Characteristics
 Organized in a similar fashion  Two different parity calculations are
to RAID 4---Difference is carried out and stored in separate
distribution of the parity strips blocks on different disks
across all disks
 Advantage is that it provides extremely
 A typical allocation is a round- high data availability--- Three disks
robin scheme would have to fail within the mean
time to repair (MTTR) interval to
 The distribution of parity cause data to be lost
strips across all drives avoids
the potential I/O bottleneck  Incurs a substantial write penalty
found in RAID 4 because each write affects two parity
blocks
Table 6.3 RAID Levels

N = number of data disks; m proportional to log N


Table 6.4
RAID
Comparison
(page 1 of 2)
Table 6.4
RAID
Comparison
(page 2 of 2)
+

Unused Slides 
+ Summary
External Memory

Chapter 6
 RAID
 Magnetic disk
 RAID level 0
 Magnetic read and write
mechanisms  RAID level 1
 Data organization and  RAID level 2
formatting
 RAID level 3
 Physical characteristics
 RAID level 4
 Disk performance parameters
 RAID level 5
 Solid state drives  RAID level 6
 Flash memory
 SSD compared to HDD  Optical memory
 SSD organization  Compact disk
 Practical issues
 Digital versatile disk

 Magnetic tape  High-definition optical disks


+
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
Magnetic Read Data are recorded on and later
retrieved from the disk via a
conducting coil named the head
and Write • In many systems there are two heads, a read
head and a write head

Mechanisms • During a read or write operation the head is


stationary while the platter rotates beneath it

Electric pulses are sent to the write


head and the resulting magnetic The write mechanism
patterns are recorded on the surface exploits the fact that
below, with different patterns for electricity flowing through a
positive and negative currents coil produces a magnetic
+ field

An electric current in the


wire induces a magnetic
field across the gap, which
in turn magnetizes a small
The write head itself is area of the recording
made of easily medium
magnetizable material and
is in the shape of a
rectangular doughnut with Reversing the direction of
a gap along one side and a the current reverses the
few turns of conducting direction of the
wire along the opposite magnetization on the
side recording medium
Inductive Write/Magnetoresistive
Read Head
Disk
Data
Layout
Disk Layout Methods Diagram
Winchester Disk Format
Seagate ST506
+ Table 6.1
Physical Characteristics
of Disk Systems

Table 6.1 Physical Characteristics of Disk Systems


+
Characteristics
 Fixed-head disk
 One read-write head per track  Removable disk
 Heads are mounted on a fixed  Can be removed and replaced
ridged arm that extends across with another disk
all tracks  Advantages:
 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  Double sided disk
disk drive
 The hard disk in a personal  Magnetizable coating is applied
computer is a non-removable to both sides of the platter
disk
+
Multiple
Platters
Tracks

Cylinders

+
+ Disk
The head mechanism provides
a classification of disks into Classification
three types

 The head must generate or Winchester Heads


sense an electromagnetic field
of sufficient magnitude to write
 Used in sealed drive assemblies that
and read properly are almost free of contaminants

 The narrower the head, the  Designed to operate closer to the


closer it must be to the platter disk’s surface than conventional rigid
surface to function disk heads, thus allowing greater
 A narrower head means
data density
narrower tracks and
 Is actually an aerodynamic foil that
therefore greater data rests lightly on the platter’s surface
density when the disk is motionless
 The air pressure generated by a
 The closer the head is to the spinning disk is enough to make
disk the greater the risk of the foil rise above the surface
error from impurities or
imperfections
Typical Hard Disk Parameters

Table 6.2 Typical Hard Disk Drive Parameters


+
Compact Disk Read-Only Memory
(CD-ROM)
 Audio CD and the CD-ROM share a similar technology
 The main difference is that CD-ROM players are more rugged and
have error correction devices to ensure that data are properly transferred

 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
+
CD Operation
+
CD-ROM Block Format
+
 CD-ROM is appropriate for the distribution of large CD-ROM
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
+
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 has two significantly different
number of copies of a set of data reflectivities in two different phase states
is needed  Amorphous state

 Disk is prepared in such a way  Molecules exhibit a random


that it can be subsequently orientation that reflects light poorly
written once with a laser beam  Crystalline state
of modest-intensity  Has a smooth surface that reflects light
well
 Medium includes a dye layer
which is used to change  A beam of laser light can change the
reflectivity and is activated by a material from one phase to the other
high-intensity laser  Disadvantage is that the material
eventually and permanently loses its
 Provides a permanent record of desirable properties
large volumes of user data  Advantage is that it can be rewritten
+
Digital
Versatile Disk
(DVD)
High-Definition
Optical Disks
+
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
+
Magnetic
Tape
Features
+
Table 6.7
LTO Tape Drives

You might also like