Device Management Ankur Saggar Nitin Golait Jason Foos Adam Estabrook.

Slides:



Advertisements
Similar presentations
I/O Systems & Mass-Storage Systems
Advertisements

I/O Management and Disk Scheduling
Chapter 6 I/O Systems.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
I/O Management and Disk Scheduling
I/O Management and Disk Scheduling
Categories of I/O Devices
CT213 – Computing system Organization
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
Device Management.
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5 5 Device Management.
OPERATING SYSTEMS CS3530 Summer 2014 OPERATING SYSTEMS CS3530 Summer 2014 Input/Output System Chapter 9.
Input/Output Management and Disk Scheduling
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (4) File Management & Input/Out Systems 10/14/2008 Yang Song (Prepared.
I/O Hardware n Incredible variety of I/O devices n Common concepts: – Port – connection point to the computer – Bus (daisy chain or shared direct access)
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5.
Device Management.
1 Today I/O Systems Storage. 2 I/O Devices Many different kinds of I/O devices Software that controls them: device drivers.
Data Storage Technology
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Copyright ©: Nahrstedt, Angrave, Abdelzaher
Device Management. Serial Port Serial Device Serial Device Memory CPU Printer Terminal Modem Mouse etc.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
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 13+14: I/O Systems and Mass- Storage Structure I/O Hardware Application I/O.
Interrupts and DMA CSCI The Role of the Operating System in Performing I/O Two main jobs of a computer are: –Processing –Performing I/O manage and.
Chapter 7 Device Management
1 Chapter 2: Computer-System Structures  Computer System Operation  I/O Structure  Storage Structure  Storage Hierarchy  Hardware Protection  General.
Slide 5-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 5.
Device Drivers CPU I/O Interface Device Driver DEVICECONTROL OPERATIONSDATA TRANSFER OPERATIONS Disk Seek to Sector, Track, Cyl. Seek Home Position.
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.
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.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem.
12/8/20151 Operating Systems Design (CS 423) Elsa L Gunter 2112 SC, UIUC Based on slides by Roy Campbell, Sam King,
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
1 Lecture 1: Computer System Structures We go over the aspects of computer architecture relevant to OS design  overview  input and output (I/O) organization.
Feb/18/2014 Mazen Alzyoud Early Term Exam Review.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Device Management Mark Stanovich Operating Systems COP 4610.
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.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
ECE 456 Computer Architecture Lecture #9 – Input/Output Instructor: Dr. Honggang Wang Fall 2013.
Part IVI/O Systems Chapter 13: I/O Systems. I/O Hardware a typical PCI bus structure 2.
Device Management Andy Wang Operating Systems COP 4610 / CGS 5765.
Amdahl’s Law & I/O Control Method 1. Amdahl’s Law The overall performance of a system is a result of the interaction of all of its components. System.
Chapter 13: I/O Systems.
Module 12: I/O Systems I/O hardware Application I/O Interface
Sarah Diesburg Operating Systems CS 3430
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Chapter 11: File System Implementation
I/O System Chapter 5 Designed by .VAS.
Operating Systems (CS 340 D)
OPERATING SYSTEMS CS 3502 Fall 2017
CSCI 315 Operating Systems Design
Computer Parts There are four main equipment functions of a computer system: Input, Processing, Storage and Output. Input: the transferring of information.
I/O Systems I/O Hardware Application I/O Interface
Operating System Concepts
13: I/O Systems I/O hardwared Application I/O Interface
CS703 - Advanced Operating Systems
Computer Parts There are four main equipment functions of a computer system: Input, Processing, Storage and Output. Input: the transferring of information.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Outline Device Management Device Manager Design Buffering
CSE451 File System Introduction and Disk Drivers Autumn 2002
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Module 12: I/O Systems I/O hardwared Application I/O Interface
Andy Wang Operating Systems COP 4610 / CGS 5765
Chapter 5 Input/Output Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
Presentation transcript:

Device Management Ankur Saggar Nitin Golait Jason Foos Adam Estabrook

Chapter 5 Outline I/O Subsystem – [Covered] I/O Strategies – [Covered] Device Manager Design – [Covered] Buffering Device Class Characteristics

Summary of topics Undertaken What is device Manager? Major Aims of Device Manager. I/O Strategies. Device Manager Design

Direct Memory Access Its also another way to increase the CPU utilization by offloading the processor from the burden of watching the status bits and feeding data to a device controller as is done in Programmed I/O. Its used with the devices that does large transfers. Under this a special purpose processor called DMA Controller performs the direct transfer between the device controller and main memory without help from CPU.

Memory mapped I/O To initiate the DMA transfer, the host writes a DMA command block into memory. This block contains a pointer to the source of transfer, a pointer to destination and the count of number of bytes. CPU writes the address of this command block to the DMA controller, then goes on with other work. DMA Controller proceeds to operate the memory bus directally without help from CPU. When the entire transfer is finished, the DMA controller interrupts the CPU.

Buffering Buffering is a technique thats employed by DM to keep I/O devices busy in times when Process doesnt requires I/O operations. Thus, it overlaps the device and CPU operation. Input Buffering – Technique of having the input device copy information into the primary memory before the process requests it. Output Buffering – Technique of Saving information in memory and then writing it to the device while the process continues execution.

Hardware Buffering Process Reads b(j) Controller reads b(j+1)

Double Buffering

Circular Buffering

Prerequisites for Buffering Device Driver must know enough about the way information is read from the device so that it can predict what data will be read in the near future. Thread behavior be conducive to buffering.

Device Class Characteristics Operating system distinguishes devices as being: 1) Block-oriented device 2) Character-oriented device

