external memory. types of external memory magnetic disk optical magnetic tape

45
External Memory

Upload: clementine-tate

Post on 26-Dec-2015

240 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

External Memory

Page 2: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Types of External Memory

Magnetic DiskOpticalMagnetic Tape

Page 3: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Magnetic Disk

Disk substrate coated with magnetizable material

Substrate used to be aluminiumNow glass

Page 4: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Read and Write Mechanisms

Recording and retrieval via conductive coil called a head May be single read/write head or separate ones During read/write, head is stationary, platter rotates Write

Current through coil produces magnetic field Pulses sent to head Magnetic pattern recorded on surface below

Read (traditional) Magnetic field moving relative to coil produces current Coil is the same for read and write

Read (contemporary) Separate read head, close to write head Partially shielded magneto resistive (MR) sensor Electrical resistance depends on direction of magnetic field High frequency operation

Higher storage density and speed

Page 5: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Inductive Write MR Read

Page 6: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Data Organization and Formatting

Concentric rings or tracks Gaps between tracks Reduce gap to increase capacity Same number of bits per track (variable packing

density) CAV

Tracks divided into sectorsMinimum block size is one sectorMay have more than one sector per block

Page 7: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Disk Data Layout

Page 8: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Disk Velocity

Bit near centre of rotating disk passes fixed point slower than bit on outside of disk

Increase spacing between bits in different tracks Rotate disk at constant angular velocity (CAV)

Gives pie shaped sectors and concentric tracks Individual tracks and sectors addressable Move head to given track and wait for given sector Waste of space on outer tracks

Lower data densityCan use zones to increase capacity

Each zone has fixed bits per track More complex circuitry

Page 9: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Disk Layout Methods Diagram

Page 10: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Finding Sectors

Must be able to identify start of track and sector

Format disk Additional information not available to user Marks tracks and sectors

Page 11: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Gap1 Id Gap2 Data Gap3 Gap1 Id Gap2 Data Gap3

TrackSyncByte

Head Sector CRC SyncByte

Data CRC

ST506 format (old!)

Page 12: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Characteristics

Fixed (rare) or movable headRemovable or fixedSingle or double (usually) sidedSingle or multiple platterHead mechanism

Contact Fixed gap Flying (Winchester)

Page 13: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Fixed/Movable Head Disk

Fixed head One read write head per track Heads mounted on fixed ridged arm

Movable head One read write head per side Mounted on a movable arm

Page 14: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Removable or Not

Removable disk Can be removed from drive and replaced with another

disk Provides unlimited storage capacity Easy data transfer between systems

Nonremovable disk Permanently mounted in the drive

Page 15: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Multiple Platter

One head per sideHeads are joined and alignedAligned tracks on each platter form cylindersData is striped by cylinder

reduces head movement Increases speed (transfer rate)

Page 16: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Multiple Platters

Page 17: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Cylinders

Page 18: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Speed

Seek time Moving head to correct track

(Rotational) latency Waiting for data to rotate under head

Access time = Seek + LatencyTransfer rate

Page 19: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Timing of Disk I/O Transfer

Page 20: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID

Redundant Array of Independent Disks Redundant Array of Inexpensive Disks6 levels in common useNot a hierarchy—but different design

architectures with 3 common characteristics: Set of physical disks viewed as single logical drive by

O/S Data distributed across physical drives of an array Can use redundant capacity to store parity

information, which guarantees data recoverability in case of a disk failure (except RAID 0)

Page 21: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 0

No redundancyData striped across all disksRound Robin stripingIncrease speed

Multiple data requests probably not on same disk Disks seek in parallel A set of data is likely to be striped across multiple

disks

Disk striping

Page 22: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 0 Striping

Page 23: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 0 Logical Disk

Page 24: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 1

Mirrored DisksData is striped across disks2 copies of each stripe on separate disksRead from either to speed up readsWrite to both at the same time in parallelRecovery is simple

Swap faulty disk & re-mirror No down time

Expensive—two complete sets of drives

Page 25: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 2

Disks are synchronizedVery small stripes

Often single byte/word

Error correction calculated across corresponding bits on disks

Multiple parity disks store Hamming code error correction in corresponding positions

Lots of redundancy Expensive Not commercially available

Page 26: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 3

Similar to RAID 2Only one redundant parity disk, no matter

how large the arraySimple parity bit for each set of

corresponding bitsData on failed drive can be reconstructed

from surviving data and parity infoVery high transfer rates

Page 27: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 4

Each disk operates independentlyGood for high I/O request rateLarge stripesBit by bit parity calculated across stripes on

each diskParity stored on parity diskNot commercially available

Page 28: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 5

Like RAID 4Parity striped across all disksRound robin allocation for parity stripeAvoids RAID 4 bottleneck at parity diskCommonly used in network servers

N.B. DOES NOT MEAN 5 DISKS!!!!!

Page 29: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 6

Two parity calculationsStored in separate blocks on different disksUser requirement of N disks needs N+2High data availability

Three disks need to fail for data loss Significant write penalty

Page 30: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 0, 1, 2

Page 31: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 3 & 4

Page 32: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID 5 & 6

Page 33: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

RAID Levels

Page 34: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Level 0: striped disk array without fault tolerancLevel 1: mirroring and duplexingLevel 2: error-correcting codingLevel 3: bit-interleaved parityLevel 4: dedicated parity driveLevel 5: block interleaved distributed parityLevel 6: independent data disks with double parityLevel 10: a stripe of mirrors

Page 35: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Optical Storage CD-ROM

Originally for audioPolycarbonate coated with highly reflective

coat, usually aluminiumData stored as pitsRead by reflecting laserConstant packing densityConstant linear velocity

Page 36: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

CD Operation

Page 37: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

CD-ROM Drive Speeds

Audio is single speed Constant linier velocity

Other speeds are quoted as multiplesQuoted figure is maximum drive can achieve

Page 38: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Random Access on CD-ROM

DifficultMove head to rough positionSet correct speedRead addressAdjust to required location

Page 39: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

CD-ROM for & against

Large capacity (?)Easy to mass produceRemovableRobust

Expensive for small runsSlowRead only

Page 40: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Other Optical Storage

CD-Recordable (CD-R) WORM Now affordable Compatible with CD-ROM drives

CD-RW Erasable Getting cheaper Mostly CD-ROM drive compatible Phase change

Material has two different reflectivities in different phase states

Page 41: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

DVD - what’s in a name?

Digital Video Disk Used to indicate a player for movies

Only plays video disks

Digital Versatile Disk Used to indicate a computer drive

Will read computer disks and play video disks

Dogs Veritable DinnerOfficially - nothing!!!

Page 42: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

DVD - technology

Multi-layerVery high capacityFull length movie on single disk

Using MPEG compression

Finally standardizedMovies carry regional codingPlayers only play correct region filmsCan be “fixed”

Page 43: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

DVD – Writable

Loads of trouble with standardsFirst generation DVD drives may not read

first generation DVD-W disksFirst generation DVD drives may not read

CD-RW disksWait for it to settle down before buying!

Page 44: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Magnetic Tape

Serial accessSlowVery cheapBackup and archive

Page 45: External Memory. Types of External Memory Magnetic Disk Optical Magnetic Tape

Digital Audio Tape (DAT)

Uses rotating headHigh capacity on small tapeBackup of PC/network servers