CSCE 385: Computer Architecture Spring 2014 Dr. Mike Turi I/O.

Slides:



Advertisements
Similar presentations
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
Advertisements

Lecture 21Comp. Arch. Fall 2006 Chapter 8: I/O Systems Adapted from Mary Jane Irwin at Penn State University for Computer Organization and Design, Patterson.
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
COMPUTER ORGANIZATION CHAPTER SUBSYSTEM INTERCONNECTION.
CSCE 212 Chapter 8 Storage, Networks, and Other Peripherals Instructor: Jason D. Bakos.
Lecture Objectives: 1)Explain the limitations of flash memory. 2)Define wear leveling. 3)Define the term IO Transaction 4)Define the terms synchronous.
Interfacing Processors and Peripherals Andreas Klappenecker CPSC321 Computer Architecture.
1  1998 Morgan Kaufmann Publishers Chapter 8 Storage, Networks and Other Peripherals.
Processor Design 5Z0321 Processor Design 5Z032 Chapter 8 Interfacing Processors and Peripherals Henk Corporaal.
11/18/2004Comp 120 Fall November 3 classes to go No class on Tuesday 23 November Last 2 classes will be survey and exam review Interconnect and.
1  1998 Morgan Kaufmann Publishers Chapter 8 Interfacing Processors and Peripherals.
1 Interfacing Processors and Peripherals I/O Design affected by many factors (expandability, resilience) Performance: — access latency — throughput — connection.
Chapter 8: Part II Storage, Network and Other Peripherals.
I/0 devices.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Storage & Peripherals Disks, Networks, and Other Devices.
I/O – Chapter 8 Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
Disk Access. DISK STRUCTURE Sector: Smallest unit of data transfer from/to disk; 512B 2/4/8 adjacent sectors transferred together: Blocks Read/write heads.
I/O 1 Computer Organization II © McQuain Introduction I/O devices can be characterized by – Behavior: input, output, storage – Partner:
1 (Based on text: David A. Patterson & John L. Hennessy, Computer Organization and Design: The Hardware/Software Interface, 3 rd Ed., Morgan Kaufmann,
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
Lecture 16: Storage and I/O EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2014, Dr.
Storage Systems CS465 Lecture 12 CS465.
I/O Computer Organization II 1 Introduction I/O devices can be characterized by – Behavior: input, output, storage – Partner: human or machine – Data rate:
Lecture 35: Chapter 6 Today’s topic –I/O Overview 1.
I/O Computer Organization II 1 Interconnecting Components Need interconnections between – CPU, memory, I/O controllers Bus: shared communication channel.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
Computer Organization CS224 Fall 2012 Lessons 47 & 48.
EEE440 Computer Architecture
CS2100 Computer Organisation Input/Output – Own reading only (AY2015/6) Semester 1 Adapted from David Patternson’s lecture slides:
Introduction I/O devices can be characterized by – Behaviour: input, output, storage – Partner: human or machine – Data rate: bytes/sec, transfers/sec.
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.
Chapter 6 Storage and Other I/O Topics. Chapter 6 — Storage and Other I/O Topics — 2 Introduction I/O devices can be characterized by Behaviour: input,
Processor Memory Processor-memory bus I/O Device Bus Adapter I/O Device I/O Device Bus Adapter I/O Device I/O Device Expansion bus I/O Bus.
1 Ó1998 Morgan Kaufmann Publishers Chapter 8 I/O Systems.
1 Lecture 14 Buses and I/O Data Transfer Peng Liu
CS 6290 I/O and Storage Milos Prvulovic. Storage Systems I/O performance (bandwidth, latency) –Bandwidth improving, but not as fast as CPU –Latency improving.
1 Lecture 23: Storage Systems Topics: disk access, bus design, evaluation metrics, RAID (Sections )
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 26 Bus Interconnect May 7,
1  2004 Morgan Kaufmann Publishers Page Tables. 2  2004 Morgan Kaufmann Publishers Page Tables.
LECTURE 13 I/O. I/O CANNOT BE IGNORED Assume a program requires 100 seconds, 90 seconds for main memory, 10 seconds for I/O. Assume main memory access.
Computer Organization & Design 计算机组成与设计 Weidong Wang ( 王维东 ) College of Information Science & Electronic Engineering 信息与通信工程研究所 Zhejiang.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
1 Computer Architecture & Assembly Language Spring 2001 Dr. Richard Spillman Lecture 19 – IO II.
I/O Lecture notes from MKP and S. Yalamanchili.
Lecture 2. A Computer System for Labs
DIRECT MEMORY ACCESS and Computer Buses
I/O Lecture notes from MKP and S. Yalamanchili.
Chapter 13: I/O Systems Modified by Dr. Neerja Mhaskar for CS 3SH3.
Morgan Kaufmann Publishers Storage and Other I/O Topics
Multiple Platters.
Morgan Kaufmann Publishers Storage and Other I/O Topics
Operating Systems (CS 340 D)
Chapter 3 Top Level View of Computer Function and Interconnection
Hard Drive Technologies
Computer Architecture
Virtual Memory Main memory can act as a cache for the secondary storage (disk) Advantages: illusion of having more physical memory program relocation protection.
Introduction I/O devices can be characterized by I/O bus connections
Lecture 13 I/O.
Lecture 28: Reliability Today’s topics: GPU wrap-up Disk basics RAID
EE 108B Review Session Friday, March 9th, 2007.
Lecture 14 Buses and I/O Data Transfer
Peng Liu Lecture 14 I/O Peng Liu
Computer System Design Lecture 10
Persistence: I/O devices
CSC3050 – Computer Architecture
William Stallings Computer Organization and Architecture 7th Edition
Chapter 13: I/O Systems.
Presentation transcript:

CSCE 385: Computer Architecture Spring 2014 Dr. Mike Turi I/O

Processors/Memory Systems vs. I/O Systems Processor/Memory Systems – Emphasize performance and cost I/O Systems – Emphasize dependability and cost – Constrained by latency and bandwidth

Dependability, Reliability, and Availability Service failures and restorations MTTF – Mean time to failure MTTR – Mean time to repair Availability = MTTF / (MTTF + MTTR)

Improve MTTF Fault avoidance Fault tolerance Fault forecasting

Magnetic Disk Storage Platters Surfaces Tracks (concentric circles) Sectors Read/Write head – Cylinder – Seek

Flash Storage A type of EEPROM NOR flash – First type – Expensive NAND flash – Higher densities – Cheap – Block reads/writes Wearout and wear leveling

RAID Redundant Arrays of Inexpensive Disks RAID 0 (No Redundancy) – Striping RAID 1 (Mirroring) RAID 3-6 – Include use of parity

Busses Processor-Memory Bus – Short, high-speed I/O Bus – Can be long and connect many different types of devices – Don’t typically interface directly to memory Use a processor-memory bus or backplane bus Communication bottleneck – Bandwidth limits throughput

Parallel vs. Serial Difficult to run many parallel wires at high speed – Due to clock skew, reflection, coupling Transition from parallel shared busses to serial point-to-point interconnections

Asynchronous I/O Standards Firewire (IEEE 1394) USB (Universal Serial Bus) PCI (Peripheral Component Interconnect) Serial ATA (SATA) Serial Attached SCSI (SAS) – SCSI (Small Computer System Interface)

Synchronous I/O Standards SPI – Serial Peripheral Interface I 2 C or I2C or IIC – Inter-Integrated Circuit

Busses: Asynchronous vs. Synchronous Synchronous – Advantages – Disadvantages Asynchronous – Advantages – Disadvantages

I/O Transactions Need to send address Need to send/receive data May cause a sequence of bus operations

Role of OS in Handling I/O Multiple programs must share the I/O system – Schedule access to I/O for fairness and high sytem throughput – Protect user’s program access rights Handle interrupts that trap to kernel/system/supervisor mode – Similar to handling exceptions generated by a program Handle low-level control of I/O device – This is usually complex – Provides abstractions by supplying routines that handle low-level device operations

Communication required from OS for I/O Devices OS must give commands to I/O devices I/O device must notify OS – Tell it if it completes an operation – Tell it if it encounters an error Transfer data between memory and I/O device

OS Giving Commands to I/O Devices OS must be able to address the device – Special I/O instruction – Memory-mapped I/O OS must read/write I/O device registers

I/O Device notifying the OS I/O device must communicate with the processor Polling Interrupt-driven I/O

Interrupts Asynchronous with respect to instruction execution Need to know what caused the interrupt – Vectored interrupts – Exception/interrupt cause register Interrupt Priority Levels

Transfer Data between I/O Device and Memory Polling versus Interrupts Burden of moving the data and managing the transfer – Processor – Controller DMA (Direct Memory Access) controller

DMA DMA is master and directs reads/writes between itself and memory Steps in a DMA transfer – Processor sets up the DMA – DMA starts operation and arbitrates the interconnect – DMA interrupts the processor once transfer completes Can create cache coherency problems