chapter 6 external memory

37
COMPUTER ORGANIZATIONS CSNB123 CHAPTER 6 EXTERNAL MEMORY CSNB123 COMPUTER ORGANIZATION NSMS2013 Ver.1 Systems and Networking 1

Upload: yovela

Post on 13-Feb-2016

104 views

Category:

Documents


7 download

DESCRIPTION

CHAPTER 6 EXTERNAL MEMORY. CSNB123 coMPUTER oRGANIZATION. Recall: Chapter 4 – Common Memory Parameters. Types of External Memory. Magnetic Disk Optical Magnetic Tape. Magnetic Disk. Magnetic Disk. Disk A circular platter constructed of nonmagnetic material called substrate - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 1

CHAPTER 6 EXTERNAL MEMORY

CSNB123 COMPUTER ORGANIZATION

NSMS2013 Ver.1

Page 2: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 2

Recall: Chapter 4 – Common Memory Parameters

NSMS2013 Ver.1

Memory Type

Technology Size Access Time

Cache Semiconductor RAM

128-512 KB

10 ns

Main Memory

SemiconductorRAM

4-128 MB 50 ns

MagneticDisk

Hard Disk Gigabyte 10 ms,10 MB/sec

Optical Disk CD-ROM Gigabyte 300 ms,600 KB/sec

MagneticTape

Tape 100s MB Sec-min.,10MB/min

Page 3: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 3

Types of External Memory• Magnetic Disk• Optical• Magnetic Tape

NSMS2013 Ver.1

Page 4: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 4

MAGNETIC DISK

NSMS2013 Ver.1

Page 5: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 5

Magnetic Disk• Disk

A circular platter constructed of nonmagnetic material called substrate• Aluminium (old)• Glass (new)

Coated with a magnetisable material

NSMS2013 Ver.1

Page 6: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 6

Magnetic Disk (Cont.)• Glass

Improved surface uniformity• Increases reliability

Reduction in surface defects• Reduced read/write errors

Better stiffness – to reduce disk dynamics Greater ability to withstand shock and damage

NSMS2013 Ver.1

Page 7: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 7

Magnetic Disk – Read/Write• Mechanisms

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

NSMS2013 Ver.1

Page 8: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 8

Magnetic Disk – Read/Write (Cont.)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• 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

NSMS2013 Ver.1

Page 9: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 9

Magnetic Disk – Organization, Formatting & Layout

Term Description

Head A small device capable of reading from or writing to a portion of the platter rotating beneath it

Track Organize data on the platter in a concentric set of rings

Width Track width = head width

Gaps separate the adjacent tracks

Sectors Form of transferring the dataFixed length or variable length

NSMS2013 Ver.1

Page 10: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 10

Magnetic Disk - Velocity• Issue: Bit near centre of rotating disk passes

fixed point slower than bit on outside of disk• Solution:

Increasing the spacing between bits of information recorded in segments of the disk

The info can then be scanned at the same rate by rotating the disk at a fixed speed known as constant angular velocity (CAV)

NSMS2013 Ver.1

Page 11: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 11

Magnetic Disk - Layout Methods Diagram

NSMS2013 Ver.1

Page 12: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 12

Magnetic Disk – Constant Angular Velocity

• The disk is divided into a number of pie-shaped sectors and into a series of concentric tracks

• Advantage of CAV: The individual blocks of data can be

directly addressed by tracks and sectors

• Disadvantage of CAV: The amount of data that can be

stored on the long outer tracks is the only same as what can be stored on the short inner tracks

NSMS2013 Ver.1

Page 13: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 13

Magnetic Disk – Multiple Zone Recording

• The surface is divided into a number of concentric zones – The number of bits per track is

constant (Within the zone) Zones farther from the center

contain more bits (since more sectors) than zones closer to the center

• Advantage: Increase density

• Disadvantage: Require complex circuitry

NSMS2013 Ver.1

Page 14: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 14

Magnetic Disk – Physical Characteristics

• Head motion 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

NSMS2013 Ver.1

Page 15: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 15

Magnetic Disk – Physical Characteristics (Cont.)

• Removable disk Can be removed from drive and replaced with

another disk Provides unlimited storage capacity Easy data transfer between systems

• Non-removable disk Permanently mounted in the drive

NSMS2013 Ver.1

Page 16: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 16

Magnetic Disk – Physical Characteristics (Cont.)

• Multiple Platter One head per side Heads are joined and

aligned Aligned tracks on each

platter form cylinders Data is striped by

cylinder• Reduces head movement• Increases speed (transfer

rate)

NSMS2013 Ver.1

Page 17: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 17

Magnetic Disk – Physical Characteristics (Cont.)

• Tracks and Cylinders

NSMS2013 Ver.1

Page 18: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 18

Magnetic Disk – ClassificationsHead mechanism• #1 Traditional head

Positioned a fixed distance above the platter-allowing an air gap• #2 head mechanism that actually comes into physical

contact with the medium during R/W operation Used in floppy disk

• 8”, 5.25”, 3.5”• Small capacity• Up to 1.44Mbyte (2.88M never popular)• Slow• Universal• Cheap

