Magnetic Disks Have cylinders, sectors platters, tracks, heads virtual and real disk blocks (x cylinders, y heads, z sectors per track) Relatively slow,

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 Chapter 11. I/O Driver OS module which controls an I/O device hides the device specifics from the above layers in the.
I/O Management and Disk Scheduling
Faculty of Information Technology Department of Computer Science Computer Organization Chapter 7 External Memory Mohammad Sharaf.
RAID (Redundant Arrays of Independent Disks). Disk organization technique that manages a large number of disks, providing a view of a single disk of High.
RAID Redundant Array of Independent Disks
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.
Lecture 36: Chapter 6 Today’s topic –RAID 1. RAID Redundant Array of Inexpensive (Independent) Disks –Use multiple smaller disks (c.f. one large disk)
Operating Systems Input/Output Devices (Ch , 12.7; , 13.7)
1 Storage (cont’d) Disk scheduling Reducing seek time (cont’d) Reducing rotational latency RAIDs.
Other Disk Details. 2 Disk Formatting After manufacturing disk has no information –Is stack of platters coated with magnetizable metal oxide Before use,
Lecture 17 I/O Optimization. Disk Organization Tracks: concentric rings around disk surface Sectors: arc of track, minimum unit of transfer Cylinder:
1 Lecture 26: Storage Systems Topics: Storage Systems (Chapter 6), other innovations Final exam stats:  Highest: 95  Mean: 70, Median: 73  Toughest.
Based on the slides supporting the text
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.
Operating Systems COMP 4850/CISG 5550 Disks, Part II Dr. James Money.
12.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 12: Mass-Storage Systems.
Chapter 6 RAID. Chapter 6 — Storage and Other I/O Topics — 2 RAID Redundant Array of Inexpensive (Independent) Disks Use multiple smaller disks (c.f.
CS 346 – Chapter 10 Mass storage –Advantages? –Disk features –Disk scheduling –Disk formatting –Managing swap space –RAID.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Storage Systems.
1 Recitation 8 Disk & File System. 2 Disk Scheduling Disks are at least four orders of magnitude slower than main memory –The performance of disk I/O.
CSE 321b Computer Organization (2) تنظيم الحاسب (2) 3 rd year, Computer Engineering Winter 2015 Lecture #4 Dr. Hazem Ibrahim Shehata Dept. of Computer.
Mass storage Structure Unit 5 (Chapter 14). Disk Structures Magnetic disks are faster than tapes. Disk drives are addressed as large one- dimensional.
RAID COP 5611 Advanced Operating Systems Adapted from Andy Wang’s slides at FSU.
Lecture 9 of Advanced Databases Storage and File Structure (Part II) Instructor: Mr.Ahmed Al Astal.
Topic: Disks – file system devices. Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time.
Disk Structure Disk drives are addressed as large one- dimensional arrays of logical blocks, where the logical block is the smallest unit of transfer.
Page 110/12/2015 CSE 30341: Operating Systems Principles Network-Attached Storage  Network-attached storage (NAS) is storage made available over a network.
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.
Disks Chapter 5 Thursday, April 5, Today’s Schedule Input/Output – Disks (Chapter 5.4)  Magnetic vs. Optical Disks  RAID levels and functions.
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 )
1 Lecture 27: Disks Today’s topics:  Disk basics  RAID  Research topics.
Chapter 14: Mass-Storage Systems Disk Structure. Disk Scheduling. RAID.
CS399 New Beginnings Jonathan Walpole. Disk Technology & Secondary Storage Management.
Part IV I/O System Chapter 12: Mass Storage Structure.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems DISK I/0.
CS Introduction to Operating Systems
Chapter 10: Mass-Storage Systems
Multiple Platters.
External Memory.
Disks and RAID.
RAID Non-Redundant (RAID Level 0) has the lowest cost of any RAID
I/O System Chapter 5 Designed by .VAS.
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Chapter 12: Mass-Storage Structure
Operating System I/O System Monday, August 11, 2008.
DISK SCHEDULING FCFS SSTF SCAN/ELEVATOR C-SCAN C-LOOK.
Chapter 14 Based on the slides supporting the text
Chapter 10 Mass-Storage Structure
Disks.
RAID RAID Mukesh N Tekwani
Chapter 12: Mass-Storage Systems
ICOM 6005 – Database Management Systems Design
Lecture 28: Reliability Today’s topics: GPU wrap-up Disk basics RAID
Overview Continuation from Monday (File system implementation)
Jonathan Walpole Computer Science Portland State University
Disks and scheduling algorithms
Secondary Storage Management Brian Bershad
Mass-Storage Systems.
Secondary Storage Management Hank Levy
CS333 Intro to Operating Systems
RAID RAID Mukesh N Tekwani April 23, 2019
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Disks Magnetic (hard) Disk arrays are used for reliable storage (RAID)
Presentation transcript:

