Mass Storage Structure
Mass Storage Structure
Mass Storage Structure
• Disk Structure
• Disk Scheduling
• Disk Management
• Swap-Space Management
• Disk Reliability
• Stable-Storage Implementation
• Tertiary Storage Devices
• Operating System Issues
• Performance Issues
Applied Operating System Concepts 13.1 Silberschatz, Galvin, and Gagne 1999
Disk Structure
Applied Operating System Concepts 13.2 Silberschatz, Galvin, and Gagne 1999
Disk Scheduling
Applied Operating System Concepts 13.3 Silberschatz, Galvin, and Gagne 1999
Disk Scheduling (Cont.)
Head pointer 53
Applied Operating System Concepts 13.4 Silberschatz, Galvin, and Gagne 1999
FCFS
Applied Operating System Concepts 13.5 Silberschatz, Galvin, and Gagne 1999
SSTF
• Selects the request with the minimum seek time from the
current head position.
• SSTF scheduling is a form of SJF scheduling; may cause
starvation of some requests.
• Illustration shows total head movement of 236 cylinders.
Applied Operating System Concepts 13.6 Silberschatz, Galvin, and Gagne 1999
SSTF (Cont.)
Applied Operating System Concepts 13.7 Silberschatz, Galvin, and Gagne 1999
SCAN
• The disk arm starts at one end of the disk, and moves toward
the other end, servicing requests until it gets to the other end
of the disk, where the head movement is reversed and
servicing continues.
• Sometimes called the elevator algorithm.
• Illustration shows total head movement of 208 cylinders.
Applied Operating System Concepts 13.8 Silberschatz, Galvin, and Gagne 1999
SCAN (Cont.)
Applied Operating System Concepts 13.9 Silberschatz, Galvin, and Gagne 1999
C-SCAN
Applied Operating System Concepts 13.10 Silberschatz, Galvin, and Gagne 1999
C-SCAN (Cont.)
Applied Operating System Concepts 13.11 Silberschatz, Galvin, and Gagne 1999
C-LOOK
• Version of C-SCAN
• Arm only goes as far as the last request in each direction,
then reverses direction immediately, without first going all the
way to the end of the disk.
Applied Operating System Concepts 13.12 Silberschatz, Galvin, and Gagne 1999
C-LOOK (Cont.)
Applied Operating System Concepts 13.13 Silberschatz, Galvin, and Gagne 1999
Selecting a Disk-Scheduling Algorithm
Applied Operating System Concepts 13.14 Silberschatz, Galvin, and Gagne 1999
Disk Management
Applied Operating System Concepts 13.15 Silberschatz, Galvin, and Gagne 1999
Swap-Space Management
Applied Operating System Concepts 13.16 Silberschatz, Galvin, and Gagne 1999
Disk Reliability
Applied Operating System Concepts 13.17 Silberschatz, Galvin, and Gagne 1999
Stable-Storage Implementation
Applied Operating System Concepts 13.18 Silberschatz, Galvin, and Gagne 1999
Tertiary Storage Devices
Applied Operating System Concepts 13.19 Silberschatz, Galvin, and Gagne 1999
Removable Disks
Applied Operating System Concepts 13.20 Silberschatz, Galvin, and Gagne 1999
Removable Disks (Cont.)
Applied Operating System Concepts 13.21 Silberschatz, Galvin, and Gagne 1999
WORM Disks
Applied Operating System Concepts 13.22 Silberschatz, Galvin, and Gagne 1999
Tapes
Applied Operating System Concepts 13.23 Silberschatz, Galvin, and Gagne 1999
Operating System Issues
Applied Operating System Concepts 13.24 Silberschatz, Galvin, and Gagne 1999
Application Interface
Applied Operating System Concepts 13.25 Silberschatz, Galvin, and Gagne 1999
Tape Drives
Applied Operating System Concepts 13.26 Silberschatz, Galvin, and Gagne 1999
File Naming
Applied Operating System Concepts 13.27 Silberschatz, Galvin, and Gagne 1999
Hierarchical Storage Management (HSM)
Applied Operating System Concepts 13.28 Silberschatz, Galvin, and Gagne 1999
Speed
Applied Operating System Concepts 13.29 Silberschatz, Galvin, and Gagne 1999
Speed (Cont.)
Applied Operating System Concepts 13.30 Silberschatz, Galvin, and Gagne 1999
Reliability
Applied Operating System Concepts 13.31 Silberschatz, Galvin, and Gagne 1999
Cost
Applied Operating System Concepts 13.32 Silberschatz, Galvin, and Gagne 1999
MS-DOS Disk Layout
Applied Operating System Concepts 13.33 Silberschatz, Galvin, and Gagne 1999
4.3BSD Text-Segment Swap Map
Applied Operating System Concepts 13.34 Silberschatz, Galvin, and Gagne 1999
4.3BSD Data-Segment Swap Map
Applied Operating System Concepts 13.35 Silberschatz, Galvin, and Gagne 1999