NSMS2013 Ver.1

Page 19: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 19

Magnetic Disk – Classifications (Cont.)

Head mechanism• #3 Winchester

Aerodynamic gap Generate or sense an electromagnetic field of sufficient

magnitude - write/read Used in sealed drive – free of contamination – able to

reduce the risk of error Operate closer to the disk’s surface greater data density Material - Aerodynamic foil - rests lightly on the platter’s

surface

NSMS2013 Ver.1

Page 20: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 20

Magnetic Disk - Performance• Depends on;

Computer system OS Nature of the I/O channel Disk controller hardware

NSMS2013 Ver.1

Page 21: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 21

Magnetic Disk – Performance (Cont.)

General timing of disk I/O transfer• Seek time Moving head to correct track• (Rotational) latency/delay Waiting for data to rotate

under head• Access time = Seek + Latency• Transfer rate-the time required for the transfer data

NSMS2013 Ver.1

Page 22: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 22

OPTICAL STORAGE

NSMS2013 Ver.1

Page 23: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 23

Optical Storage• Originally for audio• 650Mbytes giving over 70 minutes audio• The disk is formed from a resin such as

polycarbonate. • Record data digitally (music/computer data)• Data recorded as a series of microscopic pits

on the surface of the polycarbonate

NSMS2013 Ver.1

Page 24: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 24

Optical Storage (Cont.)• Organized in a single spiral track in a sequence of

blocks• Sectors near the outside of the disk are the same

length as those near the inside• Info is packed evenly across the disk in segments

of the same size - scanned at the same rate by rotating the disk as a variable speed

• The pits are then read by the laser as a constant linear velocity (CLV)

NSMS2013 Ver.1

Page 25: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 25

Optical Storage - WritingCreate a master disk – high-intensity laser

Use master to make a die to stamp out copies onto polycarbonate

Pitted surface - coated with a highly reflective surface (aluminium / gold)

Shiny surface - protected against dust and scratches by suing a top coat of clear acrylic

A label can be silkscreened onto the acrylic

NSMS2013 Ver.1

Page 26: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 26

Optical Storage - ReadingLow-powered laser – retrieve information

from CD

Laser - shines through the clear polycarbonateMotor - spins the disk

past it

Intensity of the reflected light of the laser

changes as it encounters a pit

Lands - areas between pits

A land is smooth surface which reflects back at

higher intensity

Change between pits and lands is detected by a photosensor -convert

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 occur between intervals, a 0 is recorded

NSMS2013 Ver.1

Page 27: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 27

Optical Storage - Reading

NSMS2013 Ver.1

Page 28: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 28

Optical Storage – Types• CD-ROM• CD-R• CD-RW• DVD

NSMS2013 Ver.1

Page 29: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 29

Optical Storage – CD-ROM• Appropriate for large amount of data • Removable • Disadvantages:

Read only-cannot be updated The access time is longer compared to magnetic

disk drive

NSMS2013 Ver.1

Page 30: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 30

Optical Storage – CD-R• CD-Recordable• Write Once Read only Memory (WORM)• Compatible with CD-ROM drives

NSMS2013 Ver.1

Page 31: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 31

Optical Storage – CD-RW• Erasable• Getting cheaper• Mostly CD-ROM drive compatible• Can be rewritten and can used as secondary

storage similar to magnetic disk

NSMS2013 Ver.1

Page 32: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 32

Optical Storage – DVD• 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

NSMS2013 Ver.1

Page 33: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 33

Optical Storage – DVDTechnology• Multi-layer• Very high capacity (4.7G per layer)• Full length movie on single disk

Using MPEG compression

NSMS2013 Ver.1

Page 34: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 34

Optical Storage – DVD (Cont.)High Definition• Designed for high definition videos

Much higher capacity than DVD• Shorter wavelength laser

Blue-violet range

Smaller pits• HD-DVD

15GB single side single layer• Blu-ray

Data layer closer to laser• Tighter focus, less distortion, smaller pits

25GB on single layer Available read only (BD-ROM), Recordable once (BR-R) and re-recordable (BR-

RE)

NSMS2013 Ver.1

Page 35: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 35

MAGNETIC TAPE

NSMS2013 Ver.1

Page 36: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 36

Magnetic Tape• Tape system use the same reading/writing technique as

disk system• Made from polyester tape coated with magnetizable

material• Data on the tape are structured as a number of parallel

tracks running lengthwise• Serial access• Slow• Very cheap• Backup and archive

NSMS2013 Ver.1

Page 37: CHAPTER 6 EXTERNAL MEMORY

COMPUTER ORGANIZATIONSCSNB123

Systems and Networking 37

Magnetic Tape (Cont.)Older version - parallel recording

• Have 9 tracks• Store one byte at a time

with additional parity bit• Later system have 18 or 36

tracks

Modern version - serial recording • Data are laid out as a

sequence of bits along each track similar to magnetic disks

• Data read and write in contiguous blocks called physical records on a tape

• Typical recording technique used in serial tapes is referred as serpentine recording

NSMS2013 Ver.1