Topic: Disks – file system devices. Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time.

Slides:



Advertisements
Similar presentations
Disk Storage SystemsCSCE430/830 Disk Storage Systems CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Yifeng Zhu (U. Maine) Fall,
Advertisements

Silberschatz, Galvin and Gagne Operating System Concepts Disk Scheduling Disk IO requests are for blocks, by number Block requests come in an.
I/O Management and Disk Scheduling
Faculty of Information Technology Department of Computer Science Computer Organization Chapter 7 External Memory Mohammad Sharaf.
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.
CSE506: Operating Systems Disk Scheduling. CSE506: Operating Systems Key to Disk Performance Don’t access the disk – Whenever possible Cache contents.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Mass-Storage Systems Revised Tao Yang.
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)
CSCE 212 Chapter 8 Storage, Networks, and Other Peripherals Instructor: Jason D. Bakos.
RAID and Other Disk Details
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.
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
Based on the slides supporting the text
Chapter 12 – Disk Performance Optimization Outline 12.1 Introduction 12.2Evolution of Secondary Storage 12.3Characteristics of Moving-Head Disk Storage.
Disks.
Operating Systems Operating System Support for Continuous Media.
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
Avishai Wool lecture Introduction to Systems Programming Lecture 9 Input-Output Devices.
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
04/21/2004CSCI 315 Operating Systems Design1 Disk Scheduling.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Mass-Storage Systems Revised Tao Yang.
Secondary Storage Management Hank Levy. 8/7/20152 Secondary Storage • Secondary Storage is usually: –anything outside of “primary memory” –storage that.
Disk and I/O Management
MM File Management Karrie Karahlaios and Brian P. Bailey Spring 2007.
CS4432: Database Systems II Data Storage (Better Block Organization) 1.
CENG334 Introduction to Operating Systems Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY URL:
DISKS IS421. DISK  A disk consists of Read/write head, and arm  A platter is divided into Tracks and sector  The R/W heads can R/W at the same time.
CS 346 – Chapter 10 Mass storage –Advantages? –Disk features –Disk scheduling –Disk formatting –Managing swap space –RAID.
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.
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.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Disk & disk scheduling.
IT 344: Operating Systems Winter 2010 Module 13 Secondary Storage Chia-Chi Teng CTB 265.
Disk Structure Disk drives are addressed as large one- dimensional arrays of logical blocks, where the logical block is the smallest unit of transfer.
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.
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.
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.
I/O and Disk Scheduling CS Spring Overview Review of I/O Techniques I/O Buffering Disk Geometry Disk Scheduling Algorithms RAID.
CS 153 Design of Operating Systems Spring 2015 Lecture 22: File system optimizations.
Lecture 40: Review Session #2 Reminders –Final exam, Thursday 3:10pm Sloan 150 –Course evaluation (Blue Course Evaluation) Access through.
UNIVERSITY of WISCONSIN-MADISON Computer Sciences Department
Chapter 12: Mass-Storage Systems
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.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 13 Mass-Storage Systems Slide 1 Chapter 13 Mass-Storage Systems.
1 Lecture 27: Disks Today’s topics:  Disk basics  RAID  Research topics.
Chapter 14: Mass-Storage Systems Disk Structure. Disk Scheduling. RAID.
Device Management Mark Stanovich Operating Systems COP 4610.
CS399 New Beginnings Jonathan Walpole. Disk Technology & Secondary Storage Management.
Disk Average Seek Time. Multi-platter Disk platter Disk read/write arm read/write head.
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Part IV I/O System Chapter 12: Mass Storage Structure.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts Essentials – 2 nd Edition Chapter 9: Mass-Storage Systems.
LECTURE 13 I/O. I/O CANNOT BE IGNORED Assume a program requires 100 seconds, 90 seconds for main memory, 10 seconds for I/O. Assume main memory access.
1 Components of the Virtual Memory System  Arrows indicate what happens on a lw virtual address data physical address TLB page table memory cache disk.
CS422 Principles of Database Systems Disk Access Chengyu Sun California State University, Los Angeles.
Magnetic Disks Have cylinders, sectors platters, tracks, heads virtual and real disk blocks (x cylinders, y heads, z sectors per track) Relatively slow,
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems DISK I/0.
Disks and RAID.
DISK SCHEDULING FCFS SSTF SCAN/ELEVATOR C-SCAN C-LOOK.
Disks and scheduling algorithms
Persistence: hard disk drive
Mass-Storage Systems.
CSE451 File System Introduction and Disk Drivers Autumn 2002
Presentation transcript:

