Amdahl’s Law & I/O Control Method 1. Amdahl’s Law The overall performance of a system is a result of the interaction of all of its components. System.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

Computer Architecture
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Input-Output.
04/16/2010CSCI 315 Operating Systems Design1 I/O Systems Notice: The slides for this lecture have been largely based on those accompanying an earlier edition.
Chapter 7 Interupts DMA Channels Context Switching.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Input-Output Problems L1 Prof. Sin-Min Lee Department of Mathematics and Computer Science.
Chapter 7 Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats.
Input/Output and Communication
External Devices I/O Modules Programmed I/O Interrupt Driven I/O Direct Memory Access I/O Channels and Processors.
Group 7 Jhonathan Briceño Reginal Etienne Christian Kruger Felix Martinez Dane Minott Immer S Rivera Ander Sahonero.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
INPUT-OUTPUT ORGANIZATION
CS-334: Computer Architecture
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
ITEC 1011 Introduction to Information Technologies 7. Input / Output Chapt. 8.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
MICROPROCESSOR INPUT/OUTPUT
Interrupts and DMA CSCI The Role of the Operating System in Performing I/O Two main jobs of a computer are: –Processing –Performing I/O manage and.
1 Lecture 20: I/O n I/O hardware n I/O structure n communication with controllers n device interrupts n device drivers n streams.
1. Introduction 2. Methods for I/O Operations 3. Buses 4. Liquid Crystal Displays 5. Other Types of Displays 6. Graphics Adapters 7. Optical Discs 10/01/20151Input/Output.
THE COMPUTER SYSTEM. Lecture Objectives Computer functions – Instruction fetch & execute – Interrupt Handling – I/O functions Interconnections Computer.
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.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
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.
Top Level View of Computer Function and Interconnection.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
DMA Versus Polling or Interrupt Driven I/O
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
Input/Output Computer component : Input/Output I/O Modules External Devices I/O Modules Function and Structure I/O Operation Techniques I/O Channels and.
EEE440 Computer Architecture
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
Input-Output Organization
Modes of transfer in computer
Organisasi Sistem Komputer Materi VIII (Input Output)
CH10 Input/Output DDDData Transfer EEEExternal Devices IIII/O Modules PPPProgrammed I/O IIIInterrupt-Driven I/O DDDDirect Memory.
Fall 2000M.B. Ibáñez Lecture 25 I/O Systems. Fall 2000M.B. Ibáñez Categories of I/O Devices Human readable –used to communicate with the user –video display.
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
Dr Mohamed Menacer College of Computer Science and Engineering, Taibah University CE-321: Computer.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
IT3002 Computer Architecture
بسم الله الرحمن الرحيم MEMORY AND I/O.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Direct Memory Access (DMA) Department of Computer Engineering, M.S.P.V.L. Polytechnic College, Pavoorchatram. A Presentation On.
Computer Architecture Chapter (7): Input / Output
Chapter 7 Input/Output and Storage Systems. 2 Chapter 7 Objectives Understand how I/O systems work, including I/O methods and architectures. Become familiar.
Computer Architecture. Top level of Computer A top level of computer consists of CPU, memory, an I/O components, with one or more modules of each type.
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Input/Output.
Presentation transcript:

Amdahl’s Law & I/O Control Method 1

Amdahl’s Law The overall performance of a system is a result of the interaction of all of its components. System performance is most effectively improved when the performance of the most heavily used components is improved. This idea is quantified by Amdahl’s Law: where S is the overall speedup; f is the fraction of work performed by a faster component; and k is the speedup of the faster component. 2

Amdahl’s Law Amdahl’s Law gives us a handy way to estimate the performance improvement we can expect when we upgrade a system component. On a large system, suppose we can upgrade a CPU to make it 50% faster for $10,000 or upgrade its disk drives for $7,000 to make them 250% faster. Processes spend 70% of their time running in the CPU and 30% of their time waiting for disk service. An upgrade of which component would offer the greater benefit for the lesser cost? 3

Amdahl’s Law The processor option offers a 130% speedup: And the disk drive option gives a 122% speedup: Each 1% of improvement for the processor costs $333, and for the disk a 1% improvement costs $318. 4

I/O Architectures We define input/output as a subsystem of components that moves coded data between external devices and a host system. I/O subsystems include:  Blocks of main memory that are devoted to I/O functions.  Buses that move data into and out of the system.  Control modules in the host and in peripheral devices  Interfaces to external components such as keyboards and disks.  Cabling or communications links between the host system and its peripherals. 5

I/O Architectures This is a model I/O configuration. 6

I/O can be controlled in four general ways. Programmed I/O reserves a register for each I/O device. Each register is continually polled to detect data arrival. Interrupt-Driven I/O allows the CPU to do other things until I/O is requested. Interrupt-Driven I/O Direct Memory Access (DMA) offloads I/O processing to a special-purpose chip that takes care of the details. Direct Memory Access (DMA) Channel I/O uses dedicated I/O processors. Channel I/O I/O Architectures 7

This is an idealized I/O subsystem that uses interrupts. Each device connects its interrupt line to the interrupt controller. I/O Architectures: Interrupt-Driven I/O The controller signals the CPU when any of the interrupt lines are asserted. 8

In a system that uses interrupts, the status of the interrupt signal is checked at the top of the fetch-decode-execute cycle. The particular code that is executed whenever an interrupt occurs is determined by a set of addresses called interrupt vectors that are stored in low memory. The system state is saved before the interrupt service routine is executed and is restored afterward. I/O Architectures: Interrupt-Driven I/O 9

This is a DMA configuration. Notice that the DMA and the CPU share the bus. The DMA runs at a higher priority and steals memory cycles from the CPU. I/O Architectures: DMA 10

Very large systems employ channel I/O. Channel I/O consists of one or more I/O processors (IOPs) that control various channel paths. Slower devices such as terminals and printers are combined (multiplexed) into a single faster channel. On IBM mainframes, multiplexed channels are called multiplexor channels, the faster ones are called selector channels. I/O Architectures: Channel I/O 11

Channel I/O is distinguished from DMA by the intelligence of the IOPs. The IOP negotiates protocols, issues device commands, translates storage coding to memory coding, and can transfer entire files or groups of files independent of the host CPU. The host has only to create the program instructions for the I/O operation and tell the IOP where to find them. I/O Architectures: Channel I/O 12

channel I/O configuration. I/O Architectures 13 I/O Architectures: Channel I/O

Character I/O devices process one byte (or character) at a time.  Examples include modems, keyboards, and mice.  Keyboards are usually connected through an interrupt-driven I/O system. Block I/O devices handle bytes in groups.  Most mass storage devices (disk and tape) are block I/O devices.  Block I/O systems are most efficiently connected through DMA or channel I/O. I/O Architectures 14

I/O buses, unlike memory buses, operate asynchronously. Requests for bus access must be arbitrated among the devices involved. Bus control lines activate the devices when they are needed, raise signals when errors have occurred, and reset devices when necessary. The number of data lines is the width of the bus. A bus clock coordinates activities and provides bit cell boundaries. I/O Architectures 15