Rensselaer Polytechnic Institute CSC 432 – Operating Systems David Goldschmidt, Ph.D.

Slides:



Advertisements
Similar presentations
I/O Management and Disk Scheduling
Advertisements

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.
Input/Output Management and Disk Scheduling
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
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.
Device Management.
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
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
04/21/2004CSCI 315 Operating Systems Design1 Disk Scheduling.
1 Input/Output Chapter 3 TOPICS Principles of I/O hardware Principles of I/O software I/O software layers Disks Clocks Reference: Operating Systems Design.
1 Today I/O Systems Storage. 2 I/O Devices Many different kinds of I/O devices Software that controls them: device drivers.
 2004 Deitel & Associates, Inc. All rights reserved. Chapter 12 – Disk Performance Optimization Outline 12.1 Introduction 12.2Evolution of Secondary Storage.
Secondary Storage Management Hank Levy. 8/7/20152 Secondary Storage • Secondary Storage is usually: –anything outside of “primary memory” –storage that.
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.
1 Operating Systems Part VI: Mass- Storage Structure.
1 Lecture 8: Secondary-Storage Structure 2 Disk Architecture Cylinder Track SectorDisk head rpm.
Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
Operating Systems CMPSC 473 I/O Management (4) December 09, Lecture 25 Instructor: Bhuvan Urgaonkar.
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.
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.
1 IO Management and Disk Scheduling Chapter Categories of I/O Devices n Human readable u used to communicate with the user u 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.
Chapter 12: Mass-Storage Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 12: Mass-Storage.
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.
1 I/O Management and Disk Scheduling Chapter Categories of I/O Devices Human readable –Used to communicate with the user –Printers –Video display.
O VERVIEW OF M ASS S TORAGE S TRUCTURE Magnetic disks provide bulk of secondary storage of modern computers Drives rotate at 60 to 250 times per second.
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.
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5.
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.
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.
Chapter 11 I/O Management and Disk Scheduling Dave Bremer Otago Polytechnic, NZ ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 11: File System Implementation.
Operating Systems Disk Scheduling A. Frank - P. Weisberg.
OPERATING SYSTEMS CS 3502 Fall 2017
Chapter 12: Mass-Storage Structure
Secondary Storage Secondary storage typically: Characteristics:
Operating System I/O System Monday, August 11, 2008.
DISK SCHEDULING FCFS SSTF SCAN/ELEVATOR C-SCAN C-LOOK.
Chapter 14 Based on the slides supporting the text
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.
Overview Continuation from Monday (File system implementation)
Chapter 11 I/O Management and Disk Scheduling
CSE451 File System Introduction and Disk Drivers Autumn 2002
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:

Rensselaer Polytechnic Institute CSC 432 – Operating Systems David Goldschmidt, Ph.D.

 A virtual filesystem provides transparent access to different filesystem types on multiple device types and disk partitions

 A virtual machine is a layered approach that logically combines the kernel operating system and hardware  Creates the illusion of multiple processes, each executing on its own virtual processor with its own virtual memory

Non-virtual machine Virtual machine

 Java programs execute on a native Java Virtual Machine (JVM)

 Virtual machines provide complete protection of system resources  Each virtual machine is isolated from all other virtual machines ▪ which prohibits direct sharing of system resources  Virtual machines can be difficult to implement due to the effort required to provide an exact duplicate of each underlying machine

 The Input/Output (I/O) System has two primary objectives:  Handle application I/O requests ▪ Map logical address to physical disk or device address ▪ Send response back to the application  Optimize I/O performance ▪ Depends on request type and device type

 Disks and other devices operate in parallel to the CPU (but are much slower)  Typical disk drive mechanism:  Arm seeks to the appropriate track  Disk rotates until the desired sector is accessed

 Disk access time is the sum of the seek time and the rotational latency  Cache surrounding sectors or entire track to improve performance  Principle of locality (again!)

 Disk access times are orders of magnitude slower than CPU execution times  Improve I/O performance by:  Reducing the number of I/O requests  Implementing buffering  Implementing caching  Efficiently scheduling I/O requests do this at the application layer

 Use buffering to make physical I/O requests as large as possible  This reduces the number of I/O requests  Space-time tradeoff  Misleads programmers?  Other disadvantages?

 Use caching to keep retrieved data in fast memory for potential future access  Eliminates one or more I/O requests  Space-time tradeoff  Principle of locality (yet again!)

 A disk context switch occurs when switching from one I/O request to another  Disk context switch time is substantially higher than process context switch  Disk context switch time is substantially lower than disk read/write operation  The time to complete the nth I/O operation depends on where the (n-1)th operation finished

 Goal: optimize disk performance  Scheduling algorithm determines which pending disk I/O request to select next:  First-Come-First-Served (FCFS)  Shortest Seek Time First (SSTF)  Elevator (SCAN) and Circular SCAN (C-SCAN) maximize throughput, ensure fairness, etc.

 Request reference string specifies requested tracks: 44, 20, 95, 4, 50, 52, 47, 61, 87, 25

 Request reference string specifies requested tracks: 98, 183, 37, 122, 14, 124, 65, 67

 Request reference string specifies requested tracks: 44, 20, 95, 4, 50, 52, 47, 61, 87, 25

 Request reference string specifies requested tracks: 98, 183, 37, 122, 14, 124, 65, 67

 Request reference string specifies requested tracks: 44, 20, 95, 4, 50, 52, 47, 61, 87, 25 repeated end-to-end scans

 Request reference string specifies requested tracks: 98, 183, 37, 122, 14, 124, 65, 67

 Circular SCAN (C-SCAN) scans in one direction  When it reaches one end of the disk, it returns to the beginning of the disk without servicing any requests on the return trip  LOOK (and C-LOOK) algorithms  Disk arm moves in one direction as long as there are pending requests in that direction  Otherwise, it reverses direction immediately