Improving performance

Slides:



Advertisements
Similar presentations
RAID (Redundant Arrays of Independent Disks). Disk organization technique that manages a large number of disks, providing a view of a single disk of High.
Advertisements

RAID Redundant Array of Independent Disks
CS 6560: Operating Systems Design
Disk Scheduling Based on the slides supporting the text 1.
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.
1 Recap (RAID and Storage Architectures). 2 RAID To increase the availability and the performance (bandwidth) of a storage system, instead of a single.
1 Storage (cont’d) Disk scheduling Reducing seek time (cont’d) Reducing rotational latency RAIDs.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Based on the slides supporting the text
Cse Feb-001 CSE 451 Section February 24, 2000 Project 3 – VM.
1 Disk Scheduling Chapter 14 Based on the slides supporting the text.
Disks CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
Secondary Storage CSCI 444/544 Operating Systems Fall 2008.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Mass-Storage Systems Revised Tao Yang.
I/O Systems and Storage Systems May 22, 2000 Instructor: Gary Kimura.
RAID Systems CS Introduction to Operating Systems.
Moving-head Disk Mechanism Rotation Speeds: 60 to 200 rotations per second Head Crash: read-write head makes contact with the surface.
12.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 12: Mass-Storage Systems.
RAID Ref: Stallings. Introduction The rate in improvement in secondary storage performance has been considerably less than the rate for processors and.
RAID Shuli Han COSC 573 Presentation.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Storage Systems.
Redundant Array of Independent Disks
N-Tier Client/Server Architectures Chapter 4 Server - RAID Copyright 2002, Dr. Ken Hoganson All rights reserved. OS Kernel Concept RAID – Redundant Array.
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.
Redundant Array of Inexpensive Disks aka Redundant Array of Independent Disks (RAID) Modified from CCT slides.
Disk Structure Disk drives are addressed as large one- dimensional arrays of logical blocks, where the logical block is the smallest unit of transfer.
Chapter 12: Mass-Storage Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 12: Mass-Storage Systems Overview of Mass.
Page 110/12/2015 CSE 30341: Operating Systems Principles Network-Attached Storage  Network-attached storage (NAS) is storage made available over a network.
CE Operating Systems Lecture 20 Disk I/O. Overview of lecture In this lecture we will look at: Disk Structure Disk Scheduling Disk Management Swap-Space.
Redundant Array of Independent Disks.  Many systems today need to store many terabytes of data.  Don’t want to use single, large disk  too expensive.
Chapter 12 – Mass Storage Structures (Pgs )
RAID TECHNOLOGY RASHMI ACHARYA CSE(A) RG NO
Network-Attached Storage. Network-attached storage devices Attached to a local area network, generally an Ethernet-based network environment.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
I/O Errors 1 Computer Organization II © McQuain RAID Redundant Array of Inexpensive (Independent) Disks – Use multiple smaller disks (c.f.
Magnetic Disks Have cylinders, sectors platters, tracks, heads virtual and real disk blocks (x cylinders, y heads, z sectors per track) Relatively slow,
CS Introduction to Operating Systems
Multiple Platters.
Disks and RAID.
RAID Non-Redundant (RAID Level 0) has the lowest cost of any RAID
I/O System Chapter 5 Designed by .VAS.
Storage Networking.
Chapter 12: Mass-Storage Structure
Operating System I/O System Monday, August 11, 2008.
Chapter 14 Based on the slides supporting the text
Storage Networking.
CSE 451: Operating Systems Spring 2006 Module 18 Redundant Arrays of Inexpensive Disks (RAID) John Zahorjan Allen Center.
RAID Disk Arrays Hank Levy 1.
RAID RAID Mukesh N Tekwani
Chapter 12: Mass-Storage Systems
ICOM 6005 – Database Management Systems Design
RAID Disk Arrays Hank Levy 1.
CSE 451: Operating Systems Spring 2005 Module 17 Redundant Arrays of Inexpensive Disks (RAID) Ed Lazowska Allen Center 570.
Selecting a Disk-Scheduling Algorithm
Overview Continuation from Monday (File system implementation)
CSE 451: Operating Systems Winter 2009 Module 13 Redundant Arrays of Inexpensive Disks (RAID) and OS structure Mark Zbikowski Gary Kimura 1.
TECHNICAL SEMINAR PRESENTATION
UNIT IV RAID.
Mark Zbikowski and Gary Kimura
CSE 451: Operating Systems Autumn 2004 Redundant Arrays of Inexpensive Disks (RAID) Hank Levy 1.
CSE 451: Operating Systems Winter 2012 Redundant Arrays of Inexpensive Disks (RAID) and OS structure Mark Zbikowski Gary Kimura 1.
CSE 451: Operating Systems Winter 2007 Module 18 Redundant Arrays of Inexpensive Disks (RAID) Ed Lazowska Allen Center 570.
CSE 451: Operating Systems Autumn 2009 Module 19 Redundant Arrays of Inexpensive Disks (RAID) Ed Lazowska Allen Center 570.
RAID Disk Arrays Hank Levy 1.
RAID RAID Mukesh N Tekwani April 23, 2019
CSE 451: Operating Systems Winter 2004 Module 17 Redundant Arrays of Inexpensive Disks (RAID) Ed Lazowska Allen Center 570.
Disk Scheduling The operating system is responsible for using hardware efficiently — for the disk drives, this means having a fast access time and disk.
CSE 451: Operating Systems Winter 2006 Module 18 Redundant Arrays of Inexpensive Disks (RAID) Ed Lazowska Allen Center 570.
CSE 542: Operating Systems
Presentation transcript:

Improving performance Reduce number of context switches Reduce data copying Reduce interrupts by using large transfers, smart controllers, polling Use DMA Balance CPU, memory, bus, and I/O performance for highest throughput 9-Sep-19 CSE 542: Operating Systems

CSE 542: Operating Systems Disk scheduling Schedule disk accesses to gain performance FCFS - first come first service SSTF - shorted seek time first starvation SCAN Elevator algorithm CSCAN Restarts from the beginning after each cycle LOOK Look till end of direction CLOOK Disk scheduling harder with smart disks that can rearrange bad sectors 9-Sep-19 CSE 542: Operating Systems

CSE 542: Operating Systems Disk attachment Host-attached storage SCSI, Fibre-Channel Network attached storage (NAS) Device implements a complete file system Storage-Area Networks High speed interconnect Can dynamically reassign disks to other servers iSCSI SCSI using IP protocols Security, congestion etc. are issues Direct Access File System (DAFS) Emerging standard leveraging Remote Direct Memory Access infrastructure http://www.dafscollaborative.org/ 9-Sep-19 CSE 542: Operating Systems

CSE 542: Operating Systems RAID Reliability vs redundancy Performance via parallelism Raid 0: striping w/o redundancy No redundancy Good I/O performance Raid 1: Mirrored disks Highly redundant Twice read rate, same write performance Raid 2: Hamming code ECC Separate disks for data and error correction code Commercially not viable 9-Sep-19 CSE 542: Operating Systems

CSE 542: Operating Systems Raid levels Raid 3: bit-interleaved parity organization Data with separate parity disks Raid 4: block-interleaved parity Separate parity disk Raid 5: Block-interleaved distributed parity Parity data is distributed across all disks Complex implementation on the controller Raid 6: Independent Data disks with two independent distributed parity schemes Raid 10 (striped array whose segments are RAID 1 arrays), 50, 0+1, 53, … 9-Sep-19 CSE 542: Operating Systems

CSE 542: Operating Systems RAID animations http://www.acnc.com/04_01_00_flash.html 9-Sep-19 CSE 542: Operating Systems

CSE 542: Operating Systems Snapmirror SnapMirror: File System based asynchronous Mirroring for disaster recovery Trends: Persistent and reliable data is crucial for businesses Disks are getting cheaper and bigger, backup technologies are not keeping up RAID to guard against disk failures Hybrid levels (level 50) can provide redundancy and performance Disaster recovery Create off-site online backups to guard against disasters 9-Sep-19 CSE 542: Operating Systems

CSE 542: Operating Systems Challenges Backup restore from tapes are cheap but slow Tapes can achieve around 60 GB/hour for restore Terabyte data stores can take a long time to restore Online remote backup Expensive (network bandwidth requirements) Performance slow because transaction cannot complete till WAN update finishes Asynchronous backups Backup at regular intervals If backup goes to multiple devices, then the event ordering can create inconsistent backups We want cheaper, faster restore capable mechanism 9-Sep-19 CSE 542: Operating Systems

Remote mirrors for disaster recovery Courtesy: NetApp 9-Sep-19 CSE 542: Operating Systems

CSE 542/498J: Operating Systems Monday, September 09, 2019 Snapshot Internals (1) A B C Active File System File: NETAPP.DAT Disk blocks Data actually resided in block C on disk 9-Sep-19 CSE 542: Operating Systems

CSE 542/498J: Operating Systems Monday, September 09, 2019 Snapshot Internals (2) A B C Active File System File: NETAPP.DAT Disk blocks Snapshot.0 File: NETAPP.DAT - Makes copy of root inode - Updates Block Map File Data actually resided in block C on disk 9-Sep-19 CSE 542: Operating Systems

CSE 542/498J: Operating Systems Monday, September 09, 2019 Snapshot Internals (3) A B C Active File System File: NETAPP.DAT Disk blocks Snapshot.0 File: NETAPP.DAT C’ WAFL (write anywhere file layout) writes modified data block to new location on disk (C’) Client modifies data at end of file Data actually resided in block C on disk 9-Sep-19 CSE 542: Operating Systems

CSE 542/498J: Operating Systems Monday, September 09, 2019 Snapshot Internals (4) Snapshot.0 File: NETAPP.DAT Active File System File: NETAPP.DAT A B C C’ Disk blocks Active file system version of NETAPP.DAT is now composed of disk blocks A, B & C’. Snapshot.0 file system version of NETAPP.DAT is still composed of blocks A, B & C 9-Sep-19 CSE 542: Operating Systems

CSE 542/498J: Operating Systems Monday, September 09, 2019 Snapshot Internals (5) Active File System Snapshot.0 File: NETAPP.DAT File: NETAPP.DAT Snapshot.1 File: NETAPP.DAT A B C C’ Disk blocks Snapshot.1 file system version of NETAPP.DAT is composed of blocks A, B & C’ 9-Sep-19 CSE 542: Operating Systems

CSE 542: Operating Systems SnapMirror Can use this mechanism to mirror data across WAN Can reduce data storage requirements by not backing up deleted/updated data Identifying dirty blocks are easier than logical, file system aware mechanisms 9-Sep-19 CSE 542: Operating Systems