Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.

Slides:



Advertisements
Similar presentations
Chapter 5 Input/Output 5.1 Principles of I/O hardware
Advertisements

Principles of I/O Hardware I/O Devices Block devices, Character devices, Others Speed Device Controllers Separation of electronic from mechanical components.
EEE 435 Principles of Operating Systems Structure of I/O Software Pt II (Modern Operating Systems & 5.3.4)
Memory Management Paging &Segmentation CS311, CS350 & CS550.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 3 Memory Management Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Input-Output.
Part 5 (Stallings) Input/Output 5.1 Principles of I/O hardware
1 Input/Output Chapter Principles of I/O hardware 5.2 Principles of I/O software 5.3 I/O software layers 5.4 Disks 5.5 Clocks 5.6 Character-oriented.
EEE 435 Principles of Operating Systems Principles and Structure of I/O Software (Modern Operating Systems 5.2 & 5.3) 5/22/20151Dr Alain Beaulieu.
Lecture 7b I/O. I/O devices  Device (mechanical hardware)  Device controller (electrical hardware)  Device driver (software)
04/14/2008CSCI 315 Operating Systems Design1 I/O Systems Notice: The slides for this lecture have been largely based on those accompanying the textbook.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem.
File Management Systems
1 Pertemuan 18 Input / Output (lanjutan) Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
1 Pertemuan 16 Isu-Isu pada Sistem Paging dan Segmentasi Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
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)
Chapter 5 Input/Output 5.1 Principles of I/O hardware
Memory Management, File Systems, I/O How Multiprogramming Issues Mesh ECEN 5043 Software Engineering of Multiprogram Systems University of Colorado, Boulder.
1 Device Management The von Neumann Architecture System Architecture Device Management Polling Interrupts DMA operating systems.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output – 3 I/O Software CS 342 – Operating Systems Ibrahim Korpeoglu.
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 I/O Management in Representative Operating Systems.
Chapter 5 Input/Output I/O Hardware I/O Software Software Layers Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Copyright ©: Nahrstedt, Angrave, Abdelzaher
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
1 Input/Output. 2 Principles of I/O Hardware Some typical device, network, and data base rates.
1 I/O and Filesystems. 2 How to provide interfaces Rough reading guide (no exam guarantee): Tanenbaum Ch. 5.1 – 5.5 & Silberschatz Ch. 13 & ,
Cpr E 308 Input/Output Recall: OS must abstract out all the details of specific I/O devices Today –Block and Character Devices –Hardware Issues – Programmed.
ITEC 502 컴퓨터 시스템 및 실습 Chapter 8-1: I/O Management Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
Sistem Operasi IKH311 Masukan Luaran (Input/Output)
CSC 322 Operating Systems Concepts Lecture - 25: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
CS399 New Beginnings Jonathan Walpole. Device Input/Output.
I/O Systems I/O Hardware Application I/O Interface
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS6: Device Management 6.1. Principles of I/O.
CS 333 Introduction to Operating Systems Class 15 - Input/Output Jonathan Walpole Computer Science Portland State University.
Memory Management 3 Tanenbaum Ch. 3 Silberschatz Ch. 8,9.
1 Chapter 3.2 : Virtual Memory What is virtual memory? What is virtual memory? Virtual memory management schemes Virtual memory management schemes Paging.
1 Memory Management 4.1 Basic memory management 4.2 Swapping 4.3 Virtual memory 4.4 Page replacement algorithms 4.5 Modeling page replacement algorithms.
ITFN 2601 Introduction to Operating Systems Lecture 16 Segmentation.
Chapter 13: I/O Systems. 13.2/34 Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware.
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 5 Input/Output 5.1 Principles of I/O hardware
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output – 2 I/O Software CS 342 – Operating Systems Ibrahim Korpeoglu.
Chapter 13: I/O Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 13: I/O Systems Overview I/O Hardware Application.
Page Replacement Implementation Issues Text: –Tanenbaum ch. 4.7.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 12: I/O Systems I/O hardwared Application I/O Interface Kernel I/O.
I/O Software CS 537 – Introduction to Operating Systems.
MINIX Presented by: Clinton Morse, Joseph Paetz, Theresa Sullivan, and Angela Volk.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
1 Chapter 11 I/O Management and Disk Scheduling Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and.
Introduction to Operating Systems Concepts
I/O Management.
Module 12: I/O Systems I/O hardware Application I/O Interface
Memory Management Paging (continued) Segmentation
Multiple Platters.
CS703 - Advanced Operating Systems
Memory Management Paging (continued) Segmentation
I/O Systems I/O Hardware Application I/O Interface
Operating Systems Chapter 5: Input/Output Management
Operating System Concepts
CS703 - Advanced Operating Systems
Chapter 5: I/O Systems.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Memory Management Paging (continued) Segmentation
Chapter 13: I/O Systems.
Module 12: I/O Systems I/O hardwared Application I/O Interface
Chapter 5 Input/Output Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
Presentation transcript:

Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007

