secondary storage structure

24
Secondary storage structure

Upload: priya-selvaraj

Post on 14-Apr-2017

176 views

Category:

Engineering


4 download

TRANSCRIPT

Page 1: Secondary storage structure

Secondary storage

structure

Page 2: Secondary storage structure

Types of storage

Random access storage

Serial access storage – example: Magnetic tapes

Direct access storage – example :Magnetic disks

Page 3: Secondary storage structure

Kinds of devices

Character device

Block device

Page 4: Secondary storage structure

Magnetic tapes

Long tape coated with magnetic material

Consists of 9 tracks

TRACKS

Page 5: Secondary storage structure

Magnetic tapes Read-write head A byte of data is stored laterally Data is stored and accessed as records

TRACKS

Read write head

record

Page 6: Secondary storage structure

Floppy disk

Two component address: Track number and sector number

TRACK

SECTOR

Page 7: Secondary storage structure

Floppy diskRead-write head:

Page 8: Secondary storage structure

Magnetic disk

Page 9: Secondary storage structure
Page 10: Secondary storage structure

Comparison between magnetic disks and tapes

Page 11: Secondary storage structure

Disk attachment Host- attached storageExample: hard disk drives , CD,DVD

Network-attached storage

Page 12: Secondary storage structure

Storage area network Uses storage protocols instead of network protocols. Connects servers and storage units

Page 13: Secondary storage structure

Disk Scheduling Algorithms

Page 14: Secondary storage structure

Seek time and rotational latency: the time necessary to move the disk arm to the desired track, called

the seek time The time necessary for the desired sector to rotate to the disk head,

called the rotational latency. ROTATIONAL LATENCY

Page 15: Secondary storage structure

First come First serve (FCFS):

The request that comes first are serviced first

Page 16: Secondary storage structure

4585

14685

108110

592

Total tracks traversed = 45+85+146+85+108+110+59+2= 640

Page 17: Secondary storage structure

Shortest Seek Time First (SSTF):

The request near the current head position is serviced first

Page 18: Secondary storage structure

12

3023

59

8424

2

2

Total tracks traversed = 12+2+30+23+84+24+2+59= 236

Page 19: Secondary storage structure

SCAN algorithm: (Elevator algorithm) The read-write head moves in a particular

direction and services all the requests along that direction

Traverses till the last track and then reverses its direction and services the remaining requests

Page 20: Secondary storage structure

16

1423

59

65

3124

2

2

Does not change direction at 14th track.Reaches 0th track and then reverses.

Page 21: Secondary storage structure

Look algorithm

Does not traverse till 0th track

Page 22: Secondary storage structure

C-SCAN algorithm: (Circular scan)

12

31

2

59

23

24

2

14

16Does not change direction at 183rd track.Reaches 199th track and then reaches 0th track.

Page 23: Secondary storage structure

C-LOOK algorithm:

12

31

2

59

23

24

169

2 Does not traverse till 199th track. Returns to 14th track (not 0th track) after 183rd track

Page 24: Secondary storage structure