Chapter 6. Storage and Other I/O Topics

Similar documents
Storage. Hwansoo Han

Computer Organization and Structure. Bing-Yu Chen National Taiwan University

Introduction I/O 1. I/O devices can be characterized by Behavior: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec

Chapter 6. Storage and Other I/O Topics

Computer Architecture Computer Science & Engineering. Chapter 6. Storage and Other I/O Topics BK TP.HCM

Chapter 6. Storage and Other I/O Topics. ICE3003: Computer Architecture Fall 2012 Euiseong Seo

Virtual Memory. Reading. Sections 5.4, 5.5, 5.6, 5.8, 5.10 (2) Lecture notes from MKP and S. Yalamanchili

Page 1. Magnetic Disk Purpose Long term, nonvolatile storage Lowest level in the memory hierarchy. Typical Disk Access Time

Chapter 6. Storage and Other I/O Topics

Chapter 6. Storage and Other I/O Topics. ICE3003: Computer Architecture Spring 2014 Euiseong Seo

Chapter 6. Storage & Other I/O

Chapter 6 Storage and Other I/O Topics

Thomas Polzer Institut für Technische Informatik

Chapter 6. Storage and Other I/O Topics. Jiang Jiang

Memory Technology. Chapter 5. Principle of Locality. Chapter 5 Large and Fast: Exploiting Memory Hierarchy 1

I/O CANNOT BE IGNORED

Lecture 23: Storage Systems. Topics: disk access, bus design, evaluation metrics, RAID (Sections )

Storage. CS 3410 Computer System Organization & Programming

I/O CANNOT BE IGNORED

Chapter 6. Storage and Other I/O Topics

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568

COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. 5 th. Edition. Chapter 5. Large and Fast: Exploiting Memory Hierarchy

CSCI-GA Database Systems Lecture 8: Physical Schema: Storage

Appendix D: Storage Systems

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568

Concepts Introduced. I/O Cannot Be Ignored. Typical Collection of I/O Devices. I/O Issues

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

COS 318: Operating Systems. Storage Devices. Jaswinder Pal Singh Computer Science Department Princeton University

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568

COMPUTER ORGANIZATION AND DESIGN

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

COMP283-Lecture 3 Applied Database Management

Memory Hierarchy Y. K. Malaiya

COS 318: Operating Systems. Storage Devices. Vivek Pai Computer Science Department Princeton University

COS 318: Operating Systems. Storage Devices. Kai Li Computer Science Department Princeton University

Computer System Architecture

Storage Systems. Storage Systems

CSCI-UA.0201 Computer Systems Organization Memory Hierarchy

Storage System COSC UCB

Mass-Storage Structure

Administrivia. CMSC 411 Computer Systems Architecture Lecture 19 Storage Systems, cont. Disks (cont.) Disks - review

16:30 18:00, June 20 (Monday), 2011 # (even student IDs) # (odd student IDs) Scope

Readings. Storage Hierarchy III: I/O System. I/O (Disk) Performance. I/O Device Characteristics. often boring, but still quite important

u Covered: l Management of CPU & concurrency l Management of main memory & virtual memory u Currently --- Management of I/O devices

High-Performance Storage Systems

Where We Are in This Course Right Now. ECE 152 Introduction to Computer Architecture Input/Output (I/O) Copyright 2012 Daniel J. Sorin Duke University

CS2410: Computer Architecture. Storage systems. Sangyeun Cho. Computer Science Department University of Pittsburgh

Disks and RAID. CS 4410 Operating Systems. [R. Agarwal, L. Alvisi, A. Bracy, E. Sirer, R. Van Renesse]

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 420, York College. November 21, 2006

I/O, Disks, and RAID Yi Shi Fall Xi an Jiaotong University

Lecture 13. Storage, Network and Other Peripherals

Mass-Storage Structure

Lecture 25: Interconnection Networks, Disks. Topics: flow control, router microarchitecture, RAID

Lecture 29. Friday, March 23 CS 470 Operating Systems - Lecture 29 1

Introduction to I/O and Disk Management

Storage systems. Computer Systems Architecture CMSC 411 Unit 6 Storage Systems. (Hard) Disks. Disk and Tape Technologies. Disks (cont.

Introduction to I/O and Disk Management

CS143: Disks and Files

Adapted from instructor s supplementary material from Computer. Patterson & Hennessy, 2008, MK]

Chapter 11. I/O Management and Disk Scheduling

CS61C : Machine Structures

Computer Science 146. Computer Architecture

Mass-Storage. ICS332 - Fall 2017 Operating Systems. Henri Casanova

Computer Architecture 计算机体系结构. Lecture 6. Data Storage and I/O 第六讲 数据存储和输入输出. Chao Li, PhD. 李超博士