Magnetic Disks Have cylinders, sectors platters, tracks, heads virtual and real disk blocks (x cylinders, y heads, z sectors per track) Relatively slow, much slower than RAM very mechanical High rate of failure Sizes have gone up A LOT!

RAI D Redundant Array of Inexpensive (or Independent) Disks Improve performance by using multiple disks in parallel. Have several disks seem like one. Disks also have tendency to fail - more disks, more failures likely - providing more reliability would be a good thing too.

RAI D Comes in several different levels (0-6) providing varying degrees of performance and/or redundancy at varying costs. Striping (RAID-0) – no redundancy - offers high data transfer and I/O throughput - suffers lower reliability and availability than a single disk.

RAI D Mirroring (RAID-1) – uses equal amount of disk capacity to store original and its mirror. - all writes also go to the mirror - provides redundancy of data and offers protection against loss in the event of physical disk failure. - reads can be done round-robin for better performance. - can have multiple mirrors (n-way)

RAI D Can combine RAID0 and RAID1 Commonly done. 0+1 or RAID10 example: stripe six disks and have six more for a mirror. What happens when a disk goes bad in a mirror and has to be replaced? How likely is data loss?

RAI D RAID-2 uses bitwise striping across disks and used additional disks to hold Hamming code check bits. Can correct single-bit errors Can detect double-bit errors Used in CM-2, not much else

RAI D RAID-3 uses a parity disk to provide redundancy. - Stripes data across all but one disk in array. Uses other disk to store parity info. (XOR) - Can recover from a single data disk failure. - How is that possible? How to figure out data stored on failed disk?

RAI D RAID-4 attempts to provide higher rate of data transfer by spreading I/O load as evenly as possible across all disks in the array. Maps data and uses parity the same as RAID3 by striping the data across all disks and XORing the data for the info on the parity disk. The difference between RAID3 and 4 is that 3 access all the disks at one time and 4 access each disk independently.

RAI D The RAID4 way allows the array to execute multiple I/O requests simultaneously while RAID3 can only execute one I/O request at a time. RAID4 performs reads much better than writes. The parity disk can become a bottleneck for writes as all writes update it. Need to fix parity disk bottleneck.

RAI D RAID-5 is similar to RAID-4 except the parity is spread throughout the disks. This does away with the parity disk bottleneck. Need n + 1 disks D0 D2 P2 D1 P1 D4 P0 D3 D5

RAI D RAID-6 is similar to RAID-5 except two parity checks are done for more reliability. Can withstand two disk failures without losing data. Need n + 2 disks Software RAID and Hardware RAID

Disk scheduling Disks are slow with mechanical movements involved. 3 factors to time - seek time – moving arm to right cylinder/track - rotational delay - data transfer time seek time usually dominates - try to reduce average time - try to reduce the head movements

Disk scheduling Assume a queue of disk block requests on different cylinders. - try to optimize seek time - minimize cylinders traversed First-Come First-Served (FCFS) Serve requests in order they come in Shortest Seek First (SSF) – handle closest request next. Cylinders at edges could suffer starvation

Disk scheduling SCAN or elevator algorithm - also used in buildings with elevators - go in one direction and handle each request you come across - turn around and go in the other direction - alternatively always go in one direction and go back to 0 after reaching end - C-SCAN – Circular SCAN

I/O devices In Unix look like files - can be read, written, etc with sys calls - /dev, /devices - block and character special files - major and minor device numbers Berkeley sockets for networking TCP, UDP