Storage & Peripherals Disks, Networks, and Other Devices.

Slides:



Advertisements
Similar presentations
1 Lecture 22: I/O, Disk Systems Todays topics: I/O overview Disk basics RAID Reminder: Assignment 8 due Tue 11/21.
Advertisements

IT253: Computer Organization
I/O Chapter 8. Outline Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
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.
Faculty of Information Technology Department of Computer Science Computer Organization Chapter 7 External Memory Mohammad Sharaf.
Magnetic Disk Magnetic disks are the foundation of external memory on virtually all computer systems. A disk is a circular platter constructed of.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
RAID Redundant Array of Independent Disks
1  1998 Morgan Kaufmann Publishers Interfacing Processors and Peripherals.
Operating Systems ECE344 Ashvin Goel ECE University of Toronto Disks and RAID.
RAID- Redundant Array of Inexpensive Drives. Purpose Provide faster data access and larger storage Provide data redundancy.
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.
Cache Performance, Interfacing, Multiprocessors CPSC 321 Andreas Klappenecker.
Interfacing Processors and Peripherals Andreas Klappenecker CPSC321 Computer Architecture.
Computer ArchitectureFall 2007 © November 28, 2007 Karem A. Sakallah Lecture 24 Disk IO and RAID CS : Computer Architecture.
1 Storage (cont’d) Disk scheduling Reducing seek time (cont’d) Reducing rotational latency RAIDs.
1  1998 Morgan Kaufmann Publishers Chapter 8 Storage, Networks and Other Peripherals.
Other Disk Details. 2 Disk Formatting After manufacturing disk has no information –Is stack of platters coated with magnetizable metal oxide Before use,
Processor Design 5Z0321 Processor Design 5Z032 Chapter 8 Interfacing Processors and Peripherals Henk Corporaal.
Lecture 17 I/O Optimization. Disk Organization Tracks: concentric rings around disk surface Sectors: arc of track, minimum unit of transfer Cylinder:
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.
1 Lecture 26: Storage Systems Topics: Storage Systems (Chapter 6), other innovations Final exam stats:  Highest: 95  Mean: 70, Median: 73  Toughest.
1  2004 Morgan Kaufmann Publishers Chapters 8 & 9 (partial coverage)
1 Interfacing Processors and Peripherals I/O Design affected by many factors (expandability, resilience) Performance: — access latency — throughput — connection.
1 Lecture 27: Disks, Reliability, SSDs, Processors Topics: HDDs, SSDs, RAID, Intel and IBM case studies Final exam stats:  Highest 91, 18 scores of 82+
S.1 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output Cache Main Memory Secondary Memory (Disk)
Chapter 8: Part II Storage, Network and Other Peripherals.
Computer Organization CS224 Fall 2012 Lesson 51. Measuring I/O Performance  I/O performance depends on l Hardware: CPU, memory, controllers, buses l.
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.
1 Database Systems Storage Media Asma Ahmad 21 st Apr, 11.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Storage Systems.
CSE431 Chapter 6A.1Irwin, PSU, 2008 Chapter 6A: Disk Systems Mary Jane Irwin ( ) [Adapted from Computer Organization.
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 COP 5611 Advanced Operating Systems Adapted from Andy Wang’s slides at FSU.
Lecture 9 of Advanced Databases Storage and File Structure (Part II) Instructor: Mr.Ahmed Al Astal.
Redundant Array of Inexpensive Disks aka Redundant Array of Independent Disks (RAID) Modified from CCT slides.
1 (Based on text: David A. Patterson & John L. Hennessy, Computer Organization and Design: The Hardware/Software Interface, 3 rd Ed., Morgan Kaufmann,
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.
Disks Chapter 5 Thursday, April 5, Today’s Schedule Input/Output – Disks (Chapter 5.4)  Magnetic vs. Optical Disks  RAID levels and functions.
1 Lecture 26: Networks, Storage Topics: router microarchitecture, disks, RAID (Appendix D) Final exam: Monday 30 th Apr 10:30-12:30 Same rules as the midterm.
August 1, 2001Systems Architecture II1 Systems Architecture II (CS ) Lecture 9: I/O Devices and Communication Buses * Jeremy R. Johnson Wednesday,
Auxiliary Memory Magnetic Disk:
1 Ó1998 Morgan Kaufmann Publishers Chapter 8 I/O Systems.
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 )
1 Lecture: Storage, GPUs Topics: disks, RAID, reliability, GPUs (Appendix D, Ch 4)
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 26 Bus Interconnect May 7,
1  2004 Morgan Kaufmann Publishers Page Tables. 2  2004 Morgan Kaufmann Publishers Page Tables.
W4118 Operating Systems Instructor: Junfeng Yang.
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.
1 Computer Architecture & Assembly Language Spring 2001 Dr. Richard Spillman Lecture 19 – IO II.
Multiple Platters.
Disks and RAID.
I/O System Chapter 5 Designed by .VAS.
IT 251 Computer Organization and Architecture
CS 554: Advanced Database System Notes 02: Hardware
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 13 I/O.
Input-output I/O is very much architecture/system dependent
Lecture 28: Reliability Today’s topics: GPU wrap-up Disk basics RAID
Presentation transcript:

Storage & Peripherals Disks, Networks, and Other Devices

Typical System

I/O Device Comparison DeviceBehaviorData Rate (Mbit/sec) KeyboardInput MouseInput Graphics Display Output Network/LANInput/Output Network/WiFiInput/Output11.0 – 54.0 Optical DiskStorage80.0 Magnetic DiskStorage240.0 –

Disk Organization Professor Tod Amon, Lecture Slides, Southern Utah University, Morgan-Kaufmann, 2005

Disk Architecture Magnetic media : Ferris Oxide coating Rotational speed : 5400 – 15,000 RPM Diameter 1 to 3.5 currently Larger in past Tracks – 10,000 to 50,000 per surface Sectors 100 to 500 per track 512 bytes per sector ZBR (Zone Bit Recording) : evenly space bits Cylinder : same track on each platter

Disk Access Components Seek Time – time to position the read/write heads Rotational Latency – time to wait on data to rotate under the read/write head Transfer Time – time to transfer a block of bits Controller Time : disk controller overhead

Average Rotational Latency Slowest Fastest

Time to Read Disk Suppose 512 byte sector 10,000 RPM Average seek time 6ms Transfer Rate of 50 MB/sec Controller overhead of 0.2ms Average disk time = avg seek time + avg rot lat + trans time + controller time

RAID Redundant Array of Inexpensive Disk Goal: Improve performance and reliability by using an array of many small disks as opposed to a few large expensive disks. Introduces redundancy in data storage

RAID Levels RAID Level 0 No redundancy Striping – writes data across multiple disks Parallel access to data RAID Level 1 Mirroring Writes same data “mirror disks” Requires twice as many disks On disk failure, system just reads backup disk

RAID Levels RAID Level 2 Detecting and Correcting Code Not used today RAID Level 3 Bit-Interleaved Parity Keep only enough redundant data to restore lost data Reads and writes go to all disks in the group, with one extra disk to hold check information Parity – sum of data modulo 2 used

Parity XOR (  ) Operation is useful A  B – gives sum A  B  B = A Recovers A if B and the sum is known Data blocks D 1, D 2, D 3, D 4 P = D 1  D 2  D 3  D 4 Any 3 and P allows the missing block to be recovered X1X1 X2X2 X 1  X Parity reference: Parity, Nov. 16,

RAID Levels RAID Level 4 Block-interleave parity Parity stored as blocks and associated with a set of data blocks One check disk associated with group data disks Allows access to “small reads and writes” RAID 3 read or write access each disk RAID 4 read or write may access a single disk Reads check error detection data stored with each sector

RAID 3 vs. RAID 4 Parity RAID 3 RAID 4

RAID Levels RAID Level 5 Distributed Block- Interleaved Parity Parity disk is bottle neck for RAID 4 RAID Level 5 removes by distributing parity across disk set

RAID Level Summary RAID 1 and RAID 5 widely used in servers “hot swapping” allows disks to be replaced w/o shutting the disk array down standby spares – includes extra disks in system that can be used if disk goes down

I/O Buses Shared communication link (one or more wires) Difficult design: — may be bottleneck — length of the bus — number of devices — tradeoffs (buffers for higher bandwidth increases latency) — support for many different devices — cost

Types of Buses processor-memory (short high speed, custom design) backplane (high speed, often standardized, e.g., PCI) I/O (lengthy, different devices, e.g., USB, Firewire)

Transmission Modes Synchronous vs. Asynchronous Synchronous Uses Clock and a synchronous protocol Fast and small All devices must operate at same rate Bus must be short Asynchronous Does not use a clock Requires a handshaking protocol

Contemporary Bus Standards Comparison of two contemporary buses

Buses – Other Issues Bus Arbitration: daisy chain arbitration (not very fair) centralized arbitration (requires an arbiter), e.g., PCI collision detection, e.g., Ethernet Operating system: Polling Interrupts direct memory access (DMA)

I/O Options