CSC Operating Systems Spring Lecture - XIX Storage and I/O - II. Tevfik Koşar. Louisiana State University.

Similar documents
RAID Structure. RAID Levels. RAID (cont) RAID (0 + 1) and (1 + 0) Tevfik Koşar. Hierarchical Storage Management (HSM)

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)

Chapter 13: I/O Systems

Device-Functionality Progression

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

Chapter 13: I/O Systems

Chapter 12: I/O Systems

Chapter 13: I/O Systems

Chapter 12: I/O Systems. Operating System Concepts Essentials 8 th Edition

Chapter 13: I/O Systems

Lecture 13 Input/Output (I/O) Systems (chapter 13)

by I.-C. Lin, Dept. CS, NCTU. Textbook: Operating System Concepts 8ed CHAPTER 13: I/O SYSTEMS

Chapter 13: I/O Systems

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

Module 12: I/O Systems

CS420: Operating Systems. Kernel I/O Subsystem

Chapter 13: I/O Systems

Module 12: I/O Systems

I/O SYSTEMS. Sunu Wibirama

I/O Systems. Amir H. Payberah. Amirkabir University of Technology (Tehran Polytechnic)

Chapter 13: I/O Systems

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

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

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

Input/Output Systems

Silberschatz and Galvin Chapter 12

Chapter 13: I/O Systems

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

操作系统概念 13. I/O Systems

Chapter 7: Mass-storage structure & I/O systems. Operating System Concepts 8 th Edition,

Operating Systems 2010/2011

UNIT-7. Overview of Mass Storage Structure

COT 4600 Operating Systems Fall Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM

I/O AND DEVICE HANDLING Operating Systems Design Euiseong Seo

CS370 Operating Systems

Lecture 15: I/O Devices & Drivers

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

CS370 Operating Systems

Operating System: Chap13 I/O Systems. National Tsing-Hua University 2016, Fall Semester

Input/Output Systems

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

Module 11: I/O Systems

Tape pictures. CSE 30341: Operating Systems Principles

NWI-IBC019: Operating systems

VIII. Input/Output Operating Systems Prof. Dr. Marc H. Scholl DBIS U KN Summer Term

Chapter 14: Mass-Storage Systems

Chapter 10: Mass-Storage Systems

Principles of Operating Systems CS 446/646

Roadmap. Tevfik Koşar. CSC Operating Systems Spring Lecture - XII Main Memory - II. Louisiana State University

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

Module 13: Secondary-Storage

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

I/O Systems and Storage Devices

Chapter 1: Introduction. Operating System Concepts 9 th Edit9on

CSC Operating Systems Fall Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. August 27 th, 2009.

Announcements. Computer System Organization. Roadmap. Major OS Components. Processes. Tevfik Ko!ar. CSC Operating Systems Fall 2009

[08] IO SUBSYSTEM 1. 1

Chapter 1: Introduction. Operating System Concepts 8 th Edition,

Chapter 1: Introduction

OS Design Approaches. Roadmap. OS Design Approaches. Tevfik Koşar. Operating System Design and Implementation

CS420: Operating Systems

Input-Output (I/O) Input - Output. I/O Devices. I/O Devices. I/O Devices. I/O Devices. operating system must control all I/O devices.

Chapter 12: Mass-Storage

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

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

I/O CANNOT BE IGNORED

Roadmap. Tevfik Ko!ar. CSC Operating Systems Spring Lecture - III Processes. Louisiana State University. Virtual Machines Processes

5.b Principles of I/O Hardware CPU-I/O communication

Chapter 1: Introduction

I/O. CS 416: Operating Systems Design Department of Computer Science Rutgers University

I/O CANNOT BE IGNORED

Today: Secondary Storage! Typical Disk Parameters!

Chapter 1: Introduction. Chapter 1: Introduction

Roadmap. Tevfik Ko!ar. CSC Operating Systems Spring Lecture - X Deadlocks - II. Louisiana State University. Deadlocks

Free Space Management

MASS-STORAGE STRUCTURE

Chapter 12: Mass-Storage Systems

Virtual Memory. Reading. Sections 5.4, 5.5, 5.6, 5.8, 5.10 (2) Lecture notes from MKP and S. Yalamanchili

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

CS420: Operating Systems

Lecture 1 Introduction (Chapter 1 of Textbook)

Module 2: Computer-System Structures. Computer-System Architecture

Roadmap. Safe State. Deadlock Avoidance. Basic Facts. Safe, Unsafe, Deadlock State. Tevfik Koşar. CSC Operating Systems Spring 2007