Today’s Schedule Memory Management - Chapter 4  Segmentation Multics & Intel Pentium – Segmentation & Paging Input/Output  Device Types  Goals of I/O Devices for O/S  Layers of I/O s/w System

Objectives You will be able to describe: Advantages of Segmentation for Memory management Types of I/O Devices Goals of I/O Software from O/S view Layers of I/O s/w and what happens in each

What is Segmentation? Having two or more separate virtual address spaces  Provide several independent address spaces called segments  Each segment goes from 0 to some max  Segments can have varying lengths  Length can change during execution  Programmer will now have to specify the segment number Can now use one segment for shared libraries

Segmentation One-dimensional address space with growing tables One table may bump into another

Segmentation – Logical View Allows each table to grow or shrink, independently

Segmentation vs Paging? Paging is incidental Page-data is heterogeneous Statically Sized Segments are intentional Segment data is homogenous Dynamically Sized

Pure Segmentation Segment size varies and changes External Fragmentation  Also called “Checkerboarding”  Swapping large segments for small  Resolution: Compaction

Implementation of Pure Segmentation Removal of the checkerboarding by compaction

MULTICS Implementation Similar to Multi-Level Paging  Address contains Segment # for table  Segment table holds Segment Descriptors  Descriptor contains page table location  Standard Page Table Has 2 18 segments  2 16 Pages With 36-bit entries  2 34 Total Pages

Segmentation with Paging: MULTICS Descriptor segment points to page tables Segment descriptor – numbers are field lengths

Segmentation with Paging: MULTICS A 34-bit MULTICS virtual address

Segmentation with Paging: MULTICS Conversion of a 2-part MULTICS address into a main memory address

Input & Output Device types Block Device  Stores fixed size block  Independently addressable  disks Character Devices  Stream of characters  No seek operation, not addressable  Keyboard, printer, n/w interface

I/O Hardware Some typical device, network, and data base rates

Device Controllers I/O devices have components:  mechanical component  electronic component The electronic component is the device controller  may be able to handle multiple devices Controller's tasks  convert serial bit stream to block of bytes  perform error correction as necessary  make available to main memory

Goals of I/O Software Device independence  programs can access any I/O device  without specifying device in advance · (floppy, hard drive, or CD-ROM) Uniform naming  name of a file or device a string or an integer  not depending on which machine Error handling  handle as close to the hardware as possible

Goals of I/O Software (cont’d) Synchronous vs. asynchronous transfers  blocked transfers vs. interrupt-driven Buffering  data coming off a device cannot be stored in final destination Sharable vs. dedicated devices  disks are sharable  tape drives would not be

I/O Software Layers Layers of the I/O Software System

Interrupt Handlers Interrupt handlers are best hidden  have driver starting an I/O operation block until interrupt notifies of completion Interrupt procedure does its task  then unblocks driver that started it

Device Drivers Logical position of device drivers is shown here Communications between drivers and device controllers goes over the bus

Device-Independent I/O Software Functions of the device-independent I/O software Uniform interfacing for device drivers Buffering Error reporting Allocating and releasing dedicated devices Providing a device-independent block size

Device-Independent I/O Software (a) Without a standard driver interface (b) With a standard driver interface

Device-Independent I/O Software (a) Unbuffered input (b) Buffering in user space (c) Buffering in the kernel followed by copying to user space (d) Double buffering in the kernel

Summary User-Space I/O Software Layers of the I/O system and the main functions of each layer

Summary Advantages of Segmentation for Memory management Types of I/O Devices Goals of I/O Software from O/S view Layers of I/O s/w and what happens in each

Thursday, April 5 Read Chapter 5  & I/O Devices  Goals of I/O in O/S  to  5.4 Disks