1 Operating Systems Part VI: Mass- Storage Structure.

Slides:



Advertisements
Similar presentations
Silberschatz, Galvin and Gagne Operating System Concepts Disk Scheduling Disk IO requests are for blocks, by number Block requests come in an.
Advertisements

I/O Management and Disk Scheduling
CS 6560: Operating Systems Design
Disk Scheduling Based on the slides supporting the text 1.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto Disks and RAID.
Operating Systems 1 K. Salah Module 5.0: I/O and Disks I/O hardware Polling and Interrupt-driven I/O DMA Bock and character devices Blocking and nonblocking.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Chapter 12: Mass-Storage Structures
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Mass-Storage Structure
Based on the slides supporting the text
Chapter 12: Secondary-Storage Structure Silberschatz, Galvin and Gagne ©2005 Operating System Principles 12.1 Overview of Mass Storage Structure.
Disks.
1 Disk Scheduling Chapter 14 Based on the slides supporting the text.
Disks CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Mass-Storage Systems Revised Tao Yang.
Moving-head Disk Mechanism Rotation Speeds: 60 to 200 rotations per second Head Crash: read-write head makes contact with the surface.
12.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 12: Mass-Storage Systems.
Disk and I/O Management
CS 346 – Chapter 10 Mass storage –Advantages? –Disk features –Disk scheduling –Disk formatting –Managing swap space –RAID.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 14: Mass-Storage Systems Disk Structure Disk Scheduling Disk Management Swap-Space.
Mass storage Structure Unit 5 (Chapter 14). Disk Structures Magnetic disks are faster than tapes. Disk drives are addressed as large one- dimensional.
1 Lecture 8: Secondary-Storage Structure 2 Disk Architecture Cylinder Track SectorDisk head rpm.
Mass-Storage Systems. Objectives  physical structure of secondary and tertiary storage devices  performance characteristics of mass-storage devices.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Silberschatz and Galvin  Operating System Concepts Module 13: Secondary-Storage Disk Structure Disk Scheduling Disk Management Swap-Space Management.
Disk Structure Disk drives are addressed as large one- dimensional arrays of logical blocks, where the logical block is the smallest unit of transfer.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 13+14: I/O Systems and Mass- Storage Structure I/O Hardware Application I/O.
Chapter 12: Mass-Storage Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 12: Mass-Storage Systems Overview of Mass.
Page 110/12/2015 CSE 30341: Operating Systems Principles Network-Attached Storage  Network-attached storage (NAS) is storage made available over a network.
Chapter 12: Mass-Storage Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 12: Mass-Storage.
1Fall 2008, Chapter 12 Disk Hardware Arm can move in and out Read / write head can access a ring of data as the disk rotates Disk consists of one or more.
NETW 3005 Mass Storage (How discs work). Notice I was unaware just how much was missing in the printed notes. As a partial remedy for that, the lecture.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 14: Mass-Storage Systems Disk Structure Disk Scheduling Disk Management Swap-Space.
CS 6502 Operating Systems Dr. J.. Garrido Device Management (Lecture 7b) CS5002 Operating Systems Dr. Jose M. Garrido.
CE Operating Systems Lecture 20 Disk I/O. Overview of lecture In this lecture we will look at: Disk Structure Disk Scheduling Disk Management Swap-Space.
I/O Management and Disk Structure Introduction to Operating Systems: Module 14.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 14: Mass-Storage Systems Disk Structure Disk Scheduling Disk Management Swap-Space.
Chapter 12 – Mass Storage Structures (Pgs )
Chapter 12: Mass-Storage Systems
Silberschatz, Galvin and Gagne ©2009 Edited by Khoury, 2015 Operating System Concepts – 9 th Edition, Chapter 10: Mass-Storage Structure.
1.  Disk Structure Disk Structure  Disk Scheduling Disk Scheduling  FCFS FCFS  SSTF SSTF  SCAN SCAN  C-SCAN C-SCAN  C-LOOK C-LOOK  Selecting a.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 13: Secondary-Storage Disk Structure Disk Scheduling Disk Management.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 13 Mass-Storage Systems Slide 1 Chapter 13 Mass-Storage Systems.
Chapter 14: Mass-Storage
Chapter 14: Mass-Storage Systems Operating System Concepts Disk Structure Disk Scheduling Disk Management Swap-Space Management RAID Structure Disk Attachment.
Chapter 14: Mass-Storage Systems Disk Structure. Disk Scheduling. RAID.
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
M ASS S TORAGE S TRUCTURES Lecture: Operating System Concepts Lecturer: Pooja Sharma Computer Science Department, Punjabi University, Patiala.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts Essentials – 2 nd Edition Chapter 9: Mass-Storage Systems.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 11: File System Implementation.
Mass Storage Structure
Operating System (013022) Dr. H. Iwidat
I/O System Chapter 5 Designed by .VAS.
Chapter 12: Mass-Storage Structure
Operating System I/O System Monday, August 11, 2008.
Disk Scheduling Algorithms
Mass-Storage Structure
DISK SCHEDULING FCFS SSTF SCAN/ELEVATOR C-SCAN C-LOOK.
Chapter 14 Based on the slides supporting the text
Chapter 12: Mass-Storage Systems
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Tape pictures.
Overview Continuation from Monday (File system implementation)
Disks and scheduling algorithms
Chapter 12: Mass-Storage Structure
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Presentation transcript:

