Computer Architecture. Hebrew University Spring Chapter 8 Input/Output. Big Picture: Where are We Now?

Size: px
Start display at page:

Download "Computer Architecture. Hebrew University Spring Chapter 8 Input/Output. Big Picture: Where are We Now?"

Transcription

1 Computer Architecture Hebrew University Spring 2001 Chapter 8 Input/Output Adapted from COD2e by Petterson & Hennessy Chapter 8 I/O Big Picture: Where are We Now? I/O Systems Computer Processor Control Devices Input Datapath Output Adapted from COD2e by Petterson & Hennessy Chapter 8 I/O

2 Outline of Chapter Lectures I/O Systems and Performance Types and Characteristics of I/O Devices Magnetic Disks Graphic Displays Networks Buses Bus Types and Bus Operation Bus Arbitration and How to Design a Bus Arbiter» some examples Interfacing the OS and the I/O Device Operating System s Role Delegating I/O Responsibility from the CPU Adapted from COD2e by Petterson & Hennessy Chapter 8 I/O I/O System Design Issues Performance throughput and latency fast devices and many devices Expandability/Flexibility (number + variety of devices) wide performance spectrum Resilience in the face of failure Device Behavior Partner Data Rate (KB/sec) Keyboard Input Human 0.01 Mouse Input Human 0.02 Line Printer Output Human 1.00 Laser Printer Output Human Graphics Output Human 30, Network-LAN Input/Output Machine Floppy disk Storage Machine Optical Disk Storage Machine Magnetic Disk Storage Machine 2, Adapted from COD2e by Petterson & Hennessy Chapter 8 I/O

3 Typical Desktop I/O System Pipeline Caches 200 MHz Pentium Processor 2.4GB/sec 528MB/sec Chipset 132MB/sec PCI USB 1.5Mb/sec Printer USB Hub Controller Adapted from COD2e by Petterson & Hennessy Mouse Keyboard Ethernet Controller Disk Controller Chapter 8 I/O Graphics Controller Disk Disk Graphics I/O System Performance I/O System performance depends on many aspects of the system: The CPU The memory system:» Internal and external caches» Main The underlying interconnection (buses) The I/O controller The I/O device The speed of the I/O software The efficiency of the software s use of the I/O devices Two common performance metrics: Throughput: I/O bandwidth Response time: Latency Adapted from COD2e by Petterson & Hennessy Chapter 8 I/O

4 Producer-Server Model Producer Throughput: The number of tasks completed by the server in unit time Highest possible throughput:» Server should never be idle» Queue should never be empty Response time: Begins when a task is placed in the queue Ends when it is completed by the server To minimize response time:» Queue should be empty» Server will be idle whenever task arrives Adapted from COD2e by Petterson & Hennessy Queue Chapter 8 I/O Server Throughput versus Response Time Response Time (ms) % 40% 60% 80% 100% Percentage of maximum throughput Adapted from COD2e by Petterson & Hennessy Chapter 8 I/O

5 Throughput Enhancement Queue Server Producer Queue Server In general throughput can be improved by: Throwing more hardware at the problem Response time is much harder to reduce: Ultimately it is limited by the speed of light Adapted from COD2e by Petterson & Hennessy Chapter 8 I/O I/O Benchmarks for Magnetic Disks Supercomputer application: Large-scale scientific problems Transaction processing: Examples: Airline reservations systems and banks File system: Example: UNIX file system Adapted from COD2e by Petterson & Hennessy Chapter 8 I/O

6 Supercomputer I/O Supercomputer I/O is dominated by: Access to large files on magnetic disks Supercomputer I/O consists of one large read (read in the data) Many writes to snapshot the state of the computation Supercomputer I/O consists of more output than input Key supercomputer I/O measures = data throughput: Bytes/second transferred between disk and memory Adapted from COD2e by Petterson & Hennessy Chapter 8 I/O Transaction Processing I/O Transaction processing (TP): Examples: airline reservations systems, bank ATMs, inventory system, purchasing system,... Many small changes to a large body of shared data Transaction processing requirements: Throughput and response time are both important» response time: for users» throughput: for cost Must gracefully handle certain types of failure Transaction processing chiefly focuses on I/O rate: The number of disk accesses per second Each transaction in typical TP system takes: Between 2 and 10 disk I/Os Between 5,000 and 20,000 CPU instructions per disk I/O Adapted from COD2e by Petterson & Hennessy Chapter 8 I/O

7 File System I/O Measurements of UNIX file systems in an engineering environment: 80% of accesses are to files less than 10 KB 90% of all file accesses are to data with sequential addresses on the disk 67% of the accesses are reads 27% of the accesses are writes 6% of the accesses are read-write accesses Adapted from COD2e by Petterson & Hennessy Chapter 8 I/O Magnetic Disk Purpose: Long term, nonvolatile storage Large, inexpensive, and slow Lowest level in memory hierarchy Two major types: Floppy disk Hard disk Both types of disks: Rely on a rotating platter coated with a magnetic surface Use a moveable read/write head to access the disk Advantages of hard disks over floppy disks: Platters are rigid ( metal or glass) so they can be larger Higher density because it can be controlled more precisely Higher data rate because it spins faster Can incorporate more than one platter Registers Cache Chapter 8 I/O 14 Disk

