2021 Chapter 4 Memory Lecture 2
2021 Chapter 4 Memory Lecture 2
MEMORY UNIT
PART 2
1
OUTLIE
External Memory
Magnetic Disk
Introduction
Magnetic Read and Write
Mechanisms
Data Organization and Formatting
Physical Characteristics
Disk Performance Parameters
Optical Memory
Magnetic Tape
Solid State Drives
2
4.5 EXTERNAL MEMORY MAGNETIC DISK
INTRODUCTION
A disk
A circular platter constructed of nonmagnetic material,
called substrate, coated with a magnetizable material (iron
oxide--rust)
Substrate used to be aluminum – now glass – has the
following advantages
Improved surface uniformity
Increases reliability
4
MAGNETIC DISK
MAGNETIC READ AND WRITE MECHANISM…
Read (traditional)
Magnetic field moving relative to coil produces current
Analogous to a generator or alternator
Coil can be the same for read and write
Used with:
Floppies
Older hard drives
Read (contemporary)
Separate read head, close to write head
Partially shielded magneto resistive (MR) sensor
Electrical resistance depends on direction of magnetic field
Passing current through it results in different voltage levels for
different resistances
High frequency operation
Higher storage density and speed
5
MAGNETIC DISK
DATA ORGANIZATION & FORMAT
Data is organized on the platter in set of concentric
rings called tracks
Adjacent tracks are separated by gaps
minimize error due to misalignment or EM interference
Data are transferred to/from disk in sectors
6
MAGNETIC DISK
DATA ORGANIZATION & FORMAT…
Concentric rings or tracks
Thousands of tracks per platter surface
Track is same width as head
Gaps between tracks (intertrack gaps)
protect data integrity
Reduce gaps
increase capacity
possiblyincrease errors due to misalignment of head
7
or interference from other tracks
MAGNETIC DISK
DATA ORGANIZATION & FORMAT…
Tracks divided into sectors
Minimum block size is one sector
may have more than one sector per block
8
MAGNETIC DISK
DATA ORGANIZATION & FORMAT…
Disk velocity
A bit near the center of a rotating disk passes a fixed
point (head) slower than a bit on the outside
Bits are not read at the same rate
Solutions
Constant angular velocity (CAV)
Multiple zone recording
9
MAGNETIC DISK
DATA ORGANIZATION & FORMAT…
Disk velocity…
Constant Angular Velocity (CAV)
The disk is rotated at a fixed speed
Information is scanned at the same rate by increasing the spacing
between bits of information recorded in segments of the disk
The disk is divided into a number of pie-shaped sectors and into a
series of concentric tracks
Individual blocks of data can be directly addressed by track and
sector
Draw back of CAV
The amount of data that can be stored on the long outer tracks
10 is
the only same as what can be stored on the short inner tracks
MAGNETIC DISK
DATA ORGANIZATION & FORMAT…
Disk velocity…
Multiple zone recording
Divide disk into concentric zones – typical number is 16
Each zone has fixed number of bits (and sectors) per track
More bits per track in outer zones
More complex circuitry to adjust for different data rates
as heads move farther out
11
MAGNETIC DISK
DATA ORGANIZATION & FORMAT…
Disk Layout
12
MAGNETIC DISK
DATA ORGANIZATION & FORMAT…
Formatting
Must be able to identify start of track and sector
Format disk
Additional information not available to user --- control
data
Marks tracks and sectors
13
MAGNETIC DISK
DATA ORGANIZATION & FORMAT…
Winchester Disk Format
Each track contains 30 fixed-length sectors of 600 bytes each
Each sector holds 512 bytes of data plus control
information
ID field – unique identifier or address, locates sector
SYNCH byte – delimits beginning of field
Track number – identifies a track on a surface
Head number – identifies a head (multiple surfaces)
14
MAGNETIC DISK
PHYSICAL CHARACTERISTICS
Head Motion
Disk Portability
Sides
Platters
Head Mechanism
15
MAGNETIC DISK
PHYSICAL CHARACTERISTICS…
Head Motion
Fixed head (old)
One read-write head per track
Heads mounted on fixed arm
Movable head
One read-write head per side
Mounted on a movable arm
Portability
Removable disk
Can be removed from drive and replaced with another disk
Provides unlimited storage capacity
Platters
Single platter
Multiple platter
One head per platter surface
Heads are joined and aligned
Aligned tracks on each platter form cylinders
Data is striped by cylinder
17
Reduces head movement
Increases speed (transfer rate)
MAGNETIC DISK
PHYSICAL CHARACTERISTICS…
18
MAGNETIC DISK
DISK PERFORMANCE PARAMETERS
Seek time
Moving head to correct track
Rotational delay (rotational latency)
Time for beginning of data to reach the head
Transfer time
The actual time to transfer data
Total average access time, Ta , is:
= Seek time + Rotational delay + Transfer time
= Ts + 1/2r + b/rN
where
− Ts = average seek time
21
OPTICAL MEMORY CD
Operation
ROM…
Information retrieved from a CD-ROM by a low-
powered
laser housed in drive unit
The laser shines through the clear polycarbonate
while a motor spins the disk past it
The intensity of the reflected light of the laser
changes as it encounters a pit and land (area b/n
pits)
If the laser beam falls on a pit, which has a somewhat rough
surface, the light scatters and a low intensity is reflected back
to the source.
If the laser beam falls on a land, which has a smooth surface,
a higher intensity light is reflected back to the source
The change between pits and lands is detected by a
photo
sensor and converted into a digital signal
The sensor tests the surface at regular intervals. The beginning
or end of a pit represents a 1; when no change in elevation 22
occurs between intervals, a 0 is recorded.
OPTICAL MEMORY CD ROM…
To achieve greater capacity, information organized on the
CD-ROM as a single spiral track
Beginning near the center and spiraling out to the outer edge
Sectors near the outside of the disk are the same length
as those near the inside
Information is packed evenly across the disk in segments of the
same size
24
OPTICAL MEMORY SUMMARY
25
MAGNETIC TAPE
Serial access, slow, very cheap, backup and archive
Recording
Parallel
E.g. 9 tracks: 8
data bits + 1 bit
parity
• Serial
• Data is
written as 26
sequence of
MAGNETIC TAPE
Typical Magnetic Tape Features
27
t 2 4
a r t er
f p ap
o
d f C h
En o
nd
E
28