Chapter 12 – Disk Performance Optimization Outline 12.1 Introduction 12.2Evolution of Secondary Storage 12.3Characteristics of Moving-Head Disk Storage.

Slides:



Advertisements
Similar presentations
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.
Advertisements

I/O Management and Disk Scheduling
Disk Access.
Disk Scheduling Based on the slides supporting the text 1.
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.
SECTION 13.3 Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Lecture 17 I/O Optimization. Disk Organization Tracks: concentric rings around disk surface Sectors: arc of track, minimum unit of transfer Cylinder:
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
Based on the slides supporting the text
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
Disks.
1 Disk Scheduling Chapter 14 Based on the slides supporting the text.
12: IO Systems1 I/O SYSTEMS This Chapter is About Processor I/O Interfaces: Connections exist between processors, memory, and IO devices. The OS must manage.
Disks CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
 2004 Deitel & Associates, Inc. All rights reserved. Chapter 12 – Disk Performance Optimization Outline 12.1 Introduction 12.2Evolution of Secondary Storage.
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.
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
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.
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.
Chapter 12: Mass-Storage Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 12: Mass-Storage Systems Overview of Mass.
1 I/O Management and Disk Scheduling Chapter Categories of I/O Devices Human readable Used to communicate with the user Printers Video display terminals.
Page 110/12/2015 CSE 30341: Operating Systems Principles Network-Attached Storage  Network-attached storage (NAS) is storage made available over a network.
Disk Access. Seek Algorithms FCFS SSTF SCAN – r/w in (current) preferred direction only –So inward, then outward, etc CSCAN – one way, r/w, then jump.
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.
NETW 3005 Mass Storage (How discs work). Notice I was unaware just how much was missing in the printed notes. As a partial remedy for that, the lecture.
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.
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.
Chapter 12 – Mass Storage Structures (Pgs )
15-410, S’ Disks Mar. 24, 2004 Dave Eckhardt & Bruce Maggs Brian Railing & Steve Muckle Contributions from Eno Thereska “How Stuff Works”
I/O Management and Disk Scheduling Chapter 11. Disk Performance Parameters To read or write, the disk head must be positioned at the desired track and.
Rensselaer Polytechnic Institute CSC 432 – Operating Systems David Goldschmidt, Ph.D.
Disks and Disk Scheduling Steve Muckle Monday, March 31st Spring 2003.
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 Systems Disk Structure. Disk Scheduling. RAID.
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.
Presentation-4 Group-A1 Professor Mohamed Khalil Anita Kanuganti Hemanth Rao.
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.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 11: File System Implementation.
Disks and RAID.
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
Disk Scheduling Algorithms
DISK SCHEDULING FCFS SSTF SCAN/ELEVATOR C-SCAN C-LOOK.
Chapter 14 Based on the slides supporting the text
Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin
Operating Systems (CS 340 D)
Overview Continuation from Monday (File system implementation)
Disks and scheduling algorithms
Disks and Disk Scheduling
Disk Access.
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
Presentation transcript:

Chapter 12 – Disk Performance Optimization Outline 12.1 Introduction 12.2Evolution of Secondary Storage 12.3Characteristics of Moving-Head Disk Storage 12.4Why Disk Scheduling Is Necessary 12.5Disk Scheduling Strategies First-Come-First-Served (FCFS) Disk Scheduling Shortest-Seek-Time-First (SSTF) Disk Scheduling SCAN Disk Scheduling C-SCAN Disk Scheduling FSCAN and N-Step SCAN Disk Scheduling LOOK and C-LOOK Disk Scheduling 12.6Rotational Optimization SLTF Scheduling SPTF and SATF Scheduling

Chapter 12 – Disk Performance Optimization Outline (cont.) 12.7 System Considerations 12.8Caching and Buffering 12.9Other Disk Performance Techniques 12.10Redundant Arrays of Independent Disks (RAID) RAID Overview Level 0 (Striping) Level 1 (Mirroring) Level 2 (Bit-Level Hamming ECC Parity) Level 3 (Bit-Level XOR ECC Parity) Level 4 (Block-Level XOR ECC Parity) Level 5 (Block-Level Distributed XOR ECC Parity)

Objectives After reading this chapter, you should understand: –how disk input/output is accomplished. –the importance of optimizing disk performance. –seek optimization and rotational optimization. –various disk scheduling strategies. –caching and buffering. –other disk performance improvement techniques. –key schemes for implementing redundant arrays of independent disks (RAID).

12.3 Characteristics of Moving-Head Disk Storage Physical layout of disk drives –Set of magnetic platters Rotate on spindle Made up of tracks, which in turn contain sectors Vertical sets of tracks form cylinders

12.3 Characteristics of Moving-Head Disk Storage Performance measurements –Rotational latency Time for data to rotate from current position to read-write head –Seek time Time for read-write head to move to new cylinder –Transmission time Time for all desired data to spin by read- write head

12.3 Characteristics of Moving-Head Disk Storage Disks divide tracks into several sectors, each typically containing 512 bytes

Figure 12.4 Components of a disk access Why Disk Scheduling Is Necessary

First-come-first-served (FCFS) scheduling has major drawbacks –Seeking to randomly distributed locations results in long waiting times –Under heavy loads, system can become overwhelmed Requests must be serviced in logical order to minimize delays –Service requests with least mechanical motion The first disk scheduling algorithms concentrated on minimizing seek times, the component of disk access that had the highest latency Modern systems perform rotational optimization as well

12.5 Disk Scheduling Strategies Three criteria to measure strategies –Throughput Number of requests serviced per unit of time –Mean response time Average time spent waiting for request to be serviced –Variance of response times Measure of the predictability of response times Overall goals –Maximize throughput –Minimize response time and variance of response times

Figure 12.5 Disk request pattern Disk Scheduling Strategies

First-Come-First-Served (FCFS) Disk Scheduling FCFS scheduling: Requests serviced in order of arrival –Advantages Fair Prevents indefinite postponement Low overhead –Disadvantages Potential for extremely low throughput –FCFS typically results in a random seek pattern because it does not reorder requests to reduce service delays

Figure 12.6 Seek pattern under the FCFS strategy First-Come-First-Served (FCFS) Disk Scheduling

Shortest-Seek-Time-First SSTF: Service request closest to read- write head –Advantages Higher throughput and lower response times than FCFS Reasonable solution for batch processing systems –Disadvantages Does not ensure fairness Possibility of indefinite postponement High variance of response times Response time generally unacceptable for interactive systems

Figure 12.7 Seek pattern under the SSTF strategy Shortest-Seek-Time-First