Operating Systems. Redundant Array of Inexpensive Disks (RAID) Thomas Ropars.

Similar documents
Storing Data: Disks and Files

Lecture 36: Chapter 6

RAID HARDWARE. On board SATA RAID controller. RAID drive caddy (hot swappable) SATA RAID controller card. Anne Watson 1

Redundant Arrays of Inexpensive Disks (RAIDs)

technology brief RAID Levels March 1997 Introduction Characteristics of RAID Levels

CS 153 Design of Operating Systems Spring 2015

RAID. Contents. Definition and Use of the Different RAID Levels. The different RAID levels: Definition Cost / Efficiency Reliability Performance

An Introduction to RAID. Giovanni Stracquadanio

High Performance Computing. Course Notes High Performance Storage

Input / Ouput devices. I/O Chapter 8. Goals & Constraints. Measures of Performance. Anatomy of a Disk Drive. Introduction - 8.1

CS161: Operating Systems

RAID Performance Analysis

CS420: Operating Systems

Reliability and Fault Tolerance in Storage

Striped Set, Advantages and Disadvantages of Using RAID

Operating Systems. RAID Redundant Array of Independent Disks. Submitted by Ankur Niyogi 2003EE20367

Disks and RAID. Profs. Bracy and Van Renesse. based on slides by Prof. Sirer

Chapter 6 External Memory. Dr. Mohamed H. Al-Meer

Price/performance Modern Memory Hierarchy

How To Create A Multi Disk Raid

HP Smart Array Controllers and basic RAID performance factors

Sistemas Operativos: Input/Output Disks

CS 6290 I/O and Storage. Milos Prvulovic

RAID. Storage-centric computing, cloud computing. Benefits:

PIONEER RESEARCH & DEVELOPMENT GROUP

Database Management Systems

CSE 120 Principles of Operating Systems

COSC 6374 Parallel Computation. Parallel I/O (I) I/O basics. Concept of a clusters

Case for storage. Outline. Magnetic disks. CS2410: Computer Architecture. Storage systems. Sangyeun Cho

Outline. Database Management and Tuning. Overview. Hardware Tuning. Johann Gamper. Unit 12

RAID. Tiffany Yu-Han Chen. # The performance of different RAID levels # read/write/reliability (fault-tolerant)/overhead

RAID Overview

HARD DRIVE CHARACTERISTICS REFRESHER

Filing Systems. Filing Systems

How To Improve Performance On A Single Chip Computer

Chapter 9: Peripheral Devices: Magnetic Disks

Chapter Introduction. Storage and Other I/O Topics. p. 570( 頁 585) Fig I/O devices can be characterized by. I/O bus connections

CHAPTER 4 RAID. Section Goals. Upon completion of this section you should be able to:

ES-1 Elettronica dei Sistemi 1 Computer Architecture

Disk Storage & Dependability

Why disk arrays? CPUs improving faster than disks

System Architecture. CS143: Disks and Files. Magnetic disk vs SSD. Structure of a Platter CPU. Disk Controller...

Definition of RAID Levels

File System & Device Drive. Overview of Mass Storage Structure. Moving head Disk Mechanism. HDD Pictures 11/13/2014. CS341: Operating System

RAID. RAID 0 No redundancy ( AID?) Just stripe data over multiple disks But it does improve performance. Chapter 6 Storage and Other I/O Topics 29

Data Storage - II: Efficient Usage & Errors

Review. Lecture 21: Reliable, High Performance Storage. Overview. Basic Disk & File System properties CSC 468 / CSC /23/2006

RAID 5 rebuild performance in ProLiant

Dependable Systems. 9. Redundant arrays of. Prof. Dr. Miroslaw Malek. Wintersemester 2004/05

Guide to SATA Hard Disks Installation and RAID Configuration

PARALLEL I/O FOR HIGH PERFORMANCE COMPUTING

Load Balancing in Fault Tolerant Video Server

RAID Overview: Identifying What RAID Levels Best Meet Customer Needs. Diamond Series RAID Storage Array

RAID Technology Overview

Module 6. RAID and Expansion Devices

RAID Storage, Network File Systems, and DropBox

How To Write A Disk Array

Today s Papers. RAID Basics (Two optional papers) Array Reliability. EECS 262a Advanced Topics in Computer Systems Lecture 4

Systems Infrastructure for Data Science. Web Science Group Uni Freiburg WS 2014/15

RAID Level Descriptions. RAID 0 (Striping)

Non-Redundant (RAID Level 0)