1 Operating Systems Part VI: Mass- Storage Structure

2 Disk Structure Platter Cylinder Track Sector

3 Data Transfer Seek time: time to get to the track/cylinder containing the sector Rotational latency: time to get to the desired sector Disk bandwidth: number of bytes transferred per unit time (a.k.a. transfer rate)

4 Disk Scheduling FCFS (First Come First Served) – Simplest to implement – Intrinsically fair – Does not provide the fastest service – Example 98,183,37,122,14,124,65,67 Assume start at cylinder 53

5 Disk Scheduling FCFS (First Come First Served)

6 Disk Scheduling SSTF (Shortest Seek Time First) – Selects the request with the minimum seek time from the current head position – Essentially a form of SJF – May cause starvation – Not optimal, but substantial improvement over FCFS

7 Disk Scheduling SSTF (Shortest Seek Time First)

8 Disk Scheduling SCAN Scheduling – Sometimes called the elevator algorithm – Starts at one end of disk and moves toward other end, servicing requests as it reaches each cylinder, until it gets to other end – Head continuously scans back and forth – Disadvantage: When head reverses direction, what happens to density of request in vicinity?

9 Disk Scheduling SCAN Scheduling

10 Disk Scheduling C-SCAN Scheduling – Variation of SCAN but returns to beginning of disk without servicing requests on return trip – Treats cylinder as circular list that wraps around from final cylinder to the first one

11 Disk Scheduling C-SCAN Scheduling

12 Disk Scheduling LOOK and C-LOOK Scheduling – Variations of SCAN and C-SCAN – Goes as far as final request in each direction then reverses course without going all the way to the end – Looks for request before continuing in a direction

13 Disk Scheduling C-LOOK Scheduling

14 Selection of Disk Scheduling Algorithm Depends heavily on number and type of request Can be heavily influenced by file allocation method (contiguous vs. linked/indexed) Location of directory (first/middle/last cylinder) -> better cached SSTF or LOOK reasonable default

15 Disk Management Formatting – Low-level formatting (physical formatting) Fills disk with special data structure (header, data area, and trailer) for each sector (usually 512 bytes) -> usually done in factory Implements error-correcting code (ECC) which is updated with value calculated from all bytes in sector When sector is read, ECC is recalculated and compare with stored value -> mismatch = corruption

16 Disk Management Formatting (continued) – Partitioning Divides disk into one or more groups of cylinders Tools: fdisk, Partition Magic, System Commander – Logical formatting Creation of file system (FAT/inode, free-space mapping, initial empty directory) Raw disk: large sequential array of disk blocks without any file system structure (used by some applications) -> bypasses directory structure, file names, space allocations, and other file services

17 Disk Management Boot Block – Boot short for bootstrap – Boot program stored in ROM Fixed location and needs no initialization Cannot be infected by virus Problem: changing boot code requires changing ROM hardware chips – Solution: ROM -> boot disk (w/ boot partition)-> O/S kernel

18 Disk Management Bad Blocks – Unavoidable due to moving parts and proximity of R/W head to platter surface – Data in bad blocks are usually lost – Handled manually in simple disks (IDE) Format scans for bad blocks and locks them away Chkdsk and scandisk do the same but used in normal operation – SCSI disks “smarter” in handling bad blocks Uses sector sparing or forwarding Sector slipping sometimes used in place of sparing

19 Swap Space Goal: provide best throughput for virtual memory system Swap space use – Varies depending on O/S (e.g. entire process image, pages pushed out of MM swapped, etc.) – Some O/Ss allow multiple swap spaces – Safer to overestimate than to underestimate size Swap space location – Part of the file system (Windows) – Separate disk partition (normally raw device, e.g. Unix)

20 RAID Structure Redundant Arrays of Inexpensive Disks Concept now extended to other devices such as tapes Redundancy solves problem of reliability – Duplicate each disk (mirroring/shadowing) Performance improvement via parallelism – Mirroring doubles read access times – Data striping: splitting data across multiple disks (bit- level, block-level, sector-level, etc.)

21 RAID Levels Mirroring: high-reliability but expensive; striping: high-speed but does not improve reliability RAID levels provide a scheme that combines mirroring and striping – Cost-performance trade-offs (hence, levels) – Example: RAID 0 (block striping but without mirroring), RAID 1 (mirroring), RAID 0 + 1

22 Disk Attachment Host-attached storage – May be IDE, SCSI, or RAID device Network-attached storage – Provides convenient way to share pool of storage and data – Consumes network bandwidth – More efficient if Storage Area Network (SAN) is implemented (using storage rather than networking protocols)

23 Tertiary Storage Built with removable media Low-cost is defining characteristic Removable disks – Magnetic (e.g. floppy, zip drives, hot- swappable hard-disks) – Optical WORM (Write Once Read Many, e.g. CD-R) Phase-change (e.g. CD-RW) – Magneto-optical

24 Tertiary Storage Tapes – Off-line: sits on shelves – Near-line: uses robotic arms -> between off- line and on-line (e.g. disks) Future technology – Holographic storage: records holographic photographs on special media – Micro-electronic mechanical systems (MEMS) -> produces small storage machines

25 Tertiary Storage Performance Speed Reliability Cost