Presentation-4 Group-A1 Professor Mohamed Khalil Anita Kanuganti Hemanth Rao.

Slides:



Advertisements
Similar presentations
Overview of Mass Storage Structure
Advertisements

Silberschatz, Galvin and Gagne Operating System Concepts Disk Scheduling Disk IO requests are for blocks, by number Block requests come in an.
Disks Disk Hardware (1) Disk parameters for the original IBM PC floppy disk and a Western Digital WD hard disk.
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Disk Scheduling Based on the slides supporting the text 1.
OPERATING SYSTEMS CS3530 Summer 2014 OPERATING SYSTEMS CS3530 Summer 2014 Input/Output System Chapter 9.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
Mass-Storage Structure
Based on the slides supporting the text
Disks.
1 Disk Scheduling Chapter 14 Based on the slides supporting the text.
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.
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.
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
Device Management. So far… We have covered CPU and memory management Computing is not interesting without I/Os Device management: the OS component that.
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.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
1 Lecture 8: Secondary-Storage Structure 2 Disk Architecture Cylinder Track SectorDisk head rpm.
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.
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.
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.
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.
Chapter 12: Mass-Storage Systems
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.
Chapter 14: Mass-Storage
Chapter 14: Mass-Storage Systems Disk Structure. Disk Scheduling. RAID.
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.
1 Chapter 13 Mass-Storage Structure. 2 Disk Structure Disk drives are addressed as large 1- dimensional arrays of logical blocks, where the logical block.
M ASS S TORAGE S TRUCTURES Lecture: Operating System Concepts Lecturer: Pooja Sharma Computer Science Department, Punjabi University, Patiala.
Device Management Andy Wang Operating Systems COP 4610 / CGS 5765.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 11: File System Implementation.
Chapter 10: Mass-Storage Systems
Operating System (013022) Dr. H. Iwidat
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
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.
Lecture 45 Syed Mansoor Sarwar
Chapter 14 Based on the slides supporting the text
Chapter 12: Mass-Storage Systems
Operating Systems (CS 340 D)
Moving-head Disk Machanism
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Overview Continuation from Monday (File system implementation)
Disks and scheduling algorithms
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Presentation transcript:

Presentation-4 Group-A1 Professor Mohamed Khalil Anita Kanuganti Hemanth Rao

DISK SCHEDULING IN AN OPERATING SYSTEM

Agenda Disk Structure Why Disk Scheduling? Example Scheduling Algorithms 1. FCFS 2. SSTF 3. SCAN 4. C-SCAN 5. LOOK 6. C-LOOK Comparison of different Algorithms Selection of right scheduling Algorithm References

Disk Structure A hard disk drive(usually called “drive”) records data on the surface of metal plates called platters that are coated with a substance containing ground-up iron, or other substances that allow zeros and ones to be recorded as tiny spots of magnetism. Modern disk drives are addressed as large one- dimensional arrays of logical blocks (smallest unit of transfer) which are mapped onto the sectors of the disk sequentially. Mapping converts a logical block number into an old-style disk address that consists of a cylinder number, a track,number within that cylinder and a sector number within that track.

Disk structure contd, Advantages of Mapping: Advantages of Mapping: 1. Mapping hides defective sectors by substituting them with spare sectors from elsewhere in the disk. 2. Number of sectors per track is not constant. This is solved in modern disks by organizing into “zones”.

Why Disk Scheduling ? To use hardware efficiently. To increase disk bandwidth: 1. Disk bandwidth—The total number of bytes transferred, divided by the total time between the first request for service and the completion of the last transfer. To reduce the Access time which is caused by: 1. Seek time -- The time for the disk arm to move the heads to the cylinder containing the desired sector. 2. Rotational Latency – The additional time waiting for the disk to rotate the desired sector to the disk head.

Example Consider, a disk queue with requests for I/O to blocks on cylinders 98, 183, 37, 122, 14, 124, 65, 67 in that order.

Scheduling Algorithms FCFS—First Come First Served 1. It is Fair– no starvation 2. Disadvantage– Low performance due to long swings from one part of the disk to another

FCFS Scheduling Head is at 53

Scheduling Algorithms cont, SSTF Scheduling– Shortest-seek-time first 1. Selects minimum seek time from the current position 2. Better Performance 3. Disadvantage: Causes starvation of some requests i.e., A request for a remote part of the disk may never get serviced

SSTF

Scheduling Algorithms cont, SCAN Scheduling—Scans from the start of the disk to end servicing all requests and reverses back servicing the remainder of requests just like an Elevator(also called Elevator Algorithm) Disadvantage: If 2 requests is in front of it and it has to scan the whole disk and return back serve the rest of it.

SCAN

Scheduling Algorithms cont, C-SCAN– Similar to SCAN but with a difference that when head reaches at the end of the disk, it immediately returns to the beginning of the disk,without servicing any requests on the return trip. More Uniform wait time

C-SCAN

Scheduling Algorithms cont, LOOK & C-LOOK—Similar to SCAN but reverses direction when hits the last request in the current direction 1. C-LOOK only moves similar to C-SCAN 1. Much better performance 2. Advantage since it does not has to go all the way to the end of the disk 3. Most widely used and optimized

C-LOOK

Comparison FCFS is not mostly used because of its low speed and delay SSTF is common and has a natural appeal SCAN & C-SCAN perform better for systems that place a heavy load on the disk, because they are less likely to have the starvation problem LOOK & C-LOOK perform much better

Selection of right Algorithm The criteria of selecting algorithm is based on: 1. Number of requests 2. Type of requests 3. File Allocation Method

References “Applied Operating System Concepts” by Abraham Silberschatz, Peter Galvin, Greg Gagne

Questions?