I/O Devices Connected to the Backplane bus Hard disk controllers

Slides:



Advertisements
Similar presentations
IT253: Computer Organization
Advertisements

1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
I/O Devices Connected to the Backplane bus Hard disk controllers
Datorteknik BusInterfacing bild 1 Bus Interfacing Processor-Memory Bus –High speed memory bus Backplane Bus –Processor-Interface bus –This is what we usually.
Basic Computer Hardware and Software.
CSCE 212 Chapter 8 Storage, Networks, and Other Peripherals Instructor: Jason D. Bakos.
Datorteknik F1 bild 1 The Big Picture: Where are We Now? Control Datapath Memory Processor Input Output Control Datapath Memory Processor Input Output.
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.
1  1998 Morgan Kaufmann Publishers Chapter 8 Interfacing Processors and Peripherals.
11/29/2005Comp 120 Fall November 4 to go! Questions? Interrupts and I/O devices.
1 Interfacing Processors and Peripherals I/O Design affected by many factors (expandability, resilience) Performance: — access latency — throughput — connection.
1 PC Audio 2 Sound Card  An expansion board that enables a computer to receive, manipulate and output sounds.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 22 - Input/Output.
1 Today I/O Systems Storage. 2 I/O Devices Many different kinds of I/O devices Software that controls them: device drivers.
I/0 devices.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
V Material obtained from summer workshop in Guildford County.
1 Input/Output. 2 Principles of I/O Hardware Some typical device, network, and data base rates.
Disk Memory Topics Disk Memory Structure Disk Capacity class10.ppt.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 4. Peripherals Input Devices Keyboard Mouse Scanners Microphone Digital.
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.
1 CP Lecture 8 PC and Media exchange standards.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent University.
1  2004 Morgan Kaufmann Publishers Multilevel cache Used to reduce miss penalty to main memory First level designed –to reduce hit time –to be of small.
Datorteknik F1 bild 1 The Big Picture: Where are We Now? Control Datapath Memory Processor Input Output Control Datapath Memory Processor Input Output.
CS2100 Computer Organisation Input/Output – Own reading only (AY2015/6) Semester 1 Adapted from David Patternson’s lecture slides:
Csci 136 Computer Architecture II – IO and Storage Systems Xiuzhen Cheng
Chapter 5 Input/Output 5.1 Principles of I/O hardware
Five Components of Computers Input Output Memory Control Datapath Processor.
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.
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.
Basic Computer Hardware and Software. Guilford County SciVis V
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Basic Computer Hardware and Software.
ECE 456 Computer Architecture Lecture #9 – Input/Output Instructor: Dr. Honggang Wang Fall 2013.
10/15: Lecture Topics Input/Output –Types of I/O Devices –How devices communicate with the rest of the system communicating with the processor communicating.
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 25 I/O Systems May 2,
MicroComputer Engineering IO slide 1 The Big Picture: Where are We Now? Control Datapath Memory Processor Input Output Control Datapath Memory Processor.
File organization Secondary Storage Devices Lec#7 Presenter: Dr Emad Nabil.
Computer Hardware Introduction What’s inside that box?
TYPES OF MEMORY.
Basic Computer Hardware and Software.
Bus Interfacing Processor-Memory Bus Backplane Bus I/O Bus
Operating System.
Basic Computer Hardware and Software.
Basic Computer Hardware & Software
Operating Systems (CS 340 D)
C_ITCO011/C_ITCO111 LECTURER: E.DONDO
CS703 - Advanced Operating Systems
Computer Architecture
Module 2 How Computers Work.
Virtual Memory Main memory can act as a cache for the secondary storage (disk) Advantages: illusion of having more physical memory program relocation protection.
Basic Computer Hardware and Software.
CSE 153 Design of Operating Systems Winter 2018
Computer Organization
Multicultural Social Community Development Institute ( MSCDI)
Input-output I/O is very much architecture/system dependent
Operating Systems Chapter 5: Input/Output Management
Today’s agenda Hardware architecture and runtime system
Standard Grade Revision
Memory Hierarchy (I).
Persistence: I/O devices
Page Table Constraints 32 bit addresses Page Table v d pro physPGaddr
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Hard disk basics Prof:R.CHARLES SILVESTER JOE Departmet of Electronics St.Joseph’s College,Trichy.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Presentation transcript:

I/O Devices Connected to the Backplane bus Hard disk controllers Graphics adapters Serial I/O Sound Cards Virtual Reality Helmet Gloves Quake controller

I/O Performance I/O Bandwidth Latency per access Response time How much data can we move from A to B/time unit How many I/O operations can we perform/time unit Latency per access Low long do we have to wait to get access Response time The total time to perform a task

Disk I/O Performance Supercomputer Benchmarks Transaction Processing Batch jobs Large files Throughput of data Transaction Processing I/O Rate Many small accesses File System MakeDir, Copy, ScanDir, ReadAll, Make

