CPE 442 io.1 Introduction To Computer Architecture CpE 442 I/O Systems.

Slides:



Advertisements
Similar presentations
IT253: Computer Organization
Advertisements

I/O Chapter 8. Outline Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
CSE431 Chapter 6A.1Irwin, PSU, 2008 Chapter 6A: Disk Systems Mary Jane Irwin ( ) [Adapted from Computer Organization.
Section 6.2. Record data by magnetizing the binary code on the surface of a disk. Data area is reusable Allows for both sequential and direct access file.
Introduction to Computer Hardware and Software. Definition of a Computer “A computer is an electronic device, operating under the control of instructions.
CPE 442 io.1 Introduction To Computer Architecture CpE 442 I/O Systems.
CSCE 212 Chapter 8 Storage, Networks, and Other Peripherals Instructor: Jason D. Bakos.
EE30332 Ch8 DP – 1 Ch 8 Interfacing Processors and Peripherals Buses °Fundamental tool for designing and building computer systems divide the problem into.
What Is A Computer System?
OS2-1 Chapter 2 Computer System Structures. OS2-2 Outlines Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
1  1998 Morgan Kaufmann Publishers Chapter 8 Storage, Networks and Other Peripherals.
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.
Disk Drivers May 10, 2000 Instructor: Gary Kimura.
Memory Hierarchy.1 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output.
Prof. John Nestor ECE Department Lafayette College Easton, Pennsylvania ECE Computer Organization Lecture 22 - Input/Output.
SECTIONS 13.1 – 13.3 Sanuja Dabade & Eilbroun Benjamin CS 257 – Dr. TY Lin SECONDARY STORAGE MANAGEMENT.
Disks.
S.1 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output Cache Main Memory Secondary Memory (Disk)
12/3/2004EE 42 fall 2004 lecture 391 Lecture #39: Magnetic memory storage Last lecture: –Dynamic Ram –E 2 memory This lecture: –Future memory technologies.
1 CS222: Principles of Database Management Fall 2010 Professor Chen Li Department of Computer Science University of California, Irvine Notes 01.
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.
Data Storage Technology
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
* Definition of -RAM (random access memory) :- -RAM is the place in a computer where the operating system, application programs & data in current use.
Computer Systems 1 Fundamentals of Computing
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-2 CAD Systems Industrial Engineering Department King Saud University.
Storage & Peripherals Disks, Networks, and Other Devices.
Stuart Cunningham - Computer Platforms COMPUTER PLATFORMS Input, Output, and Storage & Introduction to Basic Computer Architecture Week 2.
Lecture 11: DMBS Internals
I/O – Chapter 8 Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
The Big Picture: Where are We Now?
Chapter 111 Chapter 11: Hardware (Slides by Hector Garcia-Molina,
1 Week 9: Computing Components: PART II READING: Chapter 5.
Computing and the Web Computer Hardware Components.
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.
Cs 152 L19.io. 1 DAP Fa97,  U.CB I/O System Design Issues Processor Cache Memory - I/O Bus Main Memory I/O Controller Disk I/O Controller I/O Controller.
1 Introduction to Computers By Masseta ICT Dept. Mzumbe University.
2.1 Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General.
I/O Computer Organization II 1 Introduction I/O devices can be characterized by – Behavior: input, output, storage – Partner: human or machine – Data rate:
+ CS 325: CS Hardware and Software Organization and Architecture Memory Organization.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
Programming for GCSE Topic 5.1: Memory and Storage T eaching L ondon C omputing William Marsh School of Electronic Engineering and Computer Science Queen.
11.1Database System Concepts. 11.2Database System Concepts Now Something Different 1st part of the course: Application Oriented 2nd part of the course:
DMBS Internals I. What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently.
Csci 136 Computer Architecture II – IO and Storage Systems Xiuzhen Cheng
Multilevel Caches Microprocessors are getting faster and including a small high speed cache on the same chip.
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.
DMBS Internals I February 24 th, What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the.
Jeffrey Ellak CS 147. Topics What is memory hierarchy? What are the different types of memory? What is in charge of accessing memory?
DMBS Internals I. What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently.
COSC 6340: Disks 1 Disks and Files DBMS stores information on (“hard”) disks. This has major implications for DBMS design! » READ: transfer data from disk.
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 25 I/O Systems May 2,
Main Memory Main memory – –a collection of storage locations, –each with a unique identifier called the address. Word- –Data are transferred to and from.
1 Lecture 16: Data Storage Wednesday, November 6, 2006.
1 Components of the Virtual Memory System  Arrows indicate what happens on a lw virtual address data physical address TLB page table memory cache disk.
CMSC 611: Advanced Computer Architecture I/O & Storage Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted.
File organization Secondary Storage Devices Lec#7 Presenter: Dr Emad Nabil.
Introduction to Computers
Chapter 2: Computer-System Structures
Lecture 16: Data Storage Wednesday, November 6, 2006.
IT 251 Computer Organization and Architecture
Introduction to Computers
Lecture 11: DMBS Internals
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
Input-output I/O is very much architecture/system dependent
Presentation transcript:

CPE 442 io.1 Introduction To Computer Architecture CpE 442 I/O Systems

CPE 442 io.2 Introduction To Computer Architecture Recap: Virtual Memory °Virtual Memory invented as another level of the hierarchy °Controversial at the time: can SW automatically manage 64KB across many programs? °DRAM growth removed the controversy °Today VM allows many processes to share single memory without having to swap all processes to disk, protection more important °(Multi-level) page tables to map virtual address to physical address °TLBs are important for fast translation °TLB misses are significant in performance

CPE 442 io.3 Introduction To Computer Architecture Outline of Today’s Lecture °Recap and Introduction (5 minutes) °I/O Performance Measures (15 minutes) °Types and Characteristics of I/O Devices (10 minutes) °Magnetic Disks (15 minutes) °Graphic Displays and Video RAM (20 minutes) °Summary (5 minutes)

CPE 442 io.4 Introduction To Computer Architecture The Big Picture: Where are We Now? Control Datapath Memory Processor Input Output °Today’s Topic: I/O Systems Control Datapath Memory Processor Input Output Network

CPE 442 io.5 Introduction To Computer Architecture I/O System Design Issues Processor Cache Memory - I/O Bus Main Memory I/O Controller Disk I/O Controller I/O Controller Graphics Network interrupts Performance Expandability Resilience in the face of failure

CPE 442 io.6 Introduction To Computer Architecture 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 Memory 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

CPE 442 io.7 Introduction To Computer Architecture Producer-Server Model °Throughput: The number of tasks completed by the server in unit time In order to get the highest possible throughput: -The server should never be idle -The queue should never be empty °Response time: Begins when a task is placed in the queue Ends when it is completed by the server In order to minimize the response time: -The queue should be empty -The server will be idle ProducerServerQueue

CPE 442 io.8 Introduction To Computer Architecture Throughput versus Respond Time 20%40%60%80%100% Response Time (ms) Percentage of maximum throughput

CPE 442 io.9 Introduction To Computer Architecture Throughput Enhancement °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 Producer Server Queue Server

CPE 442 io.10 Introduction To Computer Architecture 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

CPE 442 io.11 Introduction To Computer Architecture 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 °The overriding supercomputer I/O measures is data throughput: Bytes/second that can be transferred between disk and memory

CPE 442 io.12 Introduction To Computer Architecture Transaction Processing I/O °Transaction processing: Examples: airline reservations systems, bank ATMs A lot of small changes to a large body of shared data °Transaction processing requirements: Throughput and response time are important Must be gracefully handling certain types of failure °Transaction processing is chiefly concerned with I/O rate: The number of disk accesses per second °Each transaction in typical transaction processing system takes: Between 2 and 10 disk I/Os Between 5,000 and 20,000 CPU instructions per disk I/O

CPE 442 io.13 Introduction To Computer Architecture 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

CPE 442 io.14 Introduction To Computer Architecture Types and Characteristics of I/O Devices °Behavior: how does an I/O device behave? Input: read only Output: write only, cannot read Storage: can be reread and usually rewritten °Partner: Either a human or a machine is at the other end of the I/O device Either feeding data on input or reading data on output °Data rate: The peak rate at which data can be transferred: -Between the I/O device and the main memory -Or between the I/O device and the CPU

CPE 442 io.15 Introduction To Computer Architecture I/O Device Examples 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 Display Output Human30, Network-LAN Input or Output Machine Floppy disk Storage Machine Optical Disk Storage Machine Magnetic Disk Storage Machine 2,000.00

CPE 442 io.16 Introduction To Computer Architecture Magnetic Disk °Purpose: Long term, nonvolatile storage Large, inexpensive, and slow Lowest level in the 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 more 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 Memor y Disk

CPE 442 io.17 Introduction To Computer Architecture Organization of a Hard Magnetic Disk °Typical numbers (depending on the 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 the same number of sectors: Constant bit density: record more sectors on the outer tracks Platters Track Sector

CPE 442 io.18 Introduction To Computer Architecture Magnetic Disk Characteristic °Cylinder: all the tacks under the head at a given point on all surface °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 may: Only be 25% to 33% of the advertised number Sector Track Cylinder Head Platter

CPE 442 io.19 Introduction To Computer Architecture Typical Numbers of a Magnetic Disk °Rotational Latency: Most disks rotate at 3,600 RPM Approximately 16 ms per revolution An average latency to the desired information is halfway around the disk: 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 Sector Track Cylinder Head Platter

CPE 442 io.20 Introduction To Computer Architecture Disk I/O Performance °Disk Access Time = Seek time + Rotational Latency + Transfer time + Controller Time + Queueing Delay °Estimating Queue Length: Utilization = U = Request Rate / Service Rate Mean Queue Length = U / (1 - U) As Request Rate -> Service Rate -Mean Queue Length -> Infinity Processor Queue Disk Controller Disk  Service Rate Request Rate Queue Disk Controller Disk

CPE 442 io.21 Introduction To Computer Architecture Magnetic Disk Examples Characteristics IBM 3090 IBM0663Integral 1820 Disk diameter (inches) Formatted data capacity (MB)22,700 1, MTTF (hours)50, , ,000 Number of arms/box Rotation speed (RPM) 3,600 4,318 3,800 Transfer rate (MB/sec) Power/box (watts) 2, MB/watt Volume (cubic feet) MB/cubic feet

CPE 442 io.22 Introduction To Computer Architecture Reliability and Availability °Two terms that are often confused: Reliability: Is anything broken? Availability: Is the system still available to the user? °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

CPE 442 io.23 Introduction To Computer Architecture Disk Arrays °A new organization of disk storage: Arrays of small and inexpensive disks Increase potential throughput by having 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

CPE 442 io.24 Introduction To Computer Architecture Secondary Storage using DRAMs °There are two ways DRAMs can be used for secondary storage: Sold state disk Expanded storage °Solid state disks: Function just like magnetic disk but: -Much faster -Much more expensive Battery is used to make the system nonvolatile °Expanded storage: A large memory that allows only block transfers to or from main memory

CPE 442 io.25 Introduction To Computer Architecture Optical Compact Disks °Disadvantage: It is a read-only media °Advantages of Optical Compact Disk: It is removable It is inexpensive to manufacture Have the potential to compete with new tape technologies for archival storage

CPE 442 io.26 Introduction To Computer Architecture Graphics Displays °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 N scan lines M pixels

CPE 442 io.27 Introduction To Computer Architecture Graphics Displays and Bit Map °The M x N image is 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 N scan lines M pixels

CPE 442 io.28 Introduction To Computer Architecture Frame Buffer for a 512 x bit Gray-Scale Display °Examples: Bit map value for location (0, 0) = 0000 => Location (0, 0) is black Bit map value for location (511, 511) is 1111 => L(511, 511) is white °Total Number of Bits: 512 x 512 x 4 = 2**20 = 1 Mb = 128 KB Frame Buffer Memory 512 x 512 CRT Display

CPE 442 io.29 Introduction To Computer Architecture 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 the full palette (2**24) of possible colors Use a two-level representation

CPE 442 io.30 Introduction To Computer Architecture Color Map: Reduce the Cost of Color Frame Buffer °Color Map Size is 256-word x 24-bit: 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 Frame Buffer Memory Color CRT Display N 8 bits M N M 256-word x 24-bit Color Map Word 0 Word 1 W 255 : : : Word P Word Q P Q y1 y2 x2x1 y1 y2 x2x1

CPE 442 io.31 Introduction To Computer Architecture Dynamic Feature: Frames and Fields °Traditional CRT is interlaced: Each Frame consist of 2 Fields: -Even Field: Lines 0, 2, 4,... etc. Odd Field: Lines 1, 3, 5,... etc. The screen is updated 30 times per second: -30 Frames per second 60 Fields per second °High resolution (1280 x 1024) workstation monitor: The entire screen is refreshed at 60 to 72 times per second N scan lines M pixels Line 0 Line 1 Line 2 Line 3 Even Field Odd Field

CPE 442 io.32 Introduction To Computer Architecture Bandwidth Requirement for the Frame Buffer °Assume no color map: 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: The frame buffer needs to response at: 240/4 = 60 MHz => 16.6 ns This is faster than most of the low cost SRAM Another reason to use a color map! 1280 x 1024 x 24-bit High Res. Color Monitor Refresh Rate: 60 Hz Frame Buffer 1280 x 1024 x 24 Bandwidth? N DAC

CPE 442 io.33 Introduction To Computer Architecture Bandwidth Requirement for the Frame Buffer (Cont.) °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) 1280 x 1024 x 24-bit High Res. Color Monitor Refresh Rate: 60 Hz Frame Buffer 1280 x 1024 x 8 Bandwidth? N 256-word x 24 -bit Color Map DAC

CPE 442 io.34 Introduction To Computer Architecture Video Random Access Memory (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 N rows N cols DRAM Column Address M-bit Random Port M bits N x M Shift Reg. Row Address M-bit Serial Port

CPE 442 io.35 Introduction To Computer Architecture VRAM versus Fast Page Mode DRAM °Serial Port access is similar to Fast Page Mode operation except: N x M shift register is much faster than the N x M SRAM Fast Page Mode can access any location within the SRAM Serial port operation only allow sequential access (shift out) N rows N cols DRAMColumn Address M-bit Output M bits N x M “SRAM” Row Address N rows N cols DRAM Column Address M-bit Random Port M bits N x M Shift Reg. Row Address M-bit Serial Port Page Mode DRAMVRAM

CPE 442 io.36 Introduction To Computer Architecture VRAM Logic Diagram and Serial Port Timing ARowA CAS_L RAS_L ColA=x TR_L RAS_L, CAS_L, and A can now be used to access the Random port SE_L (Serial Output Enable) D[x] SC (Serial Clock) SD (Serial Data) D[x+1] D[x+2] D[x+3] D[x+4] D[x+5] Transfer Cycle A D OE_L 256K x 8 VRAM 9 8 WE_L CAS_LRAS_L SC SE_L TR_L 8 SD Random PortSerial Port DRAM 512 x 512 x x 8 Shift Reg. 8-bit Serial Port 8-bit Random Port

CPE 442 io.37 Introduction To Computer Architecture Dual Port Frame Buffer using VRAM °High Speed Serial Port Connects to the graphic display Supply data to refresh the image on the screen °Low Speed Random Port Connects to the I/O Bus CPU writes to the Frame Buffer to change the image 1280 x 1024 x 24-bit High Res. Color Monitor Refresh Rate: 60 Hz VRAM Frame Buffer 75 MB/s 256-word x 24 -bit Color Map DAC High Speed Serial Port Low Speed Random Port IO Bus BW < 10 MB/s

CPE 442 io.38 Introduction To Computer Architecture Summary: °Disk I/O Benchmarks: Supercomputer Application: main concern is data rate Transaction Processing: main concern is I/O rate File System: main concern is file access °Three Components of Disk Access Time: Seek Time: advertised to be 12 to 20ms. May be lower in real life. Rotational Latency: 5.6 ms at 5400 RPM and 8.3 ms at 3600 RPM Transfer Time: 2 to 4 MB per second °Graphic Display: Resolution: (M pixels) x (N scan lines) Frame Buffer size and bandwidth requirement can be reduced by placing a Color Map between the Frame Buffer and CRT display VRAM: a DRAM core with a high speed shift register M N