Communication Devices Communication devices are character oriented devices They transmit bytes of information between a computer and remote device

Communication Devices Generic Controller Local Devices Communications Controller Device Printer Modem Network Cable connecting the controller to the device BUS

Asynchronous Serial Devices These are character oriented devices. They exchange characters with the computer using explicit signals to control the transfer of each character. Asynchronous Serial Device controllers are typically implemented on a single chip (an UART) having computational power of a small microprocessor.

Storage Devices There are two types of storage devices: Sequentially accessed storage device Randomly accessed storage device Both are usually block-oriented; The data is read / written to device as a block of bytes.

Sequentially accessed Storage Device They physically store the blocks on a recording medium in a linear sequence. Bytes may or may not be stored linearly within the blocks.

Randomly accessed storage devices Allow the drivers to access the blocks on the device in an arbitrary order. Employ a block read/write interface between the controller and the device. The software intending to access information stored on a RASD should determine the order in which blocks should be read/ written on the device.

Magnetic Disk Information can be read from or written to the track of the disk by radial alignment of heads over the desired track. The number of physical records (blocks) stored on the disk is determined by the number of tracks, number of sectors and number of surfaces present in the disk.

Multi-surface Disk Track (cylinder) Sector Disk Surface Cylinders (Set Of Tracks)

Optimizing Algorithms for access on magnetic disk This is done in four ways: First Come First Serve (FCFS) This is a simple approach but does not give good performance. Shortest Seek Time First (SSTF) This gives good performance but is not optimal. It is also subject to starvation.

Scan and Look Disk Optimization All requests for each track is served. Both, scan and look serve every request in one complete pass through the disk. Thus, starvation is avoided. Circular Scan and Look Disk Optimizations Newly arrived requests will be serviced in a single scan of the disk, unlike Scan/Look algorithm where new request is not serviced for two full disk scans.

FCFS Disk Optimization algorithm Steps Track

SSTF Disk Optimization algorithm Steps Track

Scan and Look Disk Optimization algorithm Scan Look Track Steps

76 Circular Scan and Look Optimization algorithm Track Steps Circular Look Circular Scan

Data Storage Media CD-ROM (Compact Disk-Read Only Memory) Graphic data can be interspersed with audio information. It delivers 75 sectors per second. It consists of 2 modes: MODE 1-> 2048 bytes contains stored information and data MODE2->2324 bytes it is the usable storage size.

Rewritable CD Low power lasers are used to read the surface of the CD. High power lasers are used to write the surface of the CD. Mid-powered laser settings will remove logical pits from the surface, erasing the data previously written to the disk.

SUMMARY: Device Management is implemented across resource managers, device drivers and device handlers. System administrator can add devices and drivers without having to change the OS due to open systems. Optimizations increase device throughput and reduces an individual processs waiting time for I/O Storage technology increases with the development of the higher density disks, new storage media and faster access time.

Resources Nutt, Gary Operating Systems, Third Edition.