Distributed Video Systems Chapter 5 Issues in Video Storage and Retrieval Part 2 - Disk Array and RAID

Storage Devices for Database Systems

Storage Technologies and the Memory Hierarchy

Contents. Memory System Overview Cache Memory. Internal Memory. Virtual Memory. Memory Hierarchy. Registers In CPU Internal or Main memory

Storage Systems : Disks and SSDs. Manu Awasthi CASS 2018

COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface

CISC 7310X. C11: Mass Storage. Hui Chen Department of Computer & Information Science CUNY Brooklyn College. 4/19/2018 CUNY Brooklyn College

Chapter 10: Mass-Storage Systems. Operating System Concepts 9 th Edition

CSE 120. Operating Systems. March 27, 2014 Lecture 17. Mass Storage. Instructor: Neil Rhodes. Wednesday, March 26, 14

V. Mass Storage Systems

CS3600 SYSTEMS AND NETWORKS

Lecture: Storage, GPUs. Topics: disks, RAID, reliability, GPUs (Appendix D, Ch 4)

Lecture 27: Pot-Pourri. Today s topics: Shared memory vs message-passing Simultaneous multi-threading (SMT) GPUs Disks and reliability

CS61C - Machine Structures. Week 7 - Disks. October 10, 2003 John Wawrzynek

CSE 153 Design of Operating Systems

CMSC 424 Database design Lecture 12 Storage. Mihai Pop

Disks. Storage Technology. Vera Goebel Thomas Plagemann. Department of Informatics University of Oslo

Chapter 10: Mass-Storage Systems

Chapter 9: Peripheral Devices: Magnetic Disks

College of Computer & Information Science Spring 2010 Northeastern University 12 March 2010

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

Monday, May 4, Discs RAID: Introduction Error detection and correction Error detection: Simple parity Error correction: Hamming Codes

Secondary storage. CS 537 Lecture 11 Secondary Storage. Disk trends. Another trip down memory lane

Topics. Lecture 8: Magnetic Disks

Chapter 12: Mass-Storage

Quiz for Chapter 6 Storage and Other I/O Topics 3.10

Chapter 12: Mass-Storage

CS370 Operating Systems

CS152 Computer Architecture and Engineering Lecture 19: I/O Systems

CSE 153 Design of Operating Systems Fall 2018

CS429: Computer Organization and Architecture

CS429: Computer Organization and Architecture

Reliable Computing I

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

CSE 120. Overview. July 27, Day 8 Input/Output. Instructor: Neil Rhodes. Hardware. Hardware. Hardware

Transcription:

Chapter 6 Storage and Other I/O Topics

Introduction I/O devices can be characterized by Behaviour: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections 6.1 Introduction

I/O System Characteristics Performance measures Latency (response time) Throughput (bandwidth) Desktops & embedded systems Mainly interested in response time & diversity of devices Servers Mainly interested in throughput & expandability of devices Dependability is important Particularly for storage devices

Diversity of I/O devices Embedded systems have even more diversity of devices: sensors, actuators, etc.

Disk Storage Nonvolatile, rotating magnetic storage Vary in #platters, rotational speed, density 6.3 Disk Storage

Magnetic Disk Characteristics Disk read/write components 1. Seek time: position the head over the proper track (3 to 13 ms avg) due to locality of disk references the actual average seek time may be only 25% to 33% of the advertised number Head 2. Rotational latency: wait for the desired sector to rotate under the head (½ of 1/RPM converted to ms) 0.5/5400RPM = 5.6ms to 0.5/15000RPM = 2.0ms 3. Transfer time: transfer a block of bits (one or more sectors) under the head to the disk controller s cache (70 to 125 MB/s are typical disk transfer rates in 2008) the disk controller s cache takes advantage of spatial locality in disk accesses cache transfer rates are much faster (e.g., 375 MB/s) Controller + Cache 4. Controller time: the overhead the disk controller imposes in performing a disk I/O access (typically <.2 ms) Track Sector Cylinder Platter

Disk Sectors and Access Each sector records Sector ID Data (512 bytes, 4096 bytes proposed) Error correcting code (ECC) Used to hide defects and recording errors Synchronization fields and gaps Access to a sector involves Queuing delay if other accesses are pending Seek: move the heads Rotational latency Data transfer Controller overhead

Disk Access Example Given 512B sector, 15,000rpm, 4ms average seek time, 100MB/s transfer rate, 0.2ms controller overhead, idle disk Average read time 4ms seek time + ½ / (15,000/60) = 2ms rotational latency + 512 / 100MB/s = 0.005ms transfer time + 0.2ms controller delay = 6.2ms If actual average seek time is 1ms Average read time = 3.2ms

