Memory/Storage Architecture Lab Computer Architecture Lecture Storage and Other I/O Topics.

Slides:



Advertisements
Similar presentations
I/O Chapter 8. Outline Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
Advertisements

CS224 Spring 2011 Computer Organization CS224 Chapter 6A: Disk Systems With thanks to M.J. Irwin, D. Patterson, and J. Hennessy for some lecture slide.
RAID Redundant Array of Inexpensive Disks Presented by Greg Briggs.
1 Lecture 18: RAID n I/O bottleneck n JBOD and SLED n striping and mirroring n classic RAID levels: 1 – 5 n additional RAID levels: 6, 0+1, 10 n RAID usage.
CSCE430/830 Computer Architecture
CSE521: Introduction to Computer Architecture Mazin Yousif I/O Subsystem RAID (Redundant Array of Independent Disks)
Lecture 36: Chapter 6 Today’s topic –RAID 1. RAID Redundant Array of Inexpensive (Independent) Disks –Use multiple smaller disks (c.f. one large disk)
CSCE 212 Chapter 8 Storage, Networks, and Other Peripherals Instructor: Jason D. Bakos.
Lecture Objectives: 1)Explain the limitations of flash memory. 2)Define wear leveling. 3)Define the term IO Transaction 4)Define the terms synchronous.
Avishai Wool lecture Introduction to Systems Programming Lecture 8 Input-Output.
Input-output and Communication Prof. Sin-Min Lee Department of Computer Science.
Computer ArchitectureFall 2007 © November 28, 2007 Karem A. Sakallah Lecture 24 Disk IO and RAID CS : Computer Architecture.
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
1 Lecture 26: Storage Systems Topics: Storage Systems (Chapter 6), other innovations Final exam stats:  Highest: 95  Mean: 70, Median: 73  Toughest.
1 Lecture 23: Multiprocessors Today’s topics:  RAID  Multiprocessor taxonomy  Snooping-based cache coherence protocol.
S.1 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output Cache Main Memory Secondary Memory (Disk)
I/O Systems and Storage Systems May 22, 2000 Instructor: Gary Kimura.
Chapter 6 Storage and Other I/O Topics CprE 381 Computer Organization and Assembly Level Programming, Fall 2013 Zhao Zhang Iowa State University Revised.
Redundant Array of Inexpensive Disks (RAID). Redundant Arrays of Disks Files are "striped" across multiple spindles Redundancy yields high data availability.
ICOM 6005 – Database Management Systems Design Dr. Manuel Rodríguez-Martínez Electrical and Computer Engineering Department Lecture 6 – RAID ©Manuel Rodriguez.
Storage Systems CSE 598d, Spring 2007 Lecture 5: Redundant Arrays of Inexpensive Disks Feb 8, 2007.
Chapter 6 RAID. Chapter 6 — Storage and Other I/O Topics — 2 RAID Redundant Array of Inexpensive (Independent) Disks Use multiple smaller disks (c.f.
Storage & Peripherals Disks, Networks, and Other Devices.
Lecture 4 1 Reliability vs Availability Reliability: Is anything broken? Availability: Is the system still available to the user?
CSE 321b Computer Organization (2) تنظيم الحاسب (2) 3 rd year, Computer Engineering Winter 2015 Lecture #4 Dr. Hazem Ibrahim Shehata Dept. of Computer.
Lecture 17: Storage and I/O EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2014, Dr.
Computer Input & Output Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University.
C OMPUTER O RGANIZATION AND D ESIGN The Hardware/Software Interface 5 th Edition Chapter 5 Storage and Other I/O Topics (condensed lecture)
I/O – Chapter 8 Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
1 Chapter 7: Storage Systems Introduction Magnetic disks Buses RAID: Redundant Arrays of Inexpensive Disks.
Disk Access. DISK STRUCTURE Sector: Smallest unit of data transfer from/to disk; 512B 2/4/8 adjacent sectors transferred together: Blocks Read/write heads.
RAID REDUNDANT ARRAY OF INEXPENSIVE DISKS. Why RAID?
I/O 1 Computer Organization II © McQuain Introduction I/O devices can be characterized by – Behavior: input, output, storage – Partner:
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
Lecture 16: Storage and I/O EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2014, Dr.
I/O Computer Organization II 1 Introduction I/O devices can be characterized by – Behavior: input, output, storage – Partner: human or machine – Data rate:
Lecture 35: Chapter 6 Today’s topic –I/O Overview 1.
I/O Computer Organization II 1 Interconnecting Components Need interconnections between – CPU, memory, I/O controllers Bus: shared communication channel.
Computer Organization CS224 Fall 2012 Lessons 47 & 48.
CS2100 Computer Organisation Input/Output – Own reading only (AY2015/6) Semester 1 Adapted from David Patternson’s lecture slides:
Introduction I/O devices can be characterized by – Behaviour: input, output, storage – Partner: human or machine – Data rate: bytes/sec, transfers/sec.
Chapter 6 Storage and Other I/O Topics. Chapter 6 — Storage and Other I/O Topics — 2 Introduction I/O bus connections §6.1 Introduction.
Chapter 6 Storage and Other I/O Topics. Chapter 6 — Storage and Other I/O Topics — 2 Introduction I/O devices can be characterized by Behaviour: input,
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.
Chapter 6 Storage and Other I/O Topics. Chapter 6 — Storage and Other I/O Topics — 2 Introduction I/O devices can be characterized by Behaviour: input,
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.
1 Lecture 14 Buses and I/O Data Transfer Peng Liu
CS 6290 I/O and Storage Milos Prvulovic. Storage Systems I/O performance (bandwidth, latency) –Bandwidth improving, but not as fast as CPU –Latency improving.
1 Lecture 27: Disks Today’s topics:  Disk basics  RAID  Research topics.
1 Lecture 23: Storage Systems Topics: disk access, bus design, evaluation metrics, RAID (Sections )
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.
Enhanced Availability With RAID CC5493/7493. RAID Redundant Array of Independent Disks RAID is implemented to improve: –IO throughput (speed) and –Availability.
Chapter 6 Storage and Other I/O Topics. Chapter 6 — Storage and Other I/O Topics — 2 Introduction I/O devices can be characterized by Behaviour: input,
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.
CMSC 611: Advanced Computer Architecture I/O & Storage Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted.
CSCE 385: Computer Architecture Spring 2014 Dr. Mike Turi I/O.
I/O Errors 1 Computer Organization II © McQuain RAID Redundant Array of Inexpensive (Independent) Disks – Use multiple smaller disks (c.f.
I/O Lecture notes from MKP and S. Yalamanchili.
Morgan Kaufmann Publishers Storage and Other I/O Topics
Multiple Platters.
Morgan Kaufmann Publishers Storage and Other I/O Topics
Introduction I/O devices can be characterized by I/O bus connections
Lecture 13 I/O.
Lecture 28: Reliability Today’s topics: GPU wrap-up Disk basics RAID
Peng Liu Lecture 14 I/O Peng Liu
CSC3050 – Computer Architecture
Presentation transcript:

Memory/Storage Architecture Lab Computer Architecture Lecture Storage and Other I/O Topics

2 Memory/Storage Architecture Lab Introduction  I/O devices can be characterized by Behavior: input, output, input/output, or storage Partner: human or machine Data rate: bytes/sec, transfers/sec  I/O bus connections

3 Memory/Storage Architecture Lab Diverse I/O Devices DeviceBehaviorPartnerData rate (Mbit/sec) Keyboardinputhuman Mouseinputhuman Voice inputinputhuman Sound inputinputmachine Scannerinputhuman Voice outputoutputhuman Sound outputoutputhuman Laser printeroutputhuman Graphics displayoutputhuman800~8000 Cable Modeminput or outputmachine0.1280~ Network/ LANinput or outputmachine100~10000 Network/ wireless LANinput or outputmachine11~54 Optical diskstoragemachine80~220 Flash memorystoragemachine32~200 Magnetic diskstoragemachine800~3000

4 Memory/Storage Architecture Lab Dependability  Fault: failure of a component May or may not lead to system failure Service accomplishment Service delivered as specified Service interruption Deviation from specified service FailureRestoration

5 Memory/Storage Architecture Lab Dependability Measures  Reliability: mean time to failure (MTTF)  Service interruption: mean time to repair (MTTR)  Mean time between failures MTBF = MTTF + MTTR  Availability = MTTF / (MTTF + MTTR)  Improving Availability Increase MTTF: fault avoidance, fault tolerance, fault forecasting Reduce MTTR: improved tools and processes for diagnosis and repair

Memory/Storage Architecture Lab I/O Management

7 Memory/Storage Architecture Lab I/O Commands  I/O devices are managed by I/O controller hardware Transfers data to/from device Synchronizes operations with software  Command registers Cause device to do something  Status registers Indicate what the device is doing and occurrence of errors  Data registers Write: transfer data to a device Read: transfer data from a device

8 Memory/Storage Architecture Lab I/O Register Mapping  Memory mapped I/O I/O Registers are addressed in same space as memory Address decoder distinguishes between them OS uses address translation mechanism to make them only accessible to kernel  I/O instructions Separate instructions to access I/O registers Can only be executed in kernel mode Example: x86

9 Memory/Storage Architecture Lab Polling  Periodically check I/O status register If device ready, do operation; otherwise wait If error, take action  Common in small or low-performance real-time embedded systems Predictable timing Low hardware cost  In other systems, wastes CPU time

10 Memory/Storage Architecture Lab Interrupts  When a device is ready or error occurs Controller interrupts CPU  Interrupt is like an exception But not synchronized to instruction execution Can invoke handler between instructions Cause information often identifies the interrupting device  Priority interrupts Devices needing more urgent attention get higher priority Can interrupt handler for a lower priority interrupt

11 Memory/Storage Architecture Lab I/O Data Transfer  Polling and interrupt-driven I/O CPU transfers data between memory and I/O data registers Time consuming for high-speed devices  Direct memory access (DMA) OS provides starting address in memory Special I/O controller (DMA controller) transfers to/from memory autonomously DMA controller interrupts on completion or error

12 Memory/Storage Architecture Lab DMA/Cache Interaction  If DMA writes to a memory block that is cached Cached copy becomes stale  If write-back cache has dirty block, and DMA reads memory block Reads stale data  Need to ensure cache coherence Invalidate blocks from cache on DMA writes to memory blocks Flush blocks from cache on DMA reads from memory blocks Or use non-cacheable memory locations for I/O

13 Memory/Storage Architecture Lab DMA/VM Interaction  OS uses virtual addresses for memory DMA blocks may not be contiguous in physical memory  Should DMA use virtual addresses? Would require controller to do translation  If DMA uses physical addresses May need to break transfers into page-sized chunks Or chain multiple transfers Or allocate contiguous physical pages for DMA

Memory/Storage Architecture Lab RAID (Redundant Array of Inexpensive Disks)

15 Memory/Storage Architecture Lab RAID (Redundant Array of Inexpensive Disks)  Data is Striped for improved performance Distributes data over multiple disks to make them appear as a single fast large disk Allows multiple I/Os to be serviced in parallel − Multiple independent requests serviced in parallel − A block request may be serviced in parallel by multiple disks  Data is Redundant for improved reliability Large number of disks in an array lowers the reliability of the array − Reliability of N disks = Reliability of 1 disk /N − Example: 50,000 hours / 70 disks = 700 hours Disk System MTTF drops from 6 years to 1 month Arrays without redundancy are too unreliable to be useful From lecture slides by Professor Mazin Yousif

16 Memory/Storage Architecture Lab  RAID 0 (Non-redundant) Stripes Data; but does not employ redundancy Lowest cost of any RAID Best Write performance - no redundant information Any single disk failure is catastrophic Used in environments where performance is more important than reliability.

17 Memory/Storage Architecture Lab D0D3D2D1 D4 D7 D6D5 D8 D11 D10 D9 D12 D15 D14D13 D19 D18D17D16 Stripe Unit Stripe Disk 1Disk 4Disk 3Disk 2

18 Memory/Storage Architecture Lab  RAID 1 (Mirrored) Uses twice as many disks as non-redundant arrays - 100% Capacity Overhead - Two copies of data are maintained Data is simultaneously written to both arrays Data is read from the array with shorter queuing, seek and rotation delays - Best Read Performance. When a disk fails, mirrored copy is still available Used in environments where availability and performance (I/O rate) are more important than storage efficiency.

19 Memory/Storage Architecture Lab  RAID 4 (Block Interleaved Parity) Data is block- interleaved (Striping Units) Write requests update the data block; and the parity block. Generating parity requires 4 I/O accesses (Read/Modify/Write) All writes access the parity disk – parallel service of write requests is not possible

20 Memory/Storage Architecture Lab D0’D0PD3D2D1 + + Old Parity (2. Read) Old Data 1. Read New Data D0’P’D3D2D1 3. Write New Data 4. Write New Parity

21 Memory/Storage Architecture Lab  RAID 5 (Block-Interleaved Distributed Parity) Eliminates the parity disk bottleneck in RAID 4 - Distributes parity among all the disks Parallel service of write requests is now possible as long as they access disjoint disk

22 Memory/Storage Architecture Lab D0PD3D2D1 D4D7PD6D5 D8D11D10PD9 D12D15D14D13P PD19D18D17D16 Stripe Unit Stripe

23 Memory/Storage Architecture Lab  RAID 6 (P + Q Redundancy) Uses Reed-Solomon codes to protect against up to 2 disk failures Two sets of parity P & Q Generating parity requires 6 I/O accesses (Read/Modify/Write) - update both P & Q Used in environments that require stringent reliability

24 Memory/Storage Architecture Lab RAID Summary  RAID can improve performance and availability High availability requires hot swapping  Assumes independent disk failures Too bad if the building burns down!

25 Memory/Storage Architecture Lab Concluding Remarks  I/O performance measures Throughput, response time Dependability and cost also important  Buses used to connect CPU, memory, I/O controllers Polling, interrupts, DMA  RAID Improves performance and dependability