Topic: Disks – file system devices

Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time seek time = 5-15 milliseconds to move the disk arm and settle on a cylinder rotational delay = 8 milliseconds for full rotation at 7200 RPM: average delay = 4 ms transfer time = 1 millisecond for an 8KB block at 8 MB/s Bandwidth utilization is less than 50% for any noncontiguous access at a block grain.

Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time + spinup time seek time = 5-15 milliseconds to move the disk arm and settle on a cylinder rotational delay = 8 milliseconds for full rotation at 7200 RPM: average delay = 4 ms transfer time = 1 millisecond for an 8KB block at 8 MB/s Spinup/spindown time = ~1 second Bandwidth utilization is less than 50% for any noncontiguous access at a block grain.

What to do about Disks? Avoid them altogether! Caching  Disk scheduling –Idea is to reorder outstanding requests to minimize seeks. Layout on disk –Placement to minimize disk overhead  Build a better disk (or substitute) –Example: RAID

Disk Scheduling (Seek Time) Assuming there are sufficient outstanding requests in request queue Focus is on seek time - minimizing physical movement of head. Simple model of seek performance Seek Time = startup time (e.g. 3.0 ms) + N (number of cylinders ) * per-cylinder move (e.g..04 ms/cyl)

Policies Generally use FCFS as baseline for comparison Shortest Seek First (SSTF) -closest –danger of starvation Elevator (SCAN) - sweep in one direction, turn around when no requests beyond –handle case of constant arrivals at same position C-SCAN - sweep in only one direction, return to 0 –less variation in response 1, 3, 2, 4, 3, 5, 0 FCFS SSTF SCAN CSCAN

Rotational Latency Order requests according to sectors and service them as they rotate under read head

Rotational Latency Order requests according to sectors and service them as they rotate under read head

Rotational Latency Order requests according to sectors and service them as they rotate under read head

Rotational Latency Order requests according to sectors and service them as they rotate under read head

Build a Better Disk? “Better” has typically meant density to disk manufacturers - bigger disks are better. I/O Bottleneck - a speed disparity caused by processors getting faster more quickly One idea is to use parallelism of multiple disks –Striping data across disks –Reliability issues - introduce redundancy

RAID Redundant Array of Inexpensive Disks Striped DataParity Disk (RAID Levels 2 and 3)

RAID Level P0 567P P289 block numbers Distribute parity info as well as data over all disks

MEMS-based Storage Comparing MEMS-based storage with disks –Request scheduling –Data layout –Fault tolerance –Power management

Settling time after X seek Spring factor - non-uniform over sled positions Turnaround time

Data on Media Sled

Disk Analogy 16 tips MxN = 3 x 280 Cylinder – same x offset 4 tracks of 1080 bits, 4 tips Each track – 12 sectors of 80 bits (8 encoded bytes) Logical blocks striped across 2 sectors

Logical Blocks and LBN Sectors are smaller than disk Multiple sectors can be accessed concurrently Bidirectional access

Comparison MEMS Positioning – X and Y seek ( ms) Settling time 0.2ms Seeks near edges take longer due to springs, turnarounds depend on direction – it isn’t just distance to be moved. More parts to break Access parallelism Disk Seek (1-15 ms) and rotational delay Settling time 0.5ms Seek times are relatively constant functions of distance Constant velocity rotation occurring regardless of accesses