Disk Drivers May 10, 2000 Instructor: Gary Kimura.

Slides:



Advertisements
Similar presentations
Disk Scheduling Based on the slides supporting the text 1.
Advertisements

Operating Systems ECE344 Ashvin Goel ECE University of Toronto Disks and RAID.
OPERATING SYSTEMS CS3530 Summer 2014 OPERATING SYSTEMS CS3530 Summer 2014 Input/Output System Chapter 9.
Based on the slides supporting the text
Disks.
1 Disk Scheduling Chapter 14 Based on the slides supporting the text.
1 File System Implementations. 2 Overview The Low Level –disks –caching –RAM disks –RAIDs –disk head scheduling The higher level –file systems –directories.
Disks CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
Secondary Storage Management Hank Levy. 8/7/20152 Secondary Storage • Secondary Storage is usually: –anything outside of “primary memory” –storage that.
Operating Systems COMP 4850/CISG 5550 Disks, Part II Dr. James Money.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
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 153 Design of Operating Systems Spring 2015 Lecture 20: File Systems.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
Topic: Disks – file system devices. Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time.
IT 344: Operating Systems Winter 2010 Module 13 Secondary Storage Chia-Chi Teng CTB 265.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
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.
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.
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.
Lecture 3 Page 1 CS 111 Online Disk Drives An especially important and complex form of I/O device Still the primary method of providing stable storage.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
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.
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.
M ASS S TORAGE S TRUCTURES Lecture: Operating System Concepts Lecturer: Pooja Sharma Computer Science Department, Punjabi University, Patiala.
Presentation-4 Group-A1 Professor Mohamed Khalil Anita Kanuganti Hemanth Rao.
CSE 451: Operating Systems Winter 2012 Secondary Storage Mark Zbikowski Gary Kimura.
CSE 451: Operating Systems Spring 2010 Module 12.5 Secondary Storage John Zahorjan Allen Center 534.
Chapter 10: Mass-Storage Systems
Operating System (013022) Dr. H. Iwidat
Disks and RAID.
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Secondary Storage Secondary storage typically: Characteristics:
Operating System I/O System Monday, August 11, 2008.
Disk Scheduling Algorithms
Mass-Storage Structure
IT 344: Operating Systems Winter 2008 Module 13 Secondary Storage
Lecture 45 Syed Mansoor Sarwar
Chapter 14 Based on the slides supporting the text
CSE 153 Design of Operating Systems Winter 2018
Operating Systems (CS 340 D)
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
CSE 451: Operating Systems Winter 2006 Module 13 Secondary Storage
Overview Continuation from Monday (File system implementation)
CSE 451: Operating Systems Autumn 2003 Lecture 12 Secondary Storage
CSE 451: Operating Systems Winter 2007 Module 13 Secondary Storage
CSE 451: Operating Systems Spring 2006 Module 13 Secondary Storage
Secondary Storage Management Brian Bershad
Mass-Storage Systems.
CSE 451: Operating Systems Secondary Storage
CSE 451: Operating Systems Winter 2003 Lecture 12 Secondary Storage
CSE 451: Operating Systems Winter 2009 Module 12 Secondary Storage
CSE 451: Operating Systems Spring 2005 Module 13 Secondary Storage
Secondary Storage Management Hank Levy
CSE451 File System Introduction and Disk Drivers Autumn 2002
CSE 451: Operating Systems Autumn 2004 Secondary Storage
CSE 451: Operating Systems Winter 2004 Module 13 Secondary Storage
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
CSE 451: Operating Systems Spring 2007 Module 11 Secondary Storage
Presentation transcript:

Disk Drivers May 10, 2000 Instructor: Gary Kimura

26/18/2015 Today’s Topics Where the does the file system and disk driver fit in the scheme of things General features and semantics presented in a disk driver (next we’ll cover file systems) Implementation details

36/18/2015 Secondary Storage Secondary Storage is usually: –anything outside of “primary memory” –storage that does not permit direct instruction execution or data fetch by load/store instructions –it’s large –it’s cheap –it’s non-volatile –it’s slow

46/18/2015 The Big Picture One goal of the file system is to add useful structure and semantics to an otherwise blah disk. The major OS components in this area are: –The Disk Driver –The File System –The I/O System –The Software Cache Management System

56/18/2015 The Disk Driver Abstractly the disk driver’s task is to present to the rest of the operating systems a consistent physical media for storing and retrieving data. –It presents consecutively numbered sectors (Logical Blocks) to the rest of the OS –The numbering is referred to as the Logical Block Number (LBN) The Disk driver must deal with the mess of physical devices: –Various sizes and speeds –Errors –Bad blocks –Missed seeks The disk driver hides this mess

66/18/2015 A Rather Old Physical Disk Structure Disk are made of metal platters with a read/write head flying over it. To read from a disk, we must specify: –cylinder # –surface # –sector # –transfer size –memory address Transfer time includes: seek, latency, and transfer time ReadWrite heads Platters Spindle Track Sector Seek Time Rot Delay

76/18/2015 Some Typical Numbers Sector size: 512 bytes Cylinders per disk (tracks per platter): 6962 † Platters: † Rotational speed: RPM Storage size: GB Seek time: ms Latency: 3 ms Transfer rate: MB/sec † Modern hardware often lies about its dimensional size

86/18/2015 Disk Scheduling Because disks are slow and seeks are long and depend on distance, we can schedule disk accesses, e.g.: –FCFS (do nothing) –ok when load is low –long waiting times for long request queue –SSTF (shortest seek time first) –always minimize arm movement. maximize throughput. –favors middle blocks –SCAN (elevator) -- continue in same direction until done, then reverse direction and service in that order –C-SCAN -- like scan, but go back to 0 at end In general, unless there are request queues, it doesn’t matter The File System may locate files strategically for performance reasons.

96/18/2015 Bad Blocks With increasing densities, all disks have some bad blocks, and some go bad as time goes on. The File System can remove that block from its allocation map. On some disks, each cylinder contains a set of replacement blocks that the device can remap to replace other “logical” blocks on the same cylinder that are bad.

106/18/2015 Other Disk Issues As disk technology has grown modern hardware system have changed some of the changes are –Automatically Bad Block revectoring –Constant density means more sectors on the outside cylinders which implies a performance win if we can mostly utilize the outside cylinders. –Hardware caching means that the seek algorithm is now out of the software systems direct control. Multi-volume sets is often handled by the disk driver –Stripping is then possible –RAID volumes are included in this scenario (another lecture)

116/18/2015 Still to come File system details How to impose a structure to the disk How to design the file system driver Software caching etc.