8 Organization of Hard Disk Sector Platters Track Typical numbers (depending disk size): 500 to 2,000 tracks per surface 32 to 128 sectors per track» A sector is the smallest unit that can be read or written Traditionally all tracks have same number of sectors: Constant bit density: record more sectors on outer tracks» Being done in new disks Chapter 8 I/O 15 Magnetic Disk Characteristic Cylinder: all the tacks under the head at a given point on all surfaces Read/write data is a three-stage process: Seek time: position the arm over the proper track Rotational latency: wait for the desired sector to rotate under the read/write head Transfer time: transfer a block of bits (sector) under the read-write head Average seek time as reported by the industry: Typically in the range of 12 ms to 20 ms (Sum of the time for all possible seek) / (total # of possible seeks) Due to locality of disk reference, actual average seek time: Typically only 25% 33% of advertised number Track Sector Head Cylinde Platter Chapter 8 I/O 16

9 Typical Performance of a Disk Rotational Latency: Most disks rotate at 3,600 5,400 RPM Approximately ms per revolution Average latency to the desired sector is 1/2 around the disk: 6 8 ms Transfer Time is a function of : Transfer size (usually a sector): 1 KB / sector Rotation speed: 3600 RPM to 5400 RPM Recording density: typical diameter ranges from 2 to 14 in Typical values: 2 to 4 MB per second Track Sector Head Cylinder Platter Chapter 8 I/O 17 Reliability and Availability I/O systems often have fault tolerant requirements: must be able to get the data even if there is a failure» Data is available» Reliable = never any failures Reliability and Availability often confused Availability can be improved by adding hardware: Example: adding ECC on memory Reliability can only be improved by: Bettering environmental conditions Building more reliable components Building with fewer components» Improve availability may come at the cost of lower reliability Chapter 8 I/O 18

10 Disk Arrays Organize disks to take advantage of Small, inexpensive disks Arrange them in an array Increase throughput using many disk drives:» Data is spread over multiple disk» Multiple accesses are made to several disks Reliability is lower than a single disk: But availability can be improved by adding redundant disks: Lost information can be reconstructed from redundant information MTTR: mean time to repair is in the order of hours MTTF: mean time to failure of disks is three to five years Chapter 8 I/O 19 Graphics Displays N scan lines M pixels Raster Cathode Ray Tube (CRT) Displays: Resolution: (M pixels) x (N horizontal scan lines) Typical Sizes: Studio Quality: 720 x 480 High Resolution Workstation Monitor: 1280 x 1024 High Definition TV (proposed standards):» U.S.A.: 1440 x 960» Others: 1920 x 1080 Chapter 8 I/O 20

11 Graphics Displays and Bit Map N scan lines M pixels M x N image represented by a bit map in memory: Black & White: 1bit per pixel» The pixel is either ON or OFF. No longer widely used. Gray scale: 8 bits per pixel» Each pixel can have 256 shades of black white Color: 24 bits per pixel» 8 bits for each of the primary color: Red, Green, Blue Chapter 8 I/O 21 Cost of Computer Graphics Size of Frame Buffer = M x N x P M: Number of pixels per scan line N: Number of horizontal scan lines P: Number of bits per pixel Color Frame Buffer for High Resolution Workstation: 1280 x 1024 x 24-bit = 3840 KB ~= 4 MB The size of the color frame buffer can be reduced: Most pictures do not need full palette (2 24 ) of possible colors Use a two-level representation Chapter 8 I/O 22

12 Color Map: Lower Cost of Frame Buffer y1 8 bits N x1 P Frame Buffer M x2 Q y2 Word 0 Word 1 Word P Word Q W word x 24-bit Color Map Color Map Size is 256-word x 24-bit: Color CRT Display Only 256 different colors can appear on the screen at a time The color map is loaded by the application program: Each picture can have its own palette of color to chose from : : : x1 M x2 y1 N y2 Chapter 8 I/O 23 Bandwidth for Frame Buffer Frame Buffer 1280 x 1024 x 24 Bandwidth? N DAC Assume no color map: 1280 x 1024 x 24-bit High Resolution. Color Monitor Refresh Rate: 60 Hz Frame Buffer Size: 1280 x 1024 x 24 = 3840 KB ~= 4 MB Bandwidth Requirement: 4 MB x 60 Hz = 240 MB / sec Assume N = 32-bit = 4-byte: Frame buffer needs to respond:» 240 / 4 = 60 MHz => 16.6 ns This is faster than most of the low cost SRAM Another reason to use a color map! Chapter 8 I/O 24

13 Bandwidth for Frame Buffer (Cont.) Frame Buffer 1280 x 1024 x 8 Bandwidth? N 256-word x 24 -bit Color Map DAC 1280 x 1024 x 24-bit High Resolution. Color Monitor Refresh Rate: 60 Hz With a 256-word by 24-bit color map: Frame Buffer Size: 1280 x 1024 x 8 = 1280 KB Bandwidth Requirement: 1280 KB x 60 Hz = 75 MB / sec Assume N = 32-bit = 4-byte: The frame buffer needs to response at: 75/4 =18.75 MHz => 53.3 ns DRAM is still too slow and SRAM is too expensive. Solution: Video RAM (VRAM) Chapter 8 I/O 25 Video Random Access (VRAM) A high-speed shift register Hold one row of DRAM Random Port: Access the DRAM array Works like regular DRAM (and just as slow) Serial Port: Access the shift register Column Address M-bit Random Port M-bit Serial Port N columns DRAM N x M Shift Reg. Row Address N rows M bits Chapter 8 I/O 26

14 ABCs of Networks Starting Point: Send bits between 2 computers FIFO Queue on each end Can send both ways ( Full Duplex ) Rules for communication protocol May involve variety of control information» request/response» size of message» type of message Chapter 8 I/O 27 A Simple Example What is format of packet? packet = unit of maximum size that makes up all messages» routing of packet independent of other packets Fixed? Number bytes?» fixed or variable size Request/ Response Address/Data 1 bit 32 bits 0: Please send data from Address 1: Data corresponding to request Chapter 8 I/O 28

15 Example: Ethernet (IEEE 802.3) Essentially 10Kb/s 1 wire bus with no central control Collision based protocol with carrier sense» Listen. If nobody is taking, go ahead and talk.» If you hear anybody else talking,stop and try again later. Binary exponential backoff increase wait time by 2x each collision Recently: 100Mbit (and 1Gbit coming) switched organization Transceiver Cable (50M) Cable (50 ohm coax, 10Mbps, 500M) Transceiver (detects collision) Computer (or repeater) Frame Frame Frame idle Contention Contention Slot Interval 2t = worst-case round trip time = 512 bit times = ms 51.2 Frame Chapter 8 I/O 29 Manchester Encoding Buses: Connecting I/O to the System Processor Control Input Datapath Output Bus a shared communication link uses one set of wires to connect multiple subsystems as opposed to a point-to-point link connects processor to I/O devices as well as connecting I/O devices to memory» processor may get data/commands from CPU or memory Chapter 8 I/O 30

16 Advantages of Buses Processor I/O Device I/O Device I/O Device Versatility: New devices can be added easily Peripherals can be moved between computer systems that use the same bus standard Low Cost: A single set of wires is shared in multiple ways Chapter 8 I/O 31 Disadvantages of Buses Processor I/O Device I/O Device I/O Device Busses create a communication bottleneck Bandwidth of bus can limit the maximum I/O throughput The maximum bus speed is largely limited by: The length of the bus The number of devices on the bus The need to support a range of devices with:» Widely varying latencies» Widely varying data transfer rates Chapter 8 I/O 32

17 General Organization of a Bus Control lines: Signal requests and acknowledgments Indicate what type of information is on the data lines Data lines: carry information between source and destination: Data and Addresses Control Lines Data Lines Complex commands A bus transaction includes two parts: Sending the address Receiving or sending the data Chapter 8 I/O 33 Master versus Slave Bus Master Master send address Data can go either way Bus Slave A bus transaction includes two parts: Sending the address Receiving or sending the data Master is the one who starts the bus transaction by: Sending the address Slave is the one who responds to the address by: Sending data to the master if the master ask for data Receiving data from master if master wants to send data Chapter 8 I/O 34

18 Output Operation Output = Processor sending data to the I/O device Step 1: Request Control ( Read Request) Processor I/O Device (Disk) Data ( Address) Step 2: Read Processor I/O Device (Disk) Control Data Step 3: Send Data to I/O Device Control (Device Write Request) Processor I/O Device (Disk) Data (I/O Device Address and then Data) Chapter 8 I/O 35 Input Operation Input = processor receiving data from the I/O device Step 1: Request Processor I/O Device (Disk) Control ( Write Request) Data ( Address) Step 2: Receive Data Processor I/O Device (Disk) Control (I/O Read Request) Data (I/O Device Address and then Data) Chapter 8 I/O 36

19 Types of Buses Processor- Bus (design specific) Short and high speed Only need to match the memory system» Maximize memory-to-processor bandwidth (cache transfers) Connects directly to the processor I/O Bus (industry standard) Usually is lengthy and slower Need to match a wide range of I/O devices (cost and speed) Connects to the processor-memory bus or backplane bus Backplane Bus (often industry standard) Backplane: an interconnection structure within the chassis Allow processors, memory, and I/O devices to coexist Cost advantage: one single bus for all components Chapter 8 I/O 37 One Bus System: Backplane Bus Processor Backplane Bus I/O Devices A single bus (the backplane bus) is used for: Processor to memory communication Communication between I/O devices and memory Advantages: Simple and low cost Disadvantages: slow and the bus can become a major bottleneck Example: IBM PC: ISA Chapter 8 I/O 38

20 A Two-Bus System Processor Processor Bus Bus Adaptor I/O Bus Bus Adaptor I/O Bus Bus Adaptor I/O Bus I/O buses tap processor-memory bus via adaptors: Processor-memory bus: mainly processor-memory traffic I/O buses: provide expansion slots for I/O devices Apple Macintosh-II NuBus: Processor, memory, and a few selected I/O devices SCSI Bus: the rest of the I/O devices Chapter 8 I/O 39 A Three-Bus System Processor Processor Bus Backplane Bus Bus Adaptor Bus Adaptor Bus Adaptor I/O Bus I/O Bus Backplane buses tap into the processor-memory bus Processor-memory bus used for processor memory traffic I/O buses are connected to the backplane bus Advantage: load on processor bus greatly reduced Many new PCs use this organization Chapter 8 I/O 40

21 Synchronous & Asynchronous Bus Synchronous Bus: Includes a clock in the control lines Fixed protocol for communication, relative to the clock Advantage: involves very little logic and can run very fast Disadvantages:» Every device on the bus must run at the same clock rate» To avoid clock skew, bus cannot be long if they are fast Asynchronous Bus: It is not clocked It can accommodate a wide range of devices It can be lengthened without worrying about clock skew It requires a handshaking protocol Chapter 8 I/O 41 A Handshaking Protocol ReadReq Data Ack DataRdy 1 2 Address Data Three control lines ReadReq: indicates a read request for memory» Address is put on he data lines at same line DataRdy: indicates data word is ready on data lines» Data is put on data lines at same time Ack: acknowledge ReadReq or DataRdy of other party Chapter 8 I/O 42

22 Increasing Bus Bandwidth Separate versus multiplexed address and data lines: Address and data can be transmitted in one bus cycle if separate address and data lines are available Cost: (a) more bus lines, (b) increased complexity Data bus width: Increasing the width of the data bus, transfers of multiple words require fewer bus cycles Cost: more bus lines Block transfers: Transfer multiple words in back-to-back bus cycles Only one address needs to be sent at the beginning The bus is not released until the last word is transferred Cost: (a) increased complexity (b) decreased response time for request Split transaction: free up the bus when not transferring Cost: complexity, potentially latency Chapter 8 I/O 43 Obtaining Access to the Bus Bus Master Control: Master initiates requests Data can go either way Bus Slave One of the most important issues in bus design: How is the bus reserved by a device that wishes to use it? Chaos is avoided by a master-slave arrangement: Only the bus master can control access to the bus:» It initiates and controls all bus requests A slave responds to read and write requests The simplest system: Processor is the only bus master All bus requests must be controlled by the processor Major drawback: processor is involved in every transaction Chapter 8 I/O 44

23 Multiple Masters => Arbitration Bus arbitration scheme: Bus master wanting to use bus asserts bus request Bus master cannot use the bus until its request is granted Bus master must signal to the arbiter after finish using the bus Bus arbitration schemes try to balance two factors: Bus priority: highest priority device should be serviced first Fairness: lowest priority devices should never be completely locked out Bus arbitration schemes four broad classes: Distributed arbitration by self-selection: each device wanting bus places a code indicating its identity on bus. Distributed arbitration by collision detection: Ethernet Daisy chain arbitration: most common in I/O Centralized, parallel arbitration: centralize it. Chapter 8 I/O 45 Daisy Chain Arbitration Scheme Device 1 (Highest Priority) Device 2 Device N Lowest Priority Bus Arbiter Grant Grant Grant Release Request Advantage: simple Disadvantages: Cannot assure fairness:» A low-priority device may be locked out indefinitely The use of daisy chain grant signal limits bus speed Chapter 8 I/O 46

24 Bus Example: PCI Clock at 33 MHz (with extension to 66 MHz) [CLK] Central arbitration [REQ#, GNT#] Overlapped with previous transaction Multiplexed Address/Data 32 lines (with extension to 64) [AD] General Protocol Transaction type (bus command) [C/BE#] Address handshake and duration[frame#, TRDY#] Data width (byte enable) [C/BE#] Variable-length data block handshake [IRDY#, TRDY#] Maximum Bandwidth is 132 MB/s Chapter 8 I/O 47 Example: USB (Universal Serial Bus) Targeted at low-cost, low-bandwidth peripherals Software control and hardware logic are complex» But these are inexpensive for high volume Advantages for configurability, expandability, and ease of use» cables are inexpensive and easy to connect Clock at 1.5 MHz (with option for 12 MHz) Serial bus with a single signal Differential pair for noise tolerance Clock encoded with data using Non-Return to Zero, Inverted» Each signal transition corresponds to a 0 bit» After 6 consecutive 1 s, a 0 is stuffed to force a transition Star topology:» connections routed point-to-point and through hubs Chapter 8 I/O 48

25 More on USB General Protocol Transactions are packed into 1 ms frames Each transaction consists of three phases» Token specifies device and transaction type» Data transfer up to 1KB» Handshake to ensure reliable transfer Software schedules transactions» hardware arbitration is unnecessary Maximum bandwidth 1.5 Mb/s (with option 12 Mb/s) Chapter 8 I/O 49 USB System Configuration Figure from Universal Serial Bus System Architecture Chapter 8 I/O 50

26 USB Signaling Data encoded on differential-pair signal line allows clock to be recovered. Figure from Universal Serial Bus System Architecture Chapter 8 I/O 51 Operating System Tasks Operating system acts as the interface between: The I/O hardware and the program that requests I/O Three characteristics of the I/O systems: I/O system is shared by multiple program using processor I/O systems often use interrupts (externally generated exceptions) to communicate information about I/O operations.» Interrupts must be handled by the OS because they cause a transfer to supervisor mode The low-level control of an I/O device is complex:» Managing a set of concurrent events» The requirements for correct device control are very detailed Chapter 8 I/O 52

27 Operating System Requirements Provide protection to shared I/O resources Guarantees that a user s program can only access the portions of an I/O device to which the user has rights Provides abstraction for accessing devices: Supply routines that handle low-level device operation Handles the interrupts generated by I/O devices Provide equitable access to the shared I/O resources All user programs must have equal access to the I/O resources Schedule accesses in order to enhance system throughput Chapter 8 I/O 53 OS I/O Communication The Operating System must be able to prevent: User program from communicating with I/O device directly If user programs could perform I/O directly: Protection to shared I/O resources could not be provided Three types of communication are required: 1. OS must be able to give commands to I/O devices 2. I/O device must be able to notify OS when I/O device has completed an operation or has encountered an error 3. Data must be transferred between memory and an I/O device Chapter 8 I/O 54

28 Giving Commands to I/O Devices Two methods are used to address the device: Special I/O instructions -mapped I/O Special I/O instructions specify: Both the device number and the command word» Device number: the processor communicates this via a set of wires normally included as part of the I/O bus» Command word: usually sent on the bus s data lines» Used in Intel x86 and IBM 360 -mapped I/O: Portions of the address space are assigned to I/O device Read and writes to those addresses are interpreted as commands to the I/O devices User programs prevented issuing I/O operations directly:» I/O address space is protected by the address translation» Used in MIPS, SPARC, etc. Chapter 8 I/O 55 I/O Device Notifying the OS The OS needs to know when: The I/O device has completed an operation The I/O operation has encountered an error This can be accomplished in two different ways: Polling:» The I/O device put information in a status register» The OS periodically check the status register overhead I/O Interrupt:» Whenever an I/O device needs attention from the processor, it interrupts the processor from what it is currently doing.» Interrupt must convey information to OS what device? done with either a register or interrupt vector» I/O interrupt is asynchronous processor can wait till end of current instruction before recognizing interrupt Interrupts may have different priorities hardware support Chapter 8 I/O 56

29 Programmed I/O and Polling Example: output operation CPU read data from memory busy wait loop not an efficient way to use the CPU unless the device is very fast! IOC device yes Is the device ready? store data to device done? no Advantage: yes Simple: processor is totally in control and does all the work Disadvantage: Polling overhead and data transfer consume CPU time no Chapter 8 I/O 57 processor may be inefficient way to transfer data Interrupt Driven Data Transfer CPU IOC device Advantage: User program progress only halted during actual transfer Disadvantage, special hardware needed to: Cause an interrupt (I/O device) Detect interrupt (processor) Save proper states to resume after interrupt (processor) (1) I/O interrupt (2) save PC (3) interrupt service addr (4) add sub and or nop read store... : rti memory Chapter 8 I/O 58 user program interrupt service routine

30 Programmer s View main program Add Div Sub (1) interrupts request (e.g., from keyboard) (2) Save PC and branch to interrupt target address Save processor status/state Service the (keyboard) interrupt Restore processor status/state (3) get PC Chapter 8 I/O 59 Delegating I/O Handling: DMA CPU sends a starting address, direction, and length count to DMAC. Then issues "start". Direct Access (DMA): External to the CPU Act as a maser on the bus Transfer blocks of data to or from memory without CPU intervention CPU DMAC IOC device DMAC provides handshake signals for Peripheral Controller, and Addresses and handshake signals for. Chapter 8 I/O 60

31 Delegating I/O Handling: IOP CPU Mem (1) Issues instruction to IOP IOP main memory bus CPU IOP (3) DMA vs. IOP? how is I/O program stored and accessed? I/O bus memory D1 D2... Dn (4) IOP interrupts CPU when done (2) Device to/from memory transfers are controlled by the IOP directly. target device where commands OP Device Address IOP looks in memory for commands what to do IOP steals memory cycles. OP Addr Cnt Other where to put data how much Chapter 8 I/O 61 special requests Summary I/O Performance many factors expandability, latency, bandwidth I/O Devices: wide spectrum disks, graphics, networks Buses different types of buses:» Processor-memory buses, I/O buses, Backplane buses Bus arbitration schemes:» Daisy chain arbitration: cheap, but cannot assure fairness» Centralized parallel arbitration: requires a central arbiter OS and I/O communication: polling and interrupts Handling I/O outside CPU: DMA, I/O processor Chapter 8 I/O 62

CS152 Computer Architecture and Engineering Lecture 19: I/O Systems

CS152 Computer Architecture and Engineering Lecture 19: I/O Systems CS152 Computer Architecture and Engineering Lecture 19: I/O Systems April 5, 1995 Dave Patterson (patterson@cs) and Shing Kong (shing.kong@eng.sun.com) Slides available on http://http.cs.berkeley.edu/~patterson

More information

CS152 Computer Architecture and Engineering Lecture 20: Busses and OS s Responsibilities. Recap: IO Benchmarks and I/O Devices

CS152 Computer Architecture and Engineering Lecture 20: Busses and OS s Responsibilities. Recap: IO Benchmarks and I/O Devices CS152 Computer Architecture and Engineering Lecture 20: ses and OS s Responsibilities April 7, 1995 Dave Patterson (patterson@cs) and Shing Kong (shing.kong@eng.sun.com) Slides available on http://http.cs.berkeley.edu/~patterson

More information

Lecture 13. Storage, Network and Other Peripherals

Lecture 13. Storage, Network and Other Peripherals Lecture 13 Storage, Network and Other Peripherals 1 I/O Systems Processor interrupts Cache Processor & I/O Communication Memory - I/O Bus Main Memory I/O Controller I/O Controller I/O Controller Disk Disk

More information

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Outline of Today s Lecture. The Big Picture: Where are We Now?

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Outline of Today s Lecture. The Big Picture: Where are We Now? CPS104 Computer Organization and Programming Lecture 18: Input-Output Robert Wagner cps 104.1 RW Fall 2000 Outline of Today s Lecture The system Magnetic Disk Tape es DMA cps 104.2 RW Fall 2000 The Big

More information

Chapter 8. A Typical collection of I/O devices. Interrupts. Processor. Cache. Memory I/O bus. I/O controller I/O I/O. Main memory.

Chapter 8. A Typical collection of I/O devices. Interrupts. Processor. Cache. Memory I/O bus. I/O controller I/O I/O. Main memory. Chapter 8 1 A Typical collection of I/O devices Interrupts Cache I/O bus Main memory I/O controller I/O controller I/O controller Disk Disk Graphics output Network 2 1 Interfacing s and Peripherals I/O

More information

Chapter 6. I/O issues

Chapter 6. I/O issues Computer Architectures Chapter 6 I/O issues Tien-Fu Chen National Chung Cheng Univ Chap6 - Input / Output Issues I/O organization issue- CPU-memory bus, I/O bus width A/D multiplex Split transaction Synchronous

More information

Introduction to Input and Output

Introduction to Input and Output Introduction to Input and Output The I/O subsystem provides the mechanism for communication between the CPU and the outside world (I/O devices). Design factors: I/O device characteristics (input, output,

More information

EE108B Lecture 17 I/O Buses and Interfacing to CPU. Christos Kozyrakis Stanford University

EE108B Lecture 17 I/O Buses and Interfacing to CPU. Christos Kozyrakis Stanford University EE108B Lecture 17 I/O Buses and Interfacing to CPU Christos Kozyrakis Stanford University http://eeclass.stanford.edu/ee108b 1 Announcements Remaining deliverables PA2.2. today HW4 on 3/13 Lab4 on 3/19

More information

Buses. Disks PCI RDRAM RDRAM LAN. Some slides adapted from lecture by David Culler. Pentium 4 Processor. Memory Controller Hub.

Buses. Disks PCI RDRAM RDRAM LAN. Some slides adapted from lecture by David Culler. Pentium 4 Processor. Memory Controller Hub. es > 100 MB/sec Pentium 4 Processor L1 and L2 caches Some slides adapted from lecture by David Culler 3.2 GB/sec Display Memory Controller Hub RDRAM RDRAM Dual Ultra ATA/100 24 Mbit/sec Disks LAN I/O Controller

More information

INPUT/OUTPUT DEVICES Dr. Bill Yi Santa Clara University

INPUT/OUTPUT DEVICES Dr. Bill Yi Santa Clara University INPUT/OUTPUT DEVICES Dr. Bill Yi Santa Clara University (Based on text: David A. Patterson & John L. Hennessy, Computer Organization and Design: The Hardware/Software Interface, 3 rd Ed., Morgan Kaufmann,

More information

Input/Output Introduction

Input/Output Introduction Input/Output 1 Introduction Motivation Performance metrics Processor interface issues Buses 2 Page 1 Motivation CPU Performance: 60% per year I/O system performance limited by mechanical delays (e.g.,

More information

Introduction. Motivation Performance metrics Processor interface issues Buses

Introduction. Motivation Performance metrics Processor interface issues Buses Input/Output 1 Introduction Motivation Performance metrics Processor interface issues Buses 2 Motivation CPU Performance: 60% per year I/O system performance limited by mechanical delays (e.g., disk I/O)

More information

ECE468 Computer Organization and Architecture. OS s Responsibilities

ECE468 Computer Organization and Architecture. OS s Responsibilities ECE468 Computer Organization and Architecture OS s Responsibilities ECE4680 buses.1 April 5, 2003 Recap: Summary of Bus Options: Option High performance Low cost Bus width Separate address Multiplex address

More information

Chapter Seven Morgan Kaufmann Publishers

Chapter Seven Morgan Kaufmann Publishers Chapter Seven Memories: Review SRAM: value is stored on a pair of inverting gates very fast but takes up more space than DRAM (4 to 6 transistors) DRAM: value is stored as a charge on capacitor (must be

More information

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier Some material adapted from Mohamed Younis, UMBC CMSC 6 Spr 23 course slides Some material adapted from Hennessy & Patterson / 23 Elsevier Science Characteristics IBM 39 IBM UltraStar Integral 82 Disk diameter

More information

Virtual Memory Input/Output. Admin

Virtual Memory Input/Output. Admin Virtual Memory Input/Output Computer Science 104 Lecture 21 Admin Projects Due Friday Dec 7 Homework #6 Due Next Wed Dec 5 Today VM VM + Caches, I/O Reading I/O Chapter 8 Input Output (primarily 8.4 and

More information

Where We Are in This Course Right Now. ECE 152 Introduction to Computer Architecture Input/Output (I/O) Copyright 2012 Daniel J. Sorin Duke University

Where We Are in This Course Right Now. ECE 152 Introduction to Computer Architecture Input/Output (I/O) Copyright 2012 Daniel J. Sorin Duke University Introduction to Computer Architecture Input/Output () Copyright 2012 Daniel J. Sorin Duke University Slides are derived from work by Amir Roth (Penn) Spring 2012 Where We Are in This Course Right Now So

More information

INPUT/OUTPUT ORGANIZATION

INPUT/OUTPUT ORGANIZATION INPUT/OUTPUT ORGANIZATION Accessing I/O Devices I/O interface Input/output mechanism Memory-mapped I/O Programmed I/O Interrupts Direct Memory Access Buses Synchronous Bus Asynchronous Bus I/O in CO and

More information

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier Science Performance of Main : Latency: affects cache miss

More information

INPUT/OUTPUT ORGANIZATION

INPUT/OUTPUT ORGANIZATION INPUT/OUTPUT ORGANIZATION Accessing I/O Devices I/O interface Input/output mechanism Memory-mapped I/O Programmed I/O Interrupts Direct Memory Access Buses Synchronous Bus Asynchronous Bus I/O in CO and

More information

INPUT/OUTPUT ORGANIZATION

INPUT/OUTPUT ORGANIZATION INPUT/OUTPUT ORGANIZATION Accessing I/O Devices I/O interface Input/output mechanism Memory-mapped I/O Programmed I/O Interrupts Direct Memory Access Buses Synchronous Bus Asynchronous Bus I/O in CO and

More information

Chapter 6 Storage and Other I/O Topics

Chapter 6 Storage and Other I/O Topics Department of Electr rical Eng ineering, Chapter 6 Storage and Other I/O Topics 王振傑 (Chen-Chieh Wang) ccwang@mail.ee.ncku.edu.tw ncku edu Feng-Chia Unive ersity Outline 6.1 Introduction 6.2 Dependability,

More information

Reading and References. Input / Output. Why Input and Output? A typical organization. CSE 410, Spring 2004 Computer Systems

Reading and References. Input / Output. Why Input and Output? A typical organization. CSE 410, Spring 2004 Computer Systems Reading and References Input / Output Reading» Section 8.1-8.5, Computer Organization and Design, Patterson and Hennessy CSE 410, Spring 2004 Computer Systems http://www.cs.washington.edu/education/courses/410/04sp/

More information

ECE232: Hardware Organization and Design

ECE232: Hardware Organization and Design ECE232: Hardware Organization and Design Lecture 29: Computer Input/Output Adapted from Computer Organization and Design, Patterson & Hennessy, UCB Announcements ECE Honors Exhibition Wednesday, April

More information

I/O CANNOT BE IGNORED

I/O CANNOT BE IGNORED 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 improves by ~10% per year and I/O remains the same.

More information

Lecture 23: Storage Systems. Topics: disk access, bus design, evaluation metrics, RAID (Sections )

Lecture 23: Storage Systems. Topics: disk access, bus design, evaluation metrics, RAID (Sections ) Lecture 23: Storage Systems Topics: disk access, bus design, evaluation metrics, RAID (Sections 7.1-7.9) 1 Role of I/O Activities external to the CPU are typically orders of magnitude slower Example: while

More information

Storage Systems. Storage Systems

Storage Systems. Storage Systems Storage Systems Storage Systems We already know about four levels of storage: Registers Cache Memory Disk But we've been a little vague on how these devices are interconnected In this unit, we study Input/output

More information

Computer Organization and Structure. Bing-Yu Chen National Taiwan University

Computer Organization and Structure. Bing-Yu Chen National Taiwan University Computer Organization and Structure Bing-Yu Chen National Taiwan University Storage and Other I/O Topics I/O Performance Measures Types and Characteristics of I/O Devices Buses Interfacing I/O Devices

More information

Computer Architecture I/O Systems cs 152 L19.io.1

Computer Architecture I/O Systems cs 152 L19.io.1 Computer Architecture I/O Systems cs 152 L19.io.1 Outline of Today s Lecture Recap Busses Finish VM: TLBs Questions and Administrative Matters I/O Performance Measures Types and Characteristics of I/O

More information

Administrivia. CMSC 411 Computer Systems Architecture Lecture 19 Storage Systems, cont. Disks (cont.) Disks - review

Administrivia. CMSC 411 Computer Systems Architecture Lecture 19 Storage Systems, cont. Disks (cont.) Disks - review Administrivia CMSC 411 Computer Systems Architecture Lecture 19 Storage Systems, cont. Homework #4 due Thursday answers posted soon after Exam #2 on Thursday, April 24 on memory hierarchy (Unit 4) and

More information

Readings. Storage Hierarchy III: I/O System. I/O (Disk) Performance. I/O Device Characteristics. often boring, but still quite important

Readings. Storage Hierarchy III: I/O System. I/O (Disk) Performance. I/O Device Characteristics. often boring, but still quite important Storage Hierarchy III: I/O System Readings reg I$ D$ L2 L3 memory disk (swap) often boring, but still quite important ostensibly about general I/O, mainly about disks performance: latency & throughput

More information

CMSC 611: Advanced Computer Architecture

CMSC 611: Advanced Computer Architecture CMSC 611: Advanced Computer Architecture, I/O and Disk Most slides adapted from David Patterson. Some from Mohomed Younis Main Background Performance of Main : Latency: affects cache miss penalty Access

More information

Storage systems. Computer Systems Architecture CMSC 411 Unit 6 Storage Systems. (Hard) Disks. Disk and Tape Technologies. Disks (cont.

Storage systems. Computer Systems Architecture CMSC 411 Unit 6 Storage Systems. (Hard) Disks. Disk and Tape Technologies. Disks (cont. Computer Systems Architecture CMSC 4 Unit 6 Storage Systems Alan Sussman November 23, 2004 Storage systems We already know about four levels of storage: registers cache memory disk but we've been a little

More information

I/O CANNOT BE IGNORED

I/O CANNOT BE IGNORED 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 improves by ~10% per year and I/O remains the same.

More information

Thomas Polzer Institut für Technische Informatik

Thomas Polzer Institut für Technische Informatik Thomas Polzer tpolzer@ecs.tuwien.ac.at Institut für Technische Informatik Processor Interrupts Cache Memory I/O bus Main memory I/O controller I/O controller I/O controller Disk Disk Graphics output Network

More information

Chapter-6. SUBJECT:- Operating System TOPICS:- I/O Management. Created by : - Sanjay Patel

Chapter-6. SUBJECT:- Operating System TOPICS:- I/O Management. Created by : - Sanjay Patel Chapter-6 SUBJECT:- Operating System TOPICS:- I/O Management Created by : - Sanjay Patel Disk Scheduling Algorithm 1) First-In-First-Out (FIFO) 2) Shortest Service Time First (SSTF) 3) SCAN 4) Circular-SCAN

More information

Computer Science 146. Computer Architecture

Computer Science 146. Computer Architecture Computer Science 46 Computer Architecture Spring 24 Harvard University Instructor: Prof dbrooks@eecsharvardedu Lecture 22: More I/O Computer Science 46 Lecture Outline HW5 and Project Questions? Storage

More information

IO System. CP-226: Computer Architecture. Lecture 25 (24 April 2013) CADSL

IO System. CP-226: Computer Architecture. Lecture 25 (24 April 2013) CADSL IO System Virendra Singh Associate Professor Computer Architecture and Dependable Systems Lab Department of Electrical Engineering Indian Institute of Technology Bombay http://www.ee.iitb.ac.in/~viren/

More information

Module 6: INPUT - OUTPUT (I/O)

Module 6: INPUT - OUTPUT (I/O) Module 6: INPUT - OUTPUT (I/O) Introduction Computers communicate with the outside world via I/O devices Input devices supply computers with data to operate on E.g: Keyboard, Mouse, Voice recognition hardware,

More information

Storage. Hwansoo Han

Storage. Hwansoo Han Storage Hwansoo Han I/O Devices I/O devices can be characterized by Behavior: input, out, storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections 2 I/O System Characteristics

More information

Recap: Making address translation practical: TLB. CS152 Computer Architecture and Engineering Lecture 24. Busses (continued) Queueing Theory Disk IO

Recap: Making address translation practical: TLB. CS152 Computer Architecture and Engineering Lecture 24. Busses (continued) Queueing Theory Disk IO Recap: Making address translation practical: TLB CS152 Computer Architecture and Engineering Lecture 24 Virtual memory => memory acts like a cache for the disk Page table maps virtual page numbers to physical

More information

8. Interfacing Processors and Peripherals

8. Interfacing Processors and Peripherals 8. Interfacing Processors and Peripherals Revisions Date March 23, 2003 March 31, 2003 Changes More details on synchronous buses have been added to section 8.4 Details and more diagrams in the section

More information

ECE331: Hardware Organization and Design

ECE331: Hardware Organization and Design ECE331: Hardware Organization and Design Lecture 31: Computer Input/Output Adapted from Computer Organization and Design, Patterson & Hennessy, UCB Overview for today Input and output are fundamental for

More information

ECE 485/585 Microprocessor System Design

ECE 485/585 Microprocessor System Design Microprocessor System Design Lecture 15: Bus Fundamentals Zeshan Chishti Electrical and Computer Engineering Dept. Maseeh College of Engineering and Computer Science Source: Lecture based on materials

More information

Introduction I/O 1. I/O devices can be characterized by Behavior: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec

Introduction I/O 1. I/O devices can be characterized by Behavior: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec Introduction I/O 1 I/O devices can be characterized by Behavior: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections I/O Device Summary I/O 2 I/O System

More information

Input/Output. Today. Next. Principles of I/O hardware & software I/O software layers Disks. Protection & Security

Input/Output. Today. Next. Principles of I/O hardware & software I/O software layers Disks. Protection & Security Input/Output Today Principles of I/O hardware & software I/O software layers Disks Next Protection & Security Operating Systems and I/O Two key operating system goals Control I/O devices Provide a simple,

More information

Lectures More I/O

Lectures More I/O Lectures 24-25 More I/O 1 I/O is slow! How fast can a typical I/O device supply data to a computer? A fast typist can enter 9-10 characters a second on a keyboard. Common local-area network (LAN) speeds

More information

Systems Architecture II

Systems Architecture II Systems Architecture II Topics Interfacing I/O Devices to Memory, Processor, and Operating System * Memory-mapped IO and Interrupts in SPIM** *This lecture was derived from material in the text (Chapter

More information

Introduction to I/O. April 30, Howard Huang 1

Introduction to I/O. April 30, Howard Huang 1 Introduction to I/O Where does the data for our CPU and memory come from or go to? Computers communicate with the outside world via I/O devices. Input devices supply computers with data to operate on.

More information

PCI and PCI Express Bus Architecture

PCI and PCI Express Bus Architecture PCI and PCI Express Bus Architecture Computer Science & Engineering Department Arizona State University Tempe, AZ 85287 Dr. Yann-Hang Lee yhlee@asu.edu (480) 727-7507 7/23 Buses in PC-XT and PC-AT ISA

More information

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

I/O Handling. ECE 650 Systems Programming & Engineering Duke University, Spring Based on Operating Systems Concepts, Silberschatz Chapter 13 I/O Handling ECE 650 Systems Programming & Engineering Duke University, Spring 2018 Based on Operating Systems Concepts, Silberschatz Chapter 13 Input/Output (I/O) Typical application flow consists of

More information

Chapter 6. Storage and Other I/O Topics

Chapter 6. Storage and Other I/O Topics Chapter 6 Storage and Other I/O Topics Introduction I/O devices can be characterized by Behavior: input, output, t storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections

More information

INPUT-OUTPUT ORGANIZATION

INPUT-OUTPUT ORGANIZATION INPUT-OUTPUT ORGANIZATION Peripheral Devices: The Input / output organization of computer depends upon the size of computer and the peripherals connected to it. The I/O Subsystem of the computer, provides

More information

Chapter 5 Input/Output Organization. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Chapter 5 Input/Output Organization. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Chapter 5 Input/Output Organization Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Outline Accessing I/O Devices Interrupts Direct Memory Access Buses Interface

More information

Unit 3 and Unit 4: Chapter 4 INPUT/OUTPUT ORGANIZATION

Unit 3 and Unit 4: Chapter 4 INPUT/OUTPUT ORGANIZATION Unit 3 and Unit 4: Chapter 4 INPUT/OUTPUT ORGANIZATION Introduction A general purpose computer should have the ability to exchange information with a wide range of devices in varying environments. Computers

More information

Bus System. Bus Lines. Bus Systems. Chapter 8. Common connection between the CPU, the memory, and the peripheral devices.

Bus System. Bus Lines. Bus Systems. Chapter 8. Common connection between the CPU, the memory, and the peripheral devices. Bus System Chapter 8 CSc 314 T W Bennet Mississippi College 1 CSc 314 T W Bennet Mississippi College 3 Bus Systems Common connection between the CPU, the memory, and the peripheral devices. One device

More information

CSE 120. Overview. July 27, Day 8 Input/Output. Instructor: Neil Rhodes. Hardware. Hardware. Hardware

CSE 120. Overview. July 27, Day 8 Input/Output. Instructor: Neil Rhodes. Hardware. Hardware. Hardware CSE 120 July 27, 2006 Day 8 Input/Output Instructor: Neil Rhodes How hardware works Operating Systems Layer What the kernel does API What the programmer does Overview 2 Kinds Block devices: read/write

More information

Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses

Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses 1 Most of the integrated I/O subsystems are connected to the

More information

Recap: What is virtual memory? CS152 Computer Architecture and Engineering Lecture 22. Virtual Memory (continued) Buses

Recap: What is virtual memory? CS152 Computer Architecture and Engineering Lecture 22. Virtual Memory (continued) Buses CS152 Computer Architecture and Engineering Lecture 22 Virtual (continued) es April 21, 2004 John Kubiatowicz (www.cs.berkeley.edu/~kubitron) Virtual Address Space Recap: What is virtual memory? Physical

More information

Computer System Architecture

Computer System Architecture CSC 203 1.5 Computer System Architecture Department of Statistics and Computer Science University of Sri Jayewardenepura Secondary Memory 2 Technologies Magnetic storage Floppy, Zip disk, Hard drives,

More information

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 09, SPRING 2013

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 09, SPRING 2013 CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 09, SPRING 2013 TOPICS TODAY I/O Architectures Interrupts Exceptions FETCH EXECUTE CYCLE 1.7 The von Neumann Model This is a general

More information

Storage Technologies and the Memory Hierarchy

Storage Technologies and the Memory Hierarchy Storage Technologies and the Memory Hierarchy 198:231 Introduction to Computer Organization Lecture 12 Instructor: Nicole Hynes nicole.hynes@rutgers.edu Credits: Slides courtesy of R. Bryant and D. O Hallaron,

More information

I/O Systems. EECC551 - Shaaban. Processor. Cache. Memory - I/O Bus. Main Memory. I/O Controller. I/O Controller. I/O Controller. Graphics.

I/O Systems. EECC551 - Shaaban. Processor. Cache. Memory - I/O Bus. Main Memory. I/O Controller. I/O Controller. I/O Controller. Graphics. Processor I/O Systems interrupts Cache Memory - I/O Bus Main Memory I/O Controller I/O Controller I/O Controller Disk Disk Graphics Network Time(workload) = Time(CPU) + Time(I/O) - Time(Overlap) #1 Lec

More information

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

Virtual Memory. Reading. Sections 5.4, 5.5, 5.6, 5.8, 5.10 (2) Lecture notes from MKP and S. Yalamanchili Virtual Memory Lecture notes from MKP and S. Yalamanchili Sections 5.4, 5.5, 5.6, 5.8, 5.10 Reading (2) 1 The Memory Hierarchy ALU registers Cache Memory Memory Memory Managed by the compiler Memory Managed

More information

Lecture 23. Finish-up buses Storage

Lecture 23. Finish-up buses Storage Lecture 23 Finish-up buses Storage 1 Example Bus Problems, cont. 2) Assume the following system: A CPU and memory share a 32-bit bus running at 100MHz. The memory needs 50ns to access a 64-bit value from

More information

Chapter 3. Top Level View of Computer Function and Interconnection. Yonsei University

Chapter 3. Top Level View of Computer Function and Interconnection. Yonsei University Chapter 3 Top Level View of Computer Function and Interconnection Contents Computer Components Computer Function Interconnection Structures Bus Interconnection PCI 3-2 Program Concept Computer components

More information

Chapter 8: Input and Output. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V.

Chapter 8: Input and Output. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. 8-1 Principles of Computer Architecture Miles Murdocca and Vincent Heuring 8-2 Chapter Contents 8.1 Simple Bus Architectures 8.2 Bridge-Based Bus Architectures 8.3 Communication Methodologies 8.4 Case

More information

Lecture 25: Busses. A Typical Computer Organization

Lecture 25: Busses. A Typical Computer Organization S 09 L25-1 18-447 Lecture 25: Busses James C. Hoe Dept of ECE, CMU April 27, 2009 Announcements: Project 4 due this week (no late check off) HW 4 due today Handouts: Practice Final Solutions A Typical

More information

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

Chapter 13: I/O Systems. Operating System Concepts 9 th Edition Chapter 13: I/O Systems Silberschatz, Galvin and Gagne 2013 Chapter 13: I/O Systems Overview I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations

More information

Computer Architecture Computer Science & Engineering. Chapter 6. Storage and Other I/O Topics BK TP.HCM

Computer Architecture Computer Science & Engineering. Chapter 6. Storage and Other I/O Topics BK TP.HCM Computer Architecture Computer Science & Engineering Chapter 6 Storage and Other I/O Topics Introduction I/O devices can be characterized by Behaviour: input, output, storage Partner: human or machine

More information

Chapter 6. Storage and Other I/O Topics

Chapter 6. Storage and Other I/O Topics Chapter 6 Storage and Other I/O Topics Introduction I/O devices can be characterized by Behaviour: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections

More information

UC Santa Barbara. Operating Systems. Christopher Kruegel Department of Computer Science UC Santa Barbara

UC Santa Barbara. Operating Systems. Christopher Kruegel Department of Computer Science UC Santa Barbara Operating Systems Christopher Kruegel Department of Computer Science http://www.cs.ucsb.edu/~chris/ Input and Output Input/Output Devices The OS is responsible for managing I/O devices Issue requests Manage

More information

SEMICON Solutions. Bus Structure. Created by: Duong Dang Date: 20 th Oct,2010

SEMICON Solutions. Bus Structure. Created by: Duong Dang Date: 20 th Oct,2010 SEMICON Solutions Bus Structure Created by: Duong Dang Date: 20 th Oct,2010 Introduction Buses are the simplest and most widely used interconnection networks A number of modules is connected via a single

More information

I/O. Fall Tore Larsen. Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum)

I/O. Fall Tore Larsen. Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum) I/O Fall 2011 Tore Larsen Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum) Big Picture Today we talk about I/O characteristics interconnection devices & controllers (disks

More information

I/O. Fall Tore Larsen. Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum)

I/O. Fall Tore Larsen. Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum) I/O Fall 2010 Tore Larsen Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum) Big Picture Today we talk about I/O characteristics interconnection devices & controllers (disks

More information

Computer Architecture CS 355 Busses & I/O System

Computer Architecture CS 355 Busses & I/O System Computer Architecture CS 355 Busses & I/O System Text: Computer Organization & Design, Patterson & Hennessy Chapter 6.5-6.6 Objectives: During this class the student shall learn to: Describe the two basic

More information

Storage System COSC UCB

Storage System COSC UCB Storage System COSC4201 1 1999 UCB I/O and Disks Over the years much less attention was paid to I/O compared with CPU design. As frustrating as a CPU crash is, disk crash is a lot worse. Disks are mechanical

More information

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

I/O Systems. Amir H. Payberah. Amirkabir University of Technology (Tehran Polytechnic) I/O Systems Amir H. Payberah amir@sics.se Amirkabir University of Technology (Tehran Polytechnic) Amir H. Payberah (Tehran Polytechnic) I/O Systems 1393/9/15 1 / 57 Motivation Amir H. Payberah (Tehran

More information

Input/Output Problems. External Devices. Input/Output Module. I/O Steps. I/O Module Function Computer Architecture

Input/Output Problems. External Devices. Input/Output Module. I/O Steps. I/O Module Function Computer Architecture 168 420 Computer Architecture Chapter 6 Input/Output Input/Output Problems Wide variety of peripherals Delivering different amounts of data At different speeds In different formats All slower than CPU

More information

Generic Model of I/O Module Interface to CPU and Memory Interface to one or more peripherals

Generic Model of I/O Module Interface to CPU and Memory Interface to one or more peripherals William Stallings Computer Organization and Architecture 7 th Edition Chapter 7 Input/Output Input/Output Problems Wide variety of peripherals Delivering different amounts of data At different speeds In

More information

CMSC 313 Lecture 26 DigSim Assignment 3 Cache Memory Virtual Memory + Cache Memory I/O Architecture

CMSC 313 Lecture 26 DigSim Assignment 3 Cache Memory Virtual Memory + Cache Memory I/O Architecture CMSC 313 Lecture 26 DigSim Assignment 3 Cache Memory Virtual Memory + Cache Memory I/O Architecture UMBC, CMSC313, Richard Chang CMSC 313, Computer Organization & Assembly Language Programming

More information

CSE 380 Computer Operating Systems

CSE 380 Computer Operating Systems CSE 380 Computer Operating Systems Instructor: Insup Lee University of Pennsylvania Fall 2003 Lecture Note on Disk I/O 1 I/O Devices Storage devices Floppy, Magnetic disk, Magnetic tape, CD-ROM, DVD User

More information

Outline. EEL-4713 Computer Architecture I/O Systems. I/O System Design Issues. The Big Picture: Where are We Now? I/O Performance Measures

Outline. EEL-4713 Computer Architecture I/O Systems. I/O System Design Issues. The Big Picture: Where are We Now? I/O Performance Measures Outline EEL-4713 Computer Architecture I/O Systems I/O Performance Measures Types and Characteristics of I/O Devices Magnetic Disks Summary io.1 io.2 The Big Picture: Where are We Now? Today s Topic: I/O

More information

Lecture #9-10: Communication Methods

Lecture #9-10: Communication Methods Lecture #9-10: Communication Methods Kunle EE183 February 10, 2003 Lab Issues Lab 2 Writeup is due tonight at Midnight Lab 3 Questions? The starter is available on the web ASM183 Modelsim Verilog simulation

More information

Page 1. Magnetic Disk Purpose Long term, nonvolatile storage Lowest level in the memory hierarchy. Typical Disk Access Time

Page 1. Magnetic Disk Purpose Long term, nonvolatile storage Lowest level in the memory hierarchy. Typical Disk Access Time Review: Major Components of a Computer Processor Control Datapath Cache Memory Main Memory Secondary Memory (Disk) Devices Output Input Magnetic Disk Purpose Long term, nonvolatile storage Lowest level

More information

Chapter 6. Storage and Other I/O Topics. ICE3003: Computer Architecture Fall 2012 Euiseong Seo

Chapter 6. Storage and Other I/O Topics. ICE3003: Computer Architecture Fall 2012 Euiseong Seo Chapter 6 Storage and Other I/O Topics 1 Introduction I/O devices can be characterized by Behaviour: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections

More information

Computer Systems Laboratory Sungkyunkwan University

Computer Systems Laboratory Sungkyunkwan University I/O System Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Introduction (1) I/O devices can be characterized by Behavior: input, output, storage

More information

The D igital Digital Logic Level Chapter 3 1

The D igital Digital Logic Level Chapter 3 1 The Digital Logic Level Chapter 3 1 Gates and Boolean Algebra (1) (a) A transistor inverter. (b) A NAND gate. (c) A NOR gate. 2 Gates and Boolean Algebra (2) The symbols and functional behavior for the

More information

Appendix D: Storage Systems

Appendix D: Storage Systems Appendix D: Storage Systems Instructor: Josep Torrellas CS433 Copyright Josep Torrellas 1999, 2001, 2002, 2013 1 Storage Systems : Disks Used for long term storage of files temporarily store parts of pgm

More information

CS162 Operating Systems and Systems Programming Lecture 17. Disk Management and File Systems

CS162 Operating Systems and Systems Programming Lecture 17. Disk Management and File Systems CS162 Operating Systems and Systems Programming Lecture 17 Disk Management and File Systems March 18, 2010 Ion Stoica http://inst.eecs.berkeley.edu/~cs162 Review: Want Standard Interfaces to Devices Block

More information

Concepts Introduced. I/O Cannot Be Ignored. Typical Collection of I/O Devices. I/O Issues

Concepts Introduced. I/O Cannot Be Ignored. Typical Collection of I/O Devices. I/O Issues Concepts Introduced I/O Cannot Be Ignored Assume a program requires 100 seconds, 90 seconds for accessing main memory and 10 seconds for I/O. I/O introduction magnetic disks ash memory communication with

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 2 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 2 System I/O System I/O (Chap 13) Central

More information

Chapter 6. Storage and Other I/O Topics

Chapter 6. Storage and Other I/O Topics Chapter 6 Storage and Other I/O Topics Introduction I/O devices can be characterized by Behaviour: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections

More information

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

Module 2: Computer-System Structures. Computer-System Architecture Module 2: Computer-System Structures Computer-System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection General System Architecture Operating System Concepts 2.1 Silberschatz

More information

Buses. Maurizio Palesi. Maurizio Palesi 1

Buses. Maurizio Palesi. Maurizio Palesi 1 Buses Maurizio Palesi Maurizio Palesi 1 Introduction Buses are the simplest and most widely used interconnection networks A number of modules is connected via a single shared channel Microcontroller Microcontroller

More information

CSE 153 Design of Operating Systems Fall 2018

CSE 153 Design of Operating Systems Fall 2018 CSE 153 Design of Operating Systems Fall 2018 Lecture 12: File Systems (1) Disk drives OS Abstractions Applications Process File system Virtual memory Operating System CPU Hardware Disk RAM CSE 153 Lecture

More information

Accessing I/O Devices Interface to CPU and Memory Interface to one or more peripherals Generic Model of IO Module Interface for an IO Device: CPU checks I/O module device status I/O module returns status

More information

Lecture 13: Bus and I/O. James C. Hoe Department of ECE Carnegie Mellon University

Lecture 13: Bus and I/O. James C. Hoe Department of ECE Carnegie Mellon University 18 447 Lecture 13: Bus and I/O James C. Hoe Department of ECE Carnegie Mellon University 18 447 S18 L13 S1, James C. Hoe, CMU/ECE/CALCM, 2018 Your goal today Housekeeping take first peek outside of the

More information

Introduction to the PCI Interface. Meeta Srivastav

Introduction to the PCI Interface. Meeta Srivastav Introduction to the PCI Interface Meeta Srivastav 4 th March, 2005 Talk layout BUS standards PCI Local Bus PCI protocol Special Cases Electrical and Mechanical Specifications Other Topics 2 Inside a Computer

More information

Digital System Design

Digital System Design Digital System Design by Dr. Lesley Shannon Email: lshannon@ensc.sfu.ca Course Website: http://www.ensc.sfu.ca/~lshannon/courses/ensc350 Simon Fraser University i Slide Set: 15 Date: March 30, 2009 Slide

More information