Storage. CS 3410 Computer System Organization & Programming

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

Chapter 6. Storage and Other I/O Topics

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

Storage. Hwansoo Han

Mass-Storage Structure

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

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

CS 316: Multicore/GPUs

Chapter 6. Storage and Other I/O Topics

Chapter 6 Storage and Other I/O Topics

Introduction to I/O and Disk Management

CS143: Disks and Files

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

Introduction to I/O and Disk Management

CSE 451: Operating Systems Spring Module 12 Secondary Storage

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

Computer System Architecture

CSE 451: Operating Systems Spring Module 12 Secondary Storage. Steve Gribble

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

COMP283-Lecture 3 Applied Database Management

CSE 153 Design of Operating Systems

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

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

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

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

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

CSCI-UA.0201 Computer Systems Organization Memory Hierarchy

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

Mass-Storage Structure

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

Chapter 6. Storage & Other I/O

I/O CANNOT BE IGNORED

Chapter 6. Storage and Other I/O Topics

Storage Devices for Database Systems

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

Today: Secondary Storage! Typical Disk Parameters!

Thomas Polzer Institut für Technische Informatik

CS3600 SYSTEMS AND NETWORKS

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

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

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

Chapter 12: Mass-Storage

Storage System COSC UCB

Database Systems II. Secondary Storage

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

Memory Hierarchy Y. K. Malaiya

CSE 153 Design of Operating Systems Fall 2018

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

Storage Technologies and the Memory Hierarchy

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

CS370 Operating Systems

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

CS429: Computer Organization and Architecture

CS429: Computer Organization and Architecture

V. Mass Storage Systems

Professor: Pete Keleher! Closures, candidate keys, canonical covers etc! Armstrong axioms!

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

Data Storage and Query Answering. Data Storage and Disk Structure (2)

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

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

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

1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

Chapter 12: Mass-Storage

Chapter 12: Mass-Storage

Chapter 10: Mass-Storage Systems

A track on a magnetic disk is a concentric rings where data is stored.

STORING DATA: DISK AND FILES

Principles of Data Management. Lecture #2 (Storing Data: Disks and Files)

External Memory. Computer Architecture. Magnetic Disk. Outline. Data Organization and Formatting. Write and Read Mechanisms

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017

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

Storage Systems. Storage Systems

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

CSE 451: Operating Systems Winter Secondary Storage. Steve Gribble. Secondary storage

CHAPTER 12: MASS-STORAGE SYSTEMS (A) By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

Chapter 10: Mass-Storage Systems

Random-Access Memory (RAM) CS429: Computer Organization and Architecture. SRAM and DRAM. Flash / RAM Summary. Storage Technologies

CS370 Operating Systems

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

UNIT 2 Data Center Environment

STORAGE SYSTEMS. Operating Systems 2015 Spring by Euiseong Seo

CS 261 Fall Mike Lam, Professor. Memory

Lecture 16: Storage Devices

Input/Output. Chapter 5: I/O Systems. How fast is I/O hardware? Device controllers. Memory-mapped I/O. How is memory-mapped I/O done?

16/06/56. Secondary Storage. Secondary Storage. Secondary Storage The McGraw-Hill Companies, Inc. All rights reserved.

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

Computer Science 61C Spring Friedland and Weaver. Input/Output

CSE 451: Operating Systems Winter Lecture 12 Secondary Storage. Steve Gribble 323B Sieg Hall.

Mass-Storage. ICS332 Operating Systems

Where Have We Been? Ch. 6 Memory Technology

Chapter 13: Mass-Storage Systems. Disk Scheduling. Disk Scheduling (Cont.) Disk Structure FCFS. Moving-Head Disk Mechanism

Chapter 13: Mass-Storage Systems. Disk Structure

OPERATING SYSTEMS CS3502 Spring Input/Output System Chapter 9

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

Wednesday, April 25, Discs RAID: Introduction Error detection and correction Error detection: Simple parity Error correction: Hamming Codes

Computer Organization and Technology External Memory

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

Database Management Systems, 2nd edition, Raghu Ramakrishnan, Johannes Gehrke, McGraw-Hill

Chapter 9: Peripheral Devices: Magnetic Disks

Transcription:

Storage CS 3410 Computer System Organization & Programming These slides are the product of many rounds of teaching CS 3410 by Deniz Altinbuke, Kevin Walsh, and Professors Weatherspoon, Bala, Bracy, and Sirer.

Challenge How do we store lots of data for a long time Disk (Hard disk, floppy disk, ) Tape (cassettes, backup, VHS, ) CDs/DVDs