Operating Systems. Steven Hand. Michaelmas / Lent Term 2008/ lectures for CST IA. Handout 4. Operating Systems

7/20/2008. What Operating Systems Do Computer-System Organization

Operating Systems. Lecture 09: Input/Output Management. Elvis C. Foster

Module 13: Secondary-Storage Structure

Announcements. Operating System Structure. Roadmap. Operating System Structure. Multitasking Example. Tevfik Ko!ar

CSC Operating Systems Spring Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. January 17 th, 2007.

Overview of Mass Storage Structure

V. Mass Storage Systems

Mass-Storage Systems. Mass-Storage Systems. Disk Attachment. Disk Attachment

CSE 380 Computer Operating Systems

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

Chapter 11: Mass-Storage Systems

QUESTION BANK UNIT I

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

Operating Systems 2010/2011

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

Transcription:

CSC 4103 - Operating Systems Spring 2007 Lecture - XIX Storage and I/O - II Tevfik Koşar Louisiana State University April 10 th, 2007 1 RAID Structure As disks get cheaper, adding multiple disks to the same system provides increased storage space, as well as increased reliability and performance. RAID: Redundant Array of Inexpensive Disks multiple disk drives provides reliability via redundancy. RAID is arranged into six different levels.

RAID (cont) RAID schemes improve performance and improve the reliability of the storage system by storing redundant data. Mirroring (shadowing): duplicate each disk Simplest but most expensive approach Block interleaved parity uses much less redundancy. Data Striping: splitting each bit (or block) of a file across multiple disks. RAID Levels

RAID (0 + 1) and (1 + 0) Hierarchical Storage Management (HSM) A hierarchical storage system extends the storage hierarchy beyond primary memory and secondary storage to incorporate tertiary storage usually implemented as a jukebox of tapes or removable disks. Usually incorporate tertiary storage by extending the file system. Small and frequently used files remain on disk. Large, old, inactive files are archived to the jukebox. HSM is usually found in supercomputing centers and other large installations that have enormous volumes of data.

Hierarchical Storage Management I/O Hardware

Mapping I/O Ports to Memory Polling Determines state of device command-ready busy Error Busy-wait cycle to wait for I/O from device

Interrupts CPU Interrupt-request line triggered by I/O device Interrupt handler receives interrupts Maskable to ignore or delay some interrupts Interrupt vector to dispatch interrupt to correct handler Based on priority Some nonmaskable Interrupt mechanism also used for exceptions Interrupt-Driven I/O Cycle

Intel Pentium Processor Event-Vector Table Direct Memory Access Used to avoid programmed I/O for large data movement Requires DMA controller Bypasses CPU to transfer data directly between I/O device and memory

Six Step Process to Perform DMA Transfer Kernel I/O Subsystem Scheduling Some I/O request ordering via per-device queue Some OSs try fairness Buffering - store data in memory while transferring between devices To cope with device speed mismatch To cope with device transfer size mismatch To maintain copy semantics

Device-status Table Sun Enterprise 6000 Device-Transfer Rates

Kernel I/O Subsystem Caching - fast memory holding copy of data Always just a copy Key to performance Spooling - hold output for a device If device can serve only one request at a time i.e., Printing Device reservation - provides exclusive access to a device System calls for allocation and deallocation Watch out for deadlock Error Handling OS can recover from disk read, device unavailable, transient write failures Most return an error number or code when I/O request fails System error logs hold problem reports

I/O Protection User process may accidentally or purposefully attempt to disrupt normal operation via illegal I/O instructions All I/O instructions defined to be privileged --> I/O must be performed via system calls Memory-mapped and I/O port memory locations must be protected too I/O Requests to Hardware Operations Consider reading a file from disk for a process: Determine device holding file Translate name to device representation Physically read data from disk into buffer Make data available to requesting process Return control to process

Life Cycle of An I/O Request Performance I/O a major factor in system performance: Demands CPU to execute device driver, kernel I/O code Context switches due to interrupts Data copying Network traffic especially stressful

Improving Performance Reduce number of context switches Reduce data copying Reduce interrupts by using large transfers, smart controllers, polling Use DMA Balance CPU, memory, bus, and I/O performance for highest throughput Any Questions? Hmm.. 26

Reading Assignment Read chapter 13 from Silberschatz. 27 Acknowledgements Operating Systems Concepts book and supplementary material by Silberschatz, Galvin and Gagne. 28