Types of I/O Devices Behavior Partner Data Rate Input, Output, Storage Human/Machine Data Rate Human Keyboard, 10b/sec Voice, 100kb/sec Hard Disk 10Mb/sec

Hard disk 2-20 Platters 3600-7400 RPM 1-10 Inch Diameter 1-10 inches 2-20 Platters 3600-7400 RPM 1-10 Inch Diameter 500-2000 tracks/surface 32-128 sectors/track Cylinder All tracks at one position 2-20 Sectors Track

Hard Disk Average Seek Time (average time to move a track) 8-12 ms Does not consider locality Rotational Latency 4-8 ms Often dominates over Seek Time Start reading to ring-buffer when track reached Transfer Rate 2-10 Mb/sec 30 31 32 1 2 3 …

Other Properties Storage Size 500Mb-10Gb Cylinder 0, Boot Block Partition Information Usually a Physical Disk is devided into Smaller Partitions File System Information File System The “data structure” for storing files and folders Usually Hierarchical Folders, sub folders and files File types, (program/data-format) and protection bits

SCSI/EIDE I/O Bus SCSI EIDE General purpose interface for HDs, Scanners, Streamers, etc Both synchronous/asynchronous operation 5Mb/sec (standard SCSI higher for wide and ultra-wide) 7 Devices/Bus Mastering/Self Selection Arbitration EIDE HDs and HD like devices (CR-ROMs etc) Synchronous 5Mb/sec 2 Devices on each controller HD controller on Interface

Networks RS-232, copper wire 19.2kbit/sec Serial Point to Point Protocol (ppp) LAN (Local Area Network), coaxial 100Mbit/sec Ethernet 10Mbit/sec Package 128-1530 bytes Actually a bus with collision detection Long Haul Network, fiber 1Gbit/sec ARPANET (US government) became INTERNET Packet Switched Networks

Network File System Mounting Devices over the Network (usually LAN) Local and Network devices transparent to User Network Server - Local Client (a protocol) Needs support by the OS Local TCP stack, handles streams of I/O Network Server forwards these streams “Samba Server” makes Unix devices available to PCs

Graphics Adapters Each pixel uses a bit array (1-24bits) 1280*1024*24bits/pixel needs approximately 4Mb Red Green Blue Yellow White 8 + 8 + 8 =24bits/pixel

Graphics Adapter Design Needs to update the Screen 60-100 times/sec (frames) At 80Hz*4Mb=320Mb/sec Huge Throughput We use special VRAM (Video RAM) Shifts out bits to DAC at this high rate Usually contain a Graphics Accelerator, which Move and Copy Blocks of data in local VRAM Perform operations, like AND/EXOR (bit mask) Functions Line, Polygon Fill “3D” functions like: Polygon Shading, Texture Mapping etc.

Video Application Example A system for real-time video recording/playback A Frame Grabber, records video to HD A Graphics Adapter displays video from HD 640*480*8bits/pixel (256 colors) 300kb/frame recording or playback We do NOT want CPU in data path

Approach 1 The Frame Grabber records one Frame (300kb) to local buffer Frame Grabber gives interrupt The OS sets up a DMA transfer from FG to RAM The DMA gives interrupt The OS sets up a DMA transfer to HD The HD gives interrupt, data written to disk At 25 frames/sec (TV quality) this gives 2 (first to RAM then to HD) * 300 * 25 = 15Mb/sec Hmm, no Good! A lot bus activity, too high HD throughput (and this is for just recording)

Approach 2 Put MPEG-2 hardware compression on the Frame Grabber, now only 30kb/frame Frame Grabber gives interrupt The OS sets up a DMA transfer from FG to HD The DMA gives interrupt The HD gives interrupt, data written to disk At 25 frames/sec (still TV quality) this gives 30 * 25 = 750kb/sec Simultaneous record/playback gives 1.5 Mb HD throughput, which is possible but still quite high A lot of activity on the SCSI bus

Approach 3 Frame Grabber Best solution! Almost no bus PC bus activity MPEG-2 hardware compression, now only 30kb/frame Graphics Adapter, that can display MPEG-2 frames SCSI bus to local HD for video storage Interrupt each frame recorded, or finished playback sequence Best solution! Almost no bus PC bus activity You get what you pay for, this one will cost you $$$$

High Fidelity Audio PCM 44.1 kHz 16bits Stereo (WAV/AIFF) 96 db signal/noice ratio 16 bit signed integer Left 16 bit signed integer Right

Sound Cards Wave-Table playback 16 bit (Stereo at 44.1 kHz) 32 voices 5.6 Mb/sec (quite high bandwidth) WaveTable ROM/RAM Signal Processor Audio MIX DA/Filter ...

Audio I/O In/Out 350kb/sec throughput on bus, OK Data Buffers DMA Channel IRQ (Interrupt number) 2 IRQ for full duplex operation 350kb/sec throughput on bus, OK In Buffer DSP Filter/Ad Audio In Out Buffer DA/Filter Audio Out