Challenge How do we store lots of data for a long time Disk (Hard disk, floppy disk, Solid State Disk (SSD) Tape (cassettes, backup, VHS, ) CDs/DVDs Non-Volitile Persistent Memory (NVM; e.g. 3D Xpoint)

I/O System Characteristics Dependability is important Particularly for storage devices 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

Memory Hierarchy 16 KB 512 KB 2 GB 300 GB 1 TB registers/l1 L2 DRAM Disk Tape 2 ns, random access 5 ns, random access 20-80 ns, random access 2-8 ms, random access 100s, sequential access

Memory Hierarchy 128 KB 4 MB 256 GB 6 TB 30 TB registers/l1 L2 DRAM Disk SSD 2 ns, random access 5 ns, random access 20-80 ns, random access 2-8 ms, random access 100ns-10us, random access Millions of IOPS (I/O per sec)

Memory Hierarchy 4 MB 128 KB 256 GB registers/l1 L2 DRAM 2 ns, random access 5 ns, random access 20-80 ns, random access 1 TB 6 TB 30 TB Non-volatile memory Disk SSD 20-100 ns, random access 2-8 ms, random access 100ns-10us, random access Millions of IOPS (I/O per sec

Memory Hierarchy 30 TB 2 45 B 256 TB 2 48 B 10 PB 2 53 B 1 EB 2 60 B 0.1 YB 2 67 B SSD Server Rack of Servers Data Center Cloud 100ns-10us, random access Millions of IOPS (I/O per sec 10s of Disks 10s of Servers 10-100s of Servers 10-100s of Data Centers

The Rise of Cloud Computing How big is Big Data in the Cloud? Exabytes: Delivery of petabytes of storage daily Titan tech boom, randy katz, 2008

The Rise of Cloud Computing How big is Big Data in the Cloud? Most of the worlds data (and computation) hosted by few companies

The Rise of Cloud Computing How big is Big Data in the Cloud? Most of the worlds data (and computation) hosted by few companies

The Rise of Cloud Computing The promise of the Cloud ubiquitous, convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider NIST Cloud Definition interaction.

The Rise of Cloud Computing The promise of the Cloud ubiquitous, convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider interaction. NIST Cloud Definition

Tapes Same basic principle for 8-tracks, cassettes, VHS,... Ferric Oxide Powder: ferromagnetic material During recording, the audio signal is sent through the coil of wire to create a magnetic field in the core. During playback, the motion of the tape creates a varying magnetic field in the core and therefore a signal in the coil. 0 0 1 0 1 0 1 0 1

Disks & CDs Disks use same magnetic medium as tapes concentric rings (not a spiral) CDs & DVDs use optics and a single spiral track

Disk Physics Typical parameters : 1 spindle 1 arm assembly 1-4 platters 1-2 sides/platter 1 head per side (but only 1 active head at a time) 700-20480 tracks/surface 16-1600 sectors/track

Accessing a disk requires: Disk Accesses specify sector: C (cylinder), H (head), and S (sector) specify size: number of sectors to read or write specify memory address Performance: seek time: move the arm assembly to track Rotational delay: wait for sector to come around transfer time: get the bits off the disk Controller time: time for setup Sector Seek Time Track Rotation Delay

Example Average time to read/write 512-byte sector Disk rotation at 10,000 RPM Seek time: 6ms Transfer rate: 50 MB/sec Controller overhead: 0.2 ms Average time: Seek time + rotational delay + transfer time + controller overhead 6ms + 0.5 rotation/(10,000 RPM) + 0.5KB/(50 MB/sec) + 0.2ms 6.0 + 3.0 + 0.01 + 0.2 = 9.2ms

Disk Access Example If actual average seek time is 2ms Average read time = 5.2ms

Disk Scheduling Goal: minimize seek time secondary goal: minimize rotational latency FCFS (First come first served) Shortest seek time SCAN/Elevator First service all requests in one direction Then reverse and serve in opposite direction Circular SCAN Go off the edge and come to the beginning and start all over again

FCFS

SSTF

SCAN

C-SCAN

Disk Geometry: LBA New machines use logical block addressing instead of CHS machine presents illusion of an array of blocks, numbered 0 to N Modern disks have varying number of sectors per track roughly constant data density over disk varying throughput over disk remap and reorder blocks (to avoid defects) completely obscure their actual physical geometry have built-in caches to hide latencies when possible (but being careful of persistence requirements) have internal software running on an embedded CPU

Flash Storage Nonvolatile semiconductor storage 100 1000 faster than disk Smaller, lower power But more $/GB (between disk and DRAM) But, price is dropping and performance is increasing faster than disk

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 Flash has unusual interface can only reset bits in large blocks

I/O vs. CPU Performance Amdahl s Law Don t neglect I/O performance as parallelism increases compute performance Example Benchmark takes 90s CPU time, 10s I/O time Double the number of CPUs/2 years I/O unchanged Year CPU time I/O time Elapsed time % I/O time now 90s 10s 100s 10% +2 45s 10s 55s 18% +4 23s 10s 33s 31% +6 11s 10s 21s 47%

RAID Redundant Arrays of Inexpensive Disks Big idea: Parallelism to gain performance Redundancy to gain reliability

Raid 0 Striping Non-redundant disk array!

Raid 1 Mirrored Disks! More expensive On failure use the extra copy

Raid 2-3-4-5-6 Bit Level Striping and Parity Checks! As level increases: More guarantee against failure, more reliability Better read/write performance Raid 3 Raid 5 Raid 2 Raid 4

Summary Disks provide nonvolatile memory I/O performance measures Throughput, response time Dependability and cost very important RAID Redundancy for fault tolerance and speed