Disk Performance Issues Manufacturers quote average seek time Based on all possible seeks Locality and OS scheduling lead to smaller actual average seek times Smart disk controller allocate physical sectors on disk Present logical sector interface to host ATA/IDE, SATA, SCSI/SAS (serial SCSI) Disk drives include caches Prefetch sectors in anticipation of access Avoid seek and rotational delay

Disk drive characteristics Laptops (others for servers)

Disk Latency & Bandwidth Milestones CDC Wren SG ST41 SG ST15 SG ST39 SG ST37 RSpeed (RPM) 3600 5400 7200 10000 15000 Year 1983 1990 1994 1998 2003 Capacity (Gbytes) 0.03 1.4 4.3 9.1 73.4 Diameter (inches) 5.25 5.25 3.5 3.0 2.5 Interface ST-412 SCSI SCSI SCSI SCSI Bandwidth (MB/s) 0.6 4 9 24 86 Latency (msec) 48.3 17.1 12.7 8.8 5.7 Patterson, CACM Vol 47, #10, 2004 Disk latency is one average seek time plus the rotational latency. Disk bandwidth is the peak transfer time of formatted data from the media (not from the cache).

Latency & Bandwidth Improvements In the time that the disk bandwidth doubles the latency improves by a factor of only 1.2 to 1.4 Bandwidth (MB/s) Latency (msec) Mary Jane Irwin, PSU, 2008 Year of Introduction

Dependability Service accomplishment Service delivered as specified Restoration Service interruption Deviation from specified service Failure Fault: failure of a component May or may not lead to system failure 6.2 Dependability, Reliability, and Availability

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

RAID Redundant Array of Inexpensive (Independent) Disks Use multiple smaller disks (c.f. one large disk) Parallelism improves performance Plus extra disk(s) for redundant data storage Provides fault tolerant storage system Especially if failed disks can be hot swapped RAID 0 No redundancy ( AID?) Just stripe data over multiple disks But it does improve performance

RAID 1 & 2 RAID 1: Mirroring N + N disks, replicate data Write data to both data disk and mirror disk On disk failure, read from mirror RAID 2: Error correcting code (ECC) N + E disks (e.g., 10 + 4) Split data at bit level across N disks Generate E-bit ECC Too complex, not used in practice

RAID 3: Bit-Interleaved Parity N + 1 disks Data striped across N disks at byte level Redundant disk stores parity Read access Read all disks Write access Generate new parity and update all disks On failure Use parity to reconstruct missing data Not widely used

RAID 4: Block-Interleaved Parity N + 1 disks Data striped across N disks at block level Redundant disk stores parity for a group of blocks Read access Read only the disk holding the required block Write access Just read disk containing modified block, and parity disk Calculate new parity, update data disk and parity disk On failure Use parity to reconstruct missing data Not widely used

RAID 3 vs RAID 4

RAID 5: Distributed Parity N + 1 disks Like RAID 4, but parity blocks distributed across disks Avoids parity disk being a bottleneck Widely used

RAID 6: P + Q Redundancy N + 2 disks Like RAID 5, but two lots of parity Greater fault tolerance through more redundancy Multiple RAID More advanced systems give similar fault tolerance with better performance

RAID Summary RAID can improve performance and availability High availability requires hot swapping Assumes independent disk failures Too bad if the building burns down! See Hard Disk Performance, Quality and Reliability http://www.pcguide.com/ref/hdd/perf/index.htm

Flash Storage Nonvolatile semiconductor storage 100 1000 faster than disk Smaller, lower power, more robust But more $/GB (between disk and DRAM) 6.4 Flash Storage

Flash Types NOR flash: bit cell like a NOR gate Random read/write access Used for instruction memory in embedded systems NAND flash: bit cell like a NAND gate Denser (bits/area), but block-at-a-time access Cheaper per GB Used for USB keys, media storage, Flash bits wears out after 1000 s of accesses Not suitable for direct RAM or disk replacement Wear leveling: remap data to less used blocks

Flash storage characteristics

NOR vs NAND flash memory

SST39VF1601-1M x 16 Flash (on ucdragon board)

SST39VF1601 characteristics Organized as 1M x 16 2K word sectors, 32K word blocks Performance: Read access time = 70ns or 90ns Word program time = 7us Sector/block erase time = 18ms Chip erase time = 40ms Check status of write/erase operation via read DQ7 = complement of written value until write complete DQ7=0 during erase, DQ7=1 when erase done

SST39VF1601 command sequences (assert WE# and CE# to write commands)

SST39VF1601 read cycle timing

SST39VF1601 word write T BP = 10μs max