Guide to SATA Hard Disks Installation and RAID Configuration

Storage. The text highlighted in green in these slides contain external hyperlinks. 1 / 14

DELL RAID PRIMER DELL PERC RAID CONTROLLERS. Joe H. Trickey III. Dell Storage RAID Product Marketing. John Seward. Dell Storage RAID Engineering

BrightStor ARCserve Backup for Windows

Introduction. What is RAID? The Array and RAID Controller Concept. Click here to print this article. Re-Printed From SLCentral

Overview of I/O Performance and RAID in an RDBMS Environment. By: Edward Whalen Performance Tuning Corporation

Hard Disk Drives and RAID

RAID5 versus RAID10. First let's get on the same page so we're all talking about apples.

StorTrends RAID Considerations

COSC 6374 Parallel Computation. Parallel I/O (I) I/O basics. Concept of a clusters

1 Storage Devices Summary

RAID technology and IBM TotalStorage NAS products

Agenda. Enterprise Application Performance Factors. Current form of Enterprise Applications. Factors to Application Performance.

W4118: RAID. Instructor: Junfeng Yang

SSDs and RAID: What s the right strategy. Paul Goodwin VP Product Development Avant Technology

What is RAID? data reliability with performance

Theoretical Aspects of Storage Systems Autumn 2009

Guide to SATA Hard Disks Installation and RAID Configuration

Configuring ThinkServer RAID 500 and RAID 700 Adapters. Lenovo ThinkServer

CS 61C: Great Ideas in Computer Architecture. Dependability: Parity, RAID, ECC

Using RAID6 for Advanced Data Protection

Online Remote Data Backup for iscsi-based Storage Systems

RAID Technology. RAID Overview

Outline. CS 245: Database System Principles. Notes 02: Hardware. Hardware DBMS Data Storage

How To Understand And Understand The Power Of Aird 6 On Clariion

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 412, University of Maryland. Guest lecturer: David Hovemeyer.

an analysis of RAID 5DP

Benefits of Intel Matrix Storage Technology

RAID Basics Training Guide

Chapter 10: Mass-Storage Systems

Chapter 10: Storage and File Structure

Exploring RAID Configurations

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

Operating Systems 2230

Disk Array Data Organizations and RAID

RAID0.5: Active Data Replication for Low Cost Disk Array Data Protection

High-Performance SSD-Based RAID Storage. Madhukar Gunjan Chakhaiyar Product Test Architect

3PAR Fast RAID: High Performance Without Compromise

Transcription:

1 Operating Systems Redundant Array of Inexpensive Disks (RAID) Thomas Ropars thomas.ropars@imag.fr 2016

2 References The content of these lectures is inspired by: Operating Systems: Three Easy Pieces by R. Arpaci-Dusseau and A. Arpaci-Dusseau Other references: Modern Operating Systems by A. Tanenbaum Operating System Concepts by A. Silberschatz et al.

3 Agenda Introduction RAID levels Summary

4 Agenda Introduction RAID levels Summary

5 Motivation In the previous lecture, we have seen how disks basically work.

5 Motivation In the previous lecture, we have seen how disks basically work. Sometimes we would like more: Storage space What if I have too many data for a single disk? Performance What if I do a lot of reads and writes (I/O bound)? Reliability What if my disk fails?

6 RAID History A Case for Redundant Arrays of Inexpensive Disks (RAID) by D. Patterson, G. Gibson and R. Katz (1988) Argue that RAID can perform better than expensive disks Argue that this is true despite decreased MTTF (mean time to failure) Defines 5 levels of RAID (still valid) Some manufacturers talk about Redundant Array of Independent Disks

7 RAID Interface From the point of view of the OS, a RAID system is just a large, reliable, efficient disk. Logical I/O: The OS issues logical I/Os to the RAID system Internals A standard connection (eg., SATA, SCSI) A set of disks Volatile memory for buffering Microcontroller(s) that operate the RAID logic Physical I/O: The RAID issues the physical I/Os to the disks

8 Metrics Capacity: Given N disks, how much client data can be stored? Reliability: How many disks failures may a design tolerate? In the following, we assume a fail-stop failure model: a disk fails by crashing. Performance: Latency: single-request latency Steady-state throughput: total throughput of many concurrent requests (sequential or random)

9 Agenda Introduction RAID levels Summary

10 RAID 0: Striping RAID level 0 is no RAID! no redundancy Spread the blocks across the disks in round robin fashion. With N disks, N blocks read/write in parallel Often implemented at the granularity of blocks (other: bit-level, byte-level) can be multiple blocks Disk 0 Disk 1 Disk 2 Disk 3 0 2 4 6 1 3 5 7 8 10 12 14 9 11 13 15 Figure: Striping 16 blocks on 4 disks (2-block granularity)

RAID 0: Striping Metrics Reliability: does not tolerate failures Capacity: C N 1 Performance: optimal performance Throughput 2 Latency 3 Sequential Read: Sequential Write: Random Read: Random Write: N S N S N R N R Read: Write: T T 1 C: capacity of one disk; N: number of disks 2 S/R: throughput of one disk with sequential/random accesses 3 T: latency of read/write with a single disk 11

12 RAID 1: Mirroring RAID level 1 targets reliability It keeps several copies of each block Copies are stored on different disks Disk 0 Disk 1 Disk 2 Disk 3 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3 Figure: Mirroring 4 blocks on 4 disks

13 RAID 1: Mirroring Metrics Reliability: tolerates N 1 disk failures Capacity: C Performance: With random read, multiple reads can be issued in parallel on different disks Write latency increases because we have to wait for slowest disk to finish Throughput Latency Sequential Read: Sequential Write: Random Read: Random Write: S S N R R Read: Write: T T

14 RAID 1+0: Mirroring + striping Apply striping across pairs of mirrored disks RAID 0+1 is also possible (mirror a striping array of disks) Considered less reliable: one disk failure makes a full array unusable. Disk 0 Disk 1 Disk 2 Disk 3 0 0 2 2 1 1 3 3 4 4 6 6 5 5 7 7 Figure: RAID 1+0 on 4 disks

15 RAID 1+0: Mirroring + striping Metrics Reliability: tolerates 1 disk failure (worst case) Capacity: N/2 C Performance: Throughput is improved thanks to striping Mirrored disks can serve different requests on random reads Write latency increases because we have to wait for slowest disk to finish (worst case seek and rotational delay) Throughput Latency Sequential Read: Sequential Write: Random Read: Random Write: N/2 S N/2 S N R N/2 R Read: Write: T T

16 RAID 4: Parity-based redundancy Fault tolerance with reduced capacity lost Computes a parity block for each strip of blocks and store it on a separate disk A bit-wise XOR is used to compute parity data (a parity block has the same size as a normal block) If one disk fails, its data can be recovered based on the parity data and the data in the other disks Disk 0 Disk 1 Disk 2 Disk 3 Disk 4 0 1 2 3 PP 0 4 5 6 7 PP 1 8 9 10 11 PP 2 12 13 14 15 PP 3 Figure: RAID level 4 on 5 disks

17 RAID 4: Parity-based redundancy Metrics Reliability: tolerates 1 disk failure Capacity: (N 1) C Performance: For sequential writes, parity blocks can be written in parallel with the data stride Writing a single block requires reading the block and the parity block first to be able to update the parity block For random writes, the parity disk becomes the bottleneck (problem of small writes) Throughput Sequential Read: (N 1) S Sequential Write: (N 1) S Random Read: (N 1) R Random Write: R/2 Latency Read: T Write: 2T

18 RAID 5: Rotating Parity Same advantages as RAID 4 but without the small writes performance issue Rotates the parity blocks across disks Disk 0 Disk 1 Disk 2 Disk 3 Disk 4 0 1 2 3 PP 0 4 5 6 PP 1 7 8 9 PP 2 10 11 12 PP 3 13 14 15 PP 4 16 17 18 19 Figure: RAID level 5 on 5 disks

19 RAID 5: Rotating Parity Metrics Reliability: tolerates 1 disk failure Capacity: (N 1) C Performance: Random reads can use all disks Random writes allow using all disks in parallel but each write require 4 I/0 operations (read/write of data and parity block) Throughput Latency Sequential Read: Sequential Write: Random Read: Random Write: (N 1) S (N 1) S N R N/4 R Read: Write: T 2T

20 Agenda Introduction RAID levels Summary

21 Summary Only interested in performance: RAID 0 Random I/O performance and reliability: RAID 1+0 Reliability and capacity: RAID 4 Reliability and capacity + Random I/O performance: RAID 5

22 References for this lecture Operating Systems: Three Easy Pieces by R. Arpaci-Dusseau and A. Arpaci-Dusseau Chapter 38: Redundant Disk Arrays (RAID) If you are interested in the topic: D. Patterson, G. Gibson, and R. Katz. A case for redundant arrays of inexpensive disks (RAID). ACM, 1988.