Solaris I/O Management and Disk Scheduling

Similar documents
I/O Management and Disk Scheduling. Chapter 11

Chapter 11. I/O Management and Disk Scheduling

Chapter 11 I/O Management and Disk Scheduling

Lecture 9. I/O Management and Disk Scheduling Algorithms

Input/Output Management

CS 471 Operating Systems. Yue Cheng. George Mason University Fall 2017

Chapter-6. SUBJECT:- Operating System TOPICS:- I/O Management. Created by : - Sanjay Patel

Chapter 11. I/O Management and Disk Scheduling

OPERATING SYSTEMS CS3502 Spring Input/Output System Chapter 9

Input Output (IO) Management

Ref: Chap 12. Secondary Storage and I/O Systems. Applied Operating System Concepts 12.1

Operating Systems 2010/2011

CIS Operating Systems I/O Systems & Secondary Storage. Professor Qiang Zeng Fall 2017

2. The system of... generally ran one job at a time. These were called single stream batch processing.

CS370: Operating Systems [Spring 2017] Dept. Of Computer Science, Colorado State University

CIS Operating Systems I/O Systems & Secondary Storage. Professor Qiang Zeng Spring 2018

Chapter 13: I/O Systems

OPERATING SYSTEMS CS3502 Spring Input/Output System Chapter 9

I/O Device Controllers. I/O Systems. I/O Ports & Memory-Mapped I/O. Direct Memory Access (DMA) Operating Systems 10/20/2010. CSC 256/456 Fall

CS420: Operating Systems. Mass Storage Structure

CSE 153 Design of Operating Systems Fall 2018

Disk Scheduling. Based on the slides supporting the text

Chapter 12: Secondary-Storage Structure. Operating System Concepts 8 th Edition,

Chapter 12: Mass-Storage Systems. Operating System Concepts 8 th Edition,

CS370: Operating Systems [Fall 2018] Dept. Of Computer Science, Colorado State University

CS370: Operating Systems [Fall 2018] Dept. Of Computer Science, Colorado State University

Hard Disk Drives (HDDs) Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Operating Systems. V. Input / Output. Eurecom

Input/Output. Today. Next. Principles of I/O hardware & software I/O software layers Disks. Protection & Security

Hard Disk Drives (HDDs)

I/O Handling. ECE 650 Systems Programming & Engineering Duke University, Spring Based on Operating Systems Concepts, Silberschatz Chapter 13

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 420, York College. November 21, 2006

CSCI-GA Operating Systems. I/O : Disk Scheduling and RAID. Hubertus Franke

File. File System Implementation. Operations. Permissions and Data Layout. Storing and Accessing File Data. Opening a File

Module 13: Secondary-Storage Structure

Comp 204: Computer Systems and Their Implementation. Lecture 18: Devices

Disc Allocation and Disc Arm Scheduling?

Outline. Operating Systems: Devices and I/O p. 1/18

Solved MCQs on Operating System Principles. Set-1

Devices and Device Controllers. secondary storage (disks, tape) and storage controllers

Device-Functionality Progression

Chapter 12: I/O Systems. I/O Hardware

Devices. Today. Comp 104: Operating Systems Concepts. Operating System An Abstract View 05/01/2017. Devices. Devices

CS 134. Operating Systems. April 8, 2013 Lecture 20. Input/Output. Instructor: Neil Rhodes. Monday, April 7, 14

MEMORY MANAGEMENT IN UNIX. STUDENT NAME : AMAL ISWIASI STUDENT NO: PRESENT TO : Prof. Dr. Hasan Huseyin Balik

[08] IO SUBSYSTEM 1. 1

Disk Scheduling COMPSCI 386

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

Chapter 13: I/O Systems

Chapter 5: Input Output Management. Slides by: Ms. Shree Jaswal

Chapter 10: Mass-Storage Systems

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

CSE 4/521 Introduction to Operating Systems. Lecture 27 (Final Exam Review) Summer 2018

Introduction. Operating Systems. Outline. Hardware. I/O Device Types. Device Controllers. (done)

CSE 153 Design of Operating Systems

Operating Systems. V. Input / Output

I/O & Storage. Jin-Soo Kim ( Computer Systems Laboratory Sungkyunkwan University

CSCI-GA Operating Systems I/O. Hubertus Franke

Chapter 13: I/O Systems

CS370: System Architecture & Software [Fall 2014] Dept. Of Computer Science, Colorado State University

CSE 120. Overview. July 27, Day 8 Input/Output. Instructor: Neil Rhodes. Hardware. Hardware. Hardware

UNIT 4 Device Management

Computer Architecture

Introduction. Operating Systems. Outline. Hardware. I/O Device Types. Device Controllers. One OS function is to control devices

Chapter 13: I/O Systems

Introduction. Operating Systems. Outline. Hardware. I/O Device Types. Device Controllers. One OS function is to control devices

CSE 380 Computer Operating Systems

Devices and Device Controllers. secondary storage (disks, tape) and storage controllers

Bus Architecture Example

I/O SYSTEMS. Sunu Wibirama

The control of I/O devices is a major concern for OS designers

Input/Output Systems

CSE 4/521 Introduction to Operating Systems. Lecture 24 I/O Systems (Overview, Application I/O Interface, Kernel I/O Subsystem) Summer 2018

Lecture 16: Storage Devices

Chapter 13: I/O Systems

Chapter 13: I/O Systems. Chapter 13: I/O Systems. Objectives. I/O Hardware. A Typical PC Bus Structure. Device I/O Port Locations on PCs (partial)

I/O Systems. 04/16/2007 CSCI 315 Operating Systems Design 1

Mass-Storage Structure

STORAGE SYSTEMS. Operating Systems 2015 Spring by Euiseong Seo

Module 12: I/O Systems

Chapter 13: I/O Systems. Operating System Concepts 9 th Edition

Principles of Operating Systems CS 446/646

I/O 1. Devices and I/O. key concepts device registers, device drivers, program-controlled I/O, DMA, polling, disk drives, disk head scheduling

Operating Systems Prof. Allan Gottlieb Practice Final Exam Page 1 Name

CS330: Operating System and Lab. (Spring 2006) I/O Systems

Chapter 13: I/O Systems

ECE519 Advanced Operating Systems

Operating Systems. Designed and Presented by Dr. Ayman Elshenawy Elsefy

Answer to exercises chap 13.2

Sistemas Operacionais I. Valeria Menezes Bastos

File. File System Implementation. File Metadata. File System Implementation. Direct Memory Access Cont. Hardware background: Direct Memory Access

Mass-Storage Structure

CS3600 SYSTEMS AND NETWORKS

I/O Systems. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

QUESTION BANK UNIT I

Chapter 8 Virtual Memory

CHAPTER 12 AND 13 - MASS-STORAGE STRUCTURE & I/O- SYSTEMS

CSE 451: Operating Systems Winter Lecture 12 Secondary Storage. Steve Gribble 323B Sieg Hall.

I/O Systems and Storage Devices

Chapter 12: I/O Systems

Transcription:

ISTANBUL KEMERBURGAZ UNIVERSITESI Solaris I/O Management and Disk Scheduling NAME: AMNA ABURAS ID :153103037 Department : Electrical and Computer Engineering Prof Dr. Hasan Balik

Solaris I/O Management and Disk Scheduling General Categories : The I/O system consists of: 1-A buffer-caching system 2-A general device-driver interface 3- Drivers for specific hardware devices

Solaris Solaris is a Unix operating system originally developed by Sun Microsystems. It superseded their earlier SunOS in 1993. Oracle Solaris, so named as of 2010, has been owned by Oracle Corporation since the Sun acquisition by Oracle in January 2010. Solaris is known for its scalability, especially on SPARC systems, and for originating many innovative features such as DTrace, ZFS and Time Slider. Solaris supports SPARC-based and x86-based workstations and servers from Oracle and other vendors, with efforts underway to port to additional platforms. Solaris is registered as compliant with the Single Unix Specification.

Why Study Operating Systems? Understand the relationship between hardware & software Understand future Operating Systems Understand powerful tools to help you in your computer use

Categories of I/O Devices Machine readable Used to communicate with electronic equipment Disk drives USB keys Sensors Controllers Actuators

Relationship Among Techniques No Interrupts Use of Interrupts I/O-to-memory transfer through processor Programmed I/O Interrupt-driven I/O Direct I/O-to-memory transfer Direct memory access (DMA)

Evolution of the I/O Function 1. Processor directly controls a peripheral device. 2. A controller or I/O module is added. 3. Same configuration as step 2, but now interrupts are employed. 4. The I/O module is given direct control of memory via DMA. 5. The I/O module is enhanced to become a separate processor, with a specialized instruction set tailored for I/O. 6. The I/O module has a local memory of its own and is, in fact, a computer in its own right.

Direct Memory Address Processor delegates I/O operation to the DMA module DMA module transfers data directly to or from memory When transfer is complete, DMA module sends an interrupt signal to the processor

DMA

DMA Configurations

DMA Configurations

DMA Configurations

I/O Buffering Block-oriented Information is stored in fixed sized blocks Transfers are made a block at a time Used for disks and USB keys Stream-oriented Transfer information as a stream of bytes Used for terminals, printers, communication ports, mouse and other pointing devices, and most other devices that are not secondary storage

Double Buffer Use two system buffers instead of one A process can transfer data to or from one buffer while the operating system empties or fills the other buffer

Circular Buffer More than two buffers are used Each individual buffer is one unit in a circular buffer Used when I/O operation must keep up with process

Disk Scheduling At runtime, I/O requests for disk tracks come from the processes OS has to choose an order to serve the requests Process A reads tracks 2, 5 Process B reads tracks 3, 5 Process C reads tracks 8, 4 OS has to read these tracks: 2,3,4,5,8. 19

Disk Scheduling Policy FIFO: fair, but near random scheduling SSTF: possible starvation SCAN: favor requests for tracks near the ends C-SCAN FSCAN: avoid arm stickiness in SSTF, SCAN and C-SCAN 20

First-in-first-out, FIFO process requests in the order that the requests are made fair to all processes approaches random scheduling in performance if there are many processes Pending read/write request for a track 8 1 2 7 10 Read write head starting at track 8, in the direction of increasing track number 21

Shortest Service Time First, SSTF select the disk I/O request that requires the least movement of the disk arm from its current position always choose the minimum seek time new requests may be chosen before an existing request 8 1 2 7 10 22

SCAN arm moves in one direction only, satisfying all outstanding requests until there is no more requests in that direction. The service direction is then reversed. favor requests for tracks near the ends 8 1 2 7 10 23

C-SCAN restrict scanning to one direction only when the last track has been visited in one direction, the arm is returned to the opposite end of the disk and the scan begins again. 8 1 2 7 10 24

FSCAN Arm stickiness in SSTF, SCAN, C-SCAN in case of repetitive requests to one track FSCAN uses two queues. When a SCAN begins, all of the requests are in one of the queues, with the other empty. During the scan, all new requests are put into the other queue. Service of new requests is deferred until all of the old requests have been processed. 25

Disk Scheduling Algorithms

UNIX SVR4 I/O

Devices are Files Each I/O device is associated with a special file Managed by the file system Provides a clean uniform interface to users and processes. To access a device, read and write requests are made for the special file associated with the device.

UNIX SVR4 I/O Each individual device is associated with a special file Two types of I/O Buffered Unbuffered File Sub System Buffer Cash Character Device Driver Block

Buffer Cache Three lists are maintained Free List Device List Driver I/O Queue Unix Buffer cash Organization

Character Cache Used by character oriented devices E.g. terminals and printers Either written by the I/O device and read by the process or vice versa Producer/consumer model used

Unbuffered I/O Unbuffered I/O is simply DMA between device and process Fastest method Process is locked in main memory and can t be swapped out Device is tied to process and unavailable for other processes

Unix I/O for Device Types

Thank you for my listening