Disk scheduling In multiprogramming systems several different processes may want to use the system's resources simultaneously. The disk drive needs some.

Slides:



Advertisements
Similar presentations
Disk scheduling examples. Problem parameters: u Disk has 100 cylinders, labeled u Time to move from cylinder A to cylinder B is a linear function.
Advertisements

OPERATING SYSTEMS CS3530 Summer 2014 OPERATING SYSTEMS CS3530 Summer 2014 Input/Output System Chapter 9.
Storage. The Memory Hierarchy fastest, but small under a microsecond, random access, perhaps 2Gb Typically magnetic disks, magneto­ optical (erasable),
Based on the slides supporting the text
Disks.
04/21/2004CSCI 315 Operating Systems Design1 Disk Scheduling.
04/19/2004CSCI 315 Operating Systems Design1 Mass Storage Structure Notice: The slides for this lecture have been largely based on those accompanying the.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Disk and I/O Management
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:
Topic: Disks – file system devices. Rotational Media Sector Track Cylinder Head Platter Arm Access time = seek time + rotational delay + transfer time.
Chapter 7 Device Management
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.
I/O Management and Disk Scheduling. I/O Hardware Incredible variety of I/O devices Common concepts Port (a connection point) Bus (daisy chain or shared.
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.
Device Management Mark Stanovich Operating Systems COP 4610.
Disk Average Seek Time. Multi-platter Disk platter Disk read/write arm read/write head.
Chapter 9 I/O System. 2 Input/Output System I/O Major objectives are: Take an application I/O request and send it to the physical device. Then, take whatever.
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Magnetic Disks Have cylinders, sectors platters, tracks, heads virtual and real disk blocks (x cylinders, y heads, z sectors per track) Relatively slow,
1 Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems DISK I/0.
Mass Storage Structure
COS 518: Advanced Computer Systems Lecture 8 Michael Freedman
Chapter 10: Mass-Storage Systems
Operating System (013022) Dr. H. Iwidat
Sarah Diesburg Operating Systems CS 3430
Christo Wilson Storage Devices
Disks and RAID.
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
OPERATING SYSTEMS CS 3502 Fall 2017
Secondary Storage Secondary storage typically: Characteristics:
Disk Scheduling Algorithms
DISK SCHEDULING FCFS SSTF SCAN/ELEVATOR C-SCAN C-LOOK.
Lecture 45 Syed Mansoor Sarwar
Lecture 2: Hardware Review
Chapter 14 Based on the slides supporting the text
Operating System Module 6: Mass Storage Structure
Operating Systems (CS 340 D)
Moving-head Disk Machanism
COS 518: Advanced Computer Systems Lecture 8 Michael Freedman
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Chapter 37 Hard Disk Drives
CSE 451: Operating Systems Autumn 2003 Lecture 12 Secondary Storage
Storage Systems Sudhanva Gurumurthi.
Disks and scheduling algorithms
Andy Wang Operating Systems COP 4610 / CGS 5765
Secondary Storage Management Brian Bershad
Persistence: hard disk drive
Mass-Storage Systems.
Lecture 2: Hardware Review
Chapter 11 I/O Management and Disk Scheduling
CSE 451: Operating Systems Winter 2003 Lecture 12 Secondary Storage
Disk Scheduling Carrying out disk accesses in the order they are received will not always produce optimal performance. Seek time is the reason for differences.
Disks and Disk Scheduling
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
ITEC 202 Operating Systems
Lecture 10: Magnetic Disks
COS 518: Advanced Computer Systems Lecture 9 Michael Freedman
Mass-Storage Systems (Disk Scheduling)
Andy Wang Operating Systems COP 4610 / CGS 5765
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Introduction to Operating Systems
Presentation transcript:

Disk scheduling In multiprogramming systems several different processes may want to use the system's resources simultaneously. The disk drive needs some mechanism to resolve this contention, sharing the resource between the processes fairly and efficiently.

Platters Tracks Platter Sectors Track

Disk scheduling goals In order to satisfy an I/O request the disk controller must first move the head to the correct track and sector. maximize the number of I/O requests minimize the movement of the head

Disk scheduling goals trade-off between throughput (the average number of requests satisfied in unit time) and response time (the average time between a request arriving and it being satisfied) => Disk scheduling policies

FCFS The disk controller processes the I/O requests in the order in which they arrive. This policy aims to minimize response time with little regard for throughput. the head may move almost randomly across the surface of the disk.

Practice Assume that a disk has 100 cylinders labeled 0-99. The read head is positioned over the cylinder 50 moving toward the cylinder 99. Accessing data requires 5 time unit, moving from one cylinder to the next require 1 time unit. The incoming requests arrive as follows: Arrive time: 0 15 32 40 55 63 123 Cylinder : 10 35 78 92 60 75 40 What is the order of the requests which will be serviced by FCFS disk scheduling algorithm? Each request is labeled by the cylinder it accesses.

Shortest Seek Time First (SSTF) Each time an I/O request has been completed the disk controller selects the waiting request whose sector location is closest to the current position of the head. time spent in movement is minimized but a request may be delayed for a long period if many closely located requests arrive just after it.

SCAN The drive head sweeps across the entire surface of the disk visiting the outermost cylinders before changing direction and sweeping back to the innermost cylinders It selects the next waiting requests whose location it will reach on its path backwards and forwards across the disk. movement time should be less than FCFS the policy is clearly fairer than SSTF

LOOK Similarly to SCAN, the drive sweeps across the surface of the disk, satisfying requests, in alternating directions. a sweep out towards the outer edge of the disk will be reversed when there are no waiting requests for locations beyond the current cylinder.

Circular SCAN (C-SCAN) C-SCAN is similar to SCAN but I/O requests are only satisfied when the drive head is traveling in one direction across the surface of the disk. Go from the innermost cylinder to the outermost cylinder satisfying the waiting requests When it reaches the outermost cylinder it sweeps back to the innermost cylinder without satisfying any requests.

C-LOOK Based on C-SCAN, C-LOOK involves the drive head sweeping across the disk satisfying requests in one direction only.

Solid State Drive (SSD) Flash Memory based on NAND Cell: Simplest Structure, Array When a charge is applied, the electrons tunnel into the cell through the dielectric barrier. When the charge is stopped the electrons are trapped in the cell. The resulting positive or negative charge can then be measured.

Single Layer Cell vs. Multi Layer Cell From Micron

SSD Layout Example: 4GB MLC Flash Cell - 2 bits Page – 4KB (8,192 cells) Block - 256KB (64 pages) Plane – 524MB (2048 blocks) Chip/Die – 2GB (4 planes) Drive – 4GB (2 chips/dies)

NAND Memory Organization: Page

NAND Memory Organization: Block

SSD Device Architecture

NAND Flash Page Series of floating gates and cells all connected. A write occurs starting from the source, and writing down the entire page. A read requires a measurement of the sink, which totals up the values of the floating gates.

NAND Operations Block Erasure Memory Wire: Finite number of program-erase cycles, 100,000 P/E cycles ---- Wire Leveling (spread write operations between sectors) Read Disturb: Read NAND flash memory can cause other cells near the cell being read to change over time if the surrounding cells of the block are not rewritten Delete-before-write (Garbage collection, Overprovisioning, TRIM) Flash deletes in blocks of 128KB. Expensive operation Write amplification

Wire Leveling Algorithm

SSD vs. HDD From N. Memon’s Slides