1 Devices: Magnetic Disks Sector Track Cylinder Head Platter Purpose: – Long-term, nonvolatile storage – Large, inexpensive, slow level in the storage.

Slides:



Advertisements
Similar presentations
I/O InterfaceCS510 Computer ArchitecturesLecture Lecture 17 I/O Interfaces and I/O Busses.
Advertisements

IT253: Computer Organization
Computer Architecture
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
Input/OutputCS510 Computer ArchitecturesLecture Lecture 16 Input and Output Devices and Systems.
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.
Interfacing Processors and Peripherals Andreas Klappenecker CPSC321 Computer Architecture.
Disk Storage SystemsCSCE430/830 Disk Storage Systems CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Yifeng Zhu (U. Maine) Fall,
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
ENGS 116 Lecture 171 Introduction to I/O Vincent Berk November 19, 2008 Reading for today: Sections 4.4 – 4.9 Reading for Monday: Sections 6.1 – 6.4 Reading.
JDK.F98 Slide 1 Lecture 25: I/O Introduction Prof. John Kubiatowicz Computer Science 252 Fall 1998.
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Device Management.
COMP381 by M. Hamdi 1 Input/Output Systems. COMP381 by M. Hamdi 2 Motivation: Who Cares About I/O? CPU Performance: 60% per year I/O system performance.
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.
CS252/Kubiatowicz Lec /10/99 CS252 Graduate Computer Architecture Lecture 21 I/O Introduction Prof. John Kubiatowicz Computer Science 252 Fall 1998.
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.
Storage Systems Types of Storage Devices:Types of Storage Devices: magnetic disks, magnetic tapes, automated tape libraries, CDs, DVDs, and flash memories.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
IO System CPU Performance: 60% per year
Storage & Peripherals Disks, Networks, and Other Devices.
3/11/2002CSE Input/Output Input/Output Control Datapath Memory Processor Input Output Memory Input Output Network Control Datapath Processor.
I/O – Chapter 8 Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
The Big Picture: Where are We Now?
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
1 (Based on text: David A. Patterson & John L. Hennessy, Computer Organization and Design: The Hardware/Software Interface, 3 rd Ed., Morgan Kaufmann,
2: Computer-System Structures
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
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.
CS2100 Computer Organisation Input/Output (AY2010/2011) Semester 2 Adapted from.
Lecture 35: Chapter 6 Today’s topic –I/O Overview 1.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
MBG 1 CIS501, Fall 99 Lecture 18: Input/Output (I/O): Buses and Peripherals Michael B. Greenwald Computer Architecture CIS 501 Fall 1999.
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.
Disk Storage SystemsCSCE430/830 Disk Storage Systems CSCE430/830 Computer Architecture Lecturer: Prof. Hong Jiang Courtesy of Yifeng Zhu (U. Maine) Fall,
CS2100 Computer Organisation Input/Output – Own reading only (AY2015/6) Semester 1 Adapted from David Patternson’s lecture slides:
Csci 136 Computer Architecture II – IO and Storage Systems Xiuzhen Cheng
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Adapted from Computer Organization and Design, Patterson & Hennessy ECE232: Hardware Organization and Design Part 17: Input/Output Chapter 6
Input/Output Professor Alvin R. Lebeck Computer Science 220 Fall 2001.
Lecture 1: Review of Computer Organization
1 Lecture 1: Computer System Structures We go over the aspects of computer architecture relevant to OS design  overview  input and output (I/O) organization.
Overview von Neumann Architecture Computer component Computer function
Review of Computer System Organization. Computer Startup For a computer to start running when it is first powered up, it needs to execute an initial program.
IT3002 Computer Architecture
MBG 1 CIS501, Fall 99 Lecture 19: Input/Output (I/O): Buses and Peripherals Michael B. Greenwald Computer Architecture CIS 501 Fall 1999.
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.
JDK.F98 Slide 1 Lecture 26: I/O Continued Prof. John Kubiatowicz Computer Science 252 Fall 1998.
بسم الله الرحمن الرحيم 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.
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.
10/15: Lecture Topics Input/Output –Types of I/O Devices –How devices communicate with the rest of the system communicating with the processor communicating.
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 25 I/O Systems May 2,
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview: Using Hardware.
CMSC 611: Advanced Computer Architecture Shared Memory Directory Protocol Most slides adapted from David Patterson. Some from Mohomed Younis.
TYPES OF MEMORY.
Chapter 2: Computer-System Structures
Computer Architecture
Virtual Memory Main memory can act as a cache for the secondary storage (disk) Advantages: illusion of having more physical memory program relocation protection.
Lecture 21: Storage Systems
CS 704 Advanced Computer Architecture
Chapter 5: Computer Systems Organization
Presentation transcript:

1 Devices: Magnetic Disks Sector Track Cylinder Head Platter Purpose: – Long-term, nonvolatile storage – Large, inexpensive, slow level in the storage hierarchy Characteristics: – Seek Time (~8 ms avg) ป positional latency ป rotational latency Transfer rate –About a sector per ms (5-15 MB/s) –Blocks Capacity –Gigabytes –Quadruples every 3 years (aerodynamics) 7200 RPM = 120 RPS => 8 ms per rev ave rot. latency = 4 ms 128 sectors per track => 0.25 ms per sector 1 KB per sector => 16 MB / s Response time = Queue + Controller + Seek + Rot + Xfer Service time

2 Disk Device Terminology Disk Latency = Queuing Time + Controller time + Seek Time + Rotation Time + Xfer Time Order of magnitude times for 4K byte transfers: Seek: 8 ms or less Rotate: rpm Xfer: rpm

3 Tape vs. Disk Longitudinal tape uses same technology as hard disk; tracks its density improvements Disk head flies above surface, tape head lies on surface Disk fixed, tape removable Inherent cost-performance based on geometries: fixed rotating platters with gaps (random access, limited area, 1 media / reader) vs. removable long strips wound on spool (sequential access, "unlimited" length, multiple / reader) New technology trend: Helical Scan (VCR, Camcoder, DAT) Spins head at angle to tape to improve density

4 Current Drawbacks to Tape Tape wear out: –Helical 100s of passes to 1000s for longitudinal Head wear out: –2000 hours for helical Both must be accounted for in economic / reliability model Long rewind, eject, load, spin-up times; not inherent, just no need in marketplace (so far) Designed for archival

5 Library vs. Storage Getting books today as quaint as the way I learned to program –punch cards, batch processing –wander thru shelves, anticipatory purchasing Cost $1 per book to check out $30 for a catalogue entry 30% of all books never checked out Write only journals? Digital library can transform campuses Will have lecture on getting electronic information

6 Relative Cost of Storage Technology—Late 1995/Early 1996 Magnetic Disks 5.25”9.1 GB$2129$0.23/MB $1985$0.22/MB 3.5”4.3 GB$1199$0.27/MB $999$0.23/MB 2.5”514 MB$299$0.58/MB 1.1 GB$345$0.33/MB Optical Disks 5.25”4.6 GB$ $0.41/MB $ $0.39/MB PCMCIA Cards Static RAM4.0 MB$700$175/MB Flash RAM40.0 MB$1300$32/MB 175 MB$3600$20.50/MB

7 Connecting I/O Devices to CPU Bus –shared communication link between the subsystems –low cost-- a single set of wires is shared –versatility--new devices can be added or removed easily –create communication “bottleneck” –I/O buses can be lengthy and may have many types of devices connected

8 Bus Design Decisions

9 Bus Standards

10 Interfacing Storage Devices to the CPU How physical connection of the I/O bus should be made –to memory –to cache Memory-mapped I/O or dedicated I/O bus –Memory-mapped: portions of memory address are assigned to I/O devices –I/O bus: has dedicated I/O opcodes Use Direct Memory Access (DMA) to decrease CPU load I/O devices usually concern multiple operations

11 I/O Interface Independent I/O Bus CPU Interface Peripheral Memory memory bus Seperate I/O instructions (in,out) CPU Interface Peripheral Memory Lines distinguish between I/O and memory transfers common memory & I/O bus VME bus Multibus-II Nubus 40 Mbytes/sec optimistically 10 MIP processor completely saturates the bus!

12 Memory Mapped I/O Single Memory & I/O Bus No Separate I/O Instructions CPU Interface Peripheral Memory ROM RAM I/O $ CPU L2 $ Memory Bus MemoryBus Adaptor I/O bus

13 Programmed I/O (Polling) CPU IOC device Memory Is the data ready? read data store data yes no done? no yes busy wait loop not an efficient way to use the CPU unless the device is very fast! but checks for I/O completion can be dispersed among computationally intensive code

14 Interrupt Driven Data Transfer CPU IOC device Memory add sub and or nop read store... rti memory user program (1) I/O interrupt (2) save PC (3) interrupt service addr interrupt service routine (4) Device xfer rate = 10 MBytes/sec => 0.1 x 10 sec/byte => 0.1 ต sec/byte => 1000 bytes = 100 ต sec 1000 transfers x 100 ต secs = 100 ms = 0.1 CPU seconds -6 User program progress only halted during actual transfer 1000 transfers at 1 ms each: ต sec per interrupt 1000 interrupt 98 ต sec each = 0.1 CPU seconds Still far from device transfer rate! 1/2 in interrupt overhead

15 Direct Memory Access CPU IOC device Memory DMAC Time to do 1000 xfers at 1 msec each: 1 DMA set-up 50 ต sec 1 2 ต sec 1 interrupt service 48 ต sec.0001 second of CPU time CPU sends a starting address, direction, and length count to DMAC. Then issues "start". DMAC provides handshake signals for Peripheral Controller, and Memory Addresses and handshake signals for Memory. 0 ROM RAM Peripherals DMAC n Memory Mapped I/O

16 Input/Output Processors CPU IOP Mem D1 D2 Dn... main memory bus I/O bus CPU IOP issues instruction to IOP interrupts when done (1) memory (2) (3) (4) Device to/from memory transfers are controlled by the IOP directly. IOP steals memory cycles. OP Device Address target device where cmnds are looks in memory for commands OP Addr Cnt Other what to do where to put data how much special requests

17 I/O Performance Measures I/O bandwidth = throughput = # of tasks completed by the server in unit time Response Time = Latency = time from task placed in queue to task completed by server

18 Throughput versus Response Time Response time = Queue + Device Service time 100% Response Time (ms) Throughput (% total BW) % Proc Queue IOCDevice Metrics: Response Time Throughput

19 Response Time vs. Productivity Interactive environments: Each interaction or transaction has 3 parts: –Entry Time: time for user to enter command –System Response Time: time between user entry & system replies –Think Time: Time from response until user begins next command 1st transaction 2nd transaction What happens to transaction time as shrink system response time from 1.0 sec to 0.3 sec? –With Keyboard: 4.0 sec entry, 9.4 sec think time –With Graphics: 0.25 sec entry, 1.6 sec think time

20 Response Time & Productivity 0.7sec off response saves 4.9 sec (34%) and 2.0 sec (70%) total time per transaction => greater productivity Another study: everyone gets more done with faster response, but novice with fast response = expert with slow

21 Transaction time comparison

22 Processor Interface Issues Processor interface –Interrupts –Memory mapped I/O I/O Control Structures –Polling –Interrupts –DMA –I/O Controllers –I/O Processors Capacity, Access Time, Bandwidth Interconnections –Busses

23 Relationship to Processor Architecture I/O instructions have largely disappeared Interrupt vectors have been replaced by jump tables PC <- M [ IVA + interrupt number ] PC <- IVA + interrupt number Interrupts: –Stack replaced by shadow registers –Handler saves registers and re-enables higher priority int's –Interrupt types reduced in number; handler must query interrupt controller

24 Relationship to Processor Architecture Caches required for processor performance cause problems for I/O –Flushing is expensive, I/O polutes cache –Solution is borrowed from shared memory multiprocessors "snooping" Virtual memory frustrates DMA Load/store architecture at odds with atomic operations – load locked, store conditional Stateful processors hard to context switch

25 Summary Disk industry growing rapidly, improves: –bandwidth 40%/yr, –areal density 60%/year, $/MB faster? queue + controller + seek + rotate + transfer Advertised average seek time benchmark much greater than average seek time in practice Response time vs. Bandwidth tradeoffs Value of faster response time: –0.7sec off response saves 4.9 sec and 2.0 sec (70%) total time per transaction => greater productivity –everyone gets more done with faster response, but novice with fast response = expert with slow Processor Interface: today peripheral processors, DMA, I/O bus, interrupts

26 Summary: Relationship to Processor Architecture I/O instructions have disappeared Interrupt vectors have been replaced by jump tables Interrupt stack replaced by shadow registers Interrupt types reduced in number Caches required for processor performance cause problems for I/O Virtual memory frustrates DMA Load/store architecture at odds with atomic operations Stateful processors hard to context switch