Top Banner
http://raj- os.blogspot.in/ 1 Disk Structure
26
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Disk structure.45

http://raj-os.blogspot.in/ 1

Disk Structure

Page 2: Disk structure.45

http://raj-os.blogspot.in/ 2

HOME PREVIOUS TOPIC NEXTPREVIOUS QUESTION PAPERS FOR OSCPP TUTORIALS

Page 3: Disk structure.45

http://raj-os.blogspot.in/

Recap

In the last class, you have learnt:

• Working set model

• Page fault frequency

3

Page 4: Disk structure.45

http://raj-os.blogspot.in/ 4

Objective

On Completion of this period, you would be able

to know :

• Requirements of secondary memory

• Types of secondary memory

• Disk structure

• Head types

Page 5: Disk structure.45

http://raj-os.blogspot.in/ 5

Secondary Storage Management

Ideal requirement – Programs and data must reside in main memory permanently for process execution but,

Constraints:

• Main memory is a volatile storage

• Too small

• Expensive

Page 6: Disk structure.45

http://raj-os.blogspot.in/ 6

Requirements of Secondary Memory

• Should hold large amounts of data

• Should be nonvolatile

Page 7: Disk structure.45

http://raj-os.blogspot.in/ 7

Types of Secondary Memory

• Magnetic tapes

• Magnetic disks

Page 8: Disk structure.45

http://raj-os.blogspot.in/ 8

Types of secondary memory

• Magnetic Tapes

– Early secondary storage device – Slow, cannot provide random access– Currently used for backup of infrequently used

information

Page 9: Disk structure.45

http://raj-os.blogspot.in/ 9

Types of Secondary Memory

• Magnetic Disks

– Fast and provides random access

– Provides bulk of secondary storage

Page 10: Disk structure.45

http://raj-os.blogspot.in/ 10

Disk Structure

Fig 1 moving head disk mechanism

Page 11: Disk structure.45

http://raj-os.blogspot.in/ 11

Physical Structure

• Flat circular Shape

• Two surfaces are covered with magnetic material

• Information is recorded on both surfaces

• The disk surface is logically divided into tracks

Page 12: Disk structure.45

http://raj-os.blogspot.in/ 12

Operating System View of Disk

• One dimensional array of disk blocks

• Each block is a sector

Page 13: Disk structure.45

http://raj-os.blogspot.in/ 13

Mapping of Disk address

Disk address

Cylinder i

Surface j

Sector k

Block number = k + s ( j + i * t )

Operating System view of Disk

Page 14: Disk structure.45

http://raj-os.blogspot.in/ 14

Working Principle

• The drive motor spins, disk at high speed

• The read write head is positioned just above the

surface of the disk

• Information is stored magnetically on the track

Page 15: Disk structure.45

http://raj-os.blogspot.in/ 15

Head Types

• Fixed-head disk

• Moving-head disk

15

Page 16: Disk structure.45

http://raj-os.blogspot.in/ 16

Fixed-head Disk

– Separate head for each track

– High speed access

– Large number of Heads

– Very expensive

16

Page 17: Disk structure.45

http://raj-os.blogspot.in/ 17

Moving-head disk

– Only one head

– Moves in and out to access different tracks

– Less expensive

– Additional hardware required to move the head

17

Page 18: Disk structure.45

http://raj-os.blogspot.in/ 18

Increasing Storage Capacity

• Improving recording density

– Increasing number of tracks per inch

18

Page 19: Disk structure.45

http://raj-os.blogspot.in/ 19

Increasing Storage Capacity

• Using two sides of the platter for storing information

– Additional read write head required

– Storage capacity is doubled

19

Page 20: Disk structure.45

http://raj-os.blogspot.in/ 20

Increasing storage capacity

• Stacking several disks

– Additional read/write heads are required for each disk

– Only one motor drive is sufficient

20

Page 21: Disk structure.45

http://raj-os.blogspot.in/ 21

Disk Characteristics

• Read, modify and write it back in the same place

• Access any block directly

• Sequential or random access is allowed

21

Page 22: Disk structure.45

http://raj-os.blogspot.in/ 22

Summary

In this class, you have learnt

•Types of secondary memory

•Disk structure

•Head types

Page 23: Disk structure.45

http://raj-os.blogspot.in/

Frequently Asked Questions

1. Explain Disk structure

2. Write a note on the Secondary storage devices

3. Explain different types of R/W heads

4. Explain the head disk characteristics

23

Page 24: Disk structure.45

http://raj-os.blogspot.in/ 24

Quiz

• Moving Head is more expensive than fixed head mechanism [T/F]

• Storage capacity can be increased by

•False

Increasing density Using two surfaces of the platter Stacking several disks All the above

24

Page 25: Disk structure.45

http://raj-os.blogspot.in/ 25

Quiz

• Magnetic tapes provide direct access [T/F]

• The disk has a Flat circular shape [T/F]

False

True

Page 26: Disk structure.45

Other subject materials

• Web designing

• Micro processors

• C++ tutorials

• java

home

26http://raj-os.blogspot.in/