www-inst.eecs.berkeley.edu/~cs61c/

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

CS61C : Machine Structures

UCB CS61C : Machine Structures

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

Recap of Networking Intro. Lecture #28 Networking & Disks Protocol Family Concept. Protocol for Networks of Networks?

Topics. Lecture 8: Magnetic Disks

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

High-Performance Storage Systems

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

CS61C : Machine Structures

Page 1. Motivation: Who Cares About I/O? Lecture 5: I/O Introduction: Storage Devices & RAID. I/O Systems. Big Picture: Who cares about CPUs?

CS61C : Machine Structures

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

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

inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture 26 IO Basics, Storage & Performance I ! HACKING THE SMART GRID!

Goals for today:! Recall : 5 components of any Computer! ! What do we need to make I/O work?!

UCB CS61C : Machine Structures

Motivation for Input/Output

Review. Lecture #25 Input / Output, Networks II, Disks ABCs of Networks: 2 Computers

Computer Science 146. Computer Architecture

Computer System Architecture

Most important topics today. I/O bus (computer bus) Polling vs interrupts Switch vs shared network Network protocol layers Various types of RAID

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

Lecture #28 I/O, networks, disks

Computer Science 146. Computer Architecture

CS 61C: Great Ideas in Computer Architecture. Input/Output

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

Chapter 6. Storage and Other I/O Topics

Chapter 6. Storage & Other I/O

I/O CANNOT BE IGNORED

SCSI vs. ATA More than an interface. Dave Anderson, Jim Dykes, Erik Riedel Seagate Research April 2003

Lecture for Storage System

I/O CANNOT BE IGNORED

Lecture 23: I/O Redundant Arrays of Inexpensive Disks Professor Randy H. Katz Computer Science 252 Spring 1996

Advanced Computer Architecture

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

Storage Systems. Storage Systems

CPS104 Computer Organization and Programming Lecture 18: Input-Output. Outline of Today s Lecture. The Big Picture: Where are We Now?

Storage Technologies and the Memory Hierarchy

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

ECE232: Hardware Organization and Design

Storage System COSC UCB

Agenda. Project #3, Part I. Agenda. Project #3, Part I. No SSE 12/1/10

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

Where Have We Been? Ch. 6 Memory Technology

Key Points. Rotational delay vs seek delay Disks are slow. Techniques for making disks faster. Flash and SSDs

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

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

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

Storage. CS 3410 Computer System Organization & Programming

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

Discovering Computers 2008

CENG3420 Lecture 08: Memory Organization

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

The personal computer system uses the following hardware device types -

Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

CS429: Computer Organization and Architecture

CS 261 Fall Mike Lam, Professor. Memory

CS61C : Machine Structures

CS429: Computer Organization and Architecture

Appendix D: Storage Systems

Session: Hardware Topic: Disks. Daniel Chang. COP 3502 Introduction to Computer Science. Lecture. Copyright August 2004, Daniel Chang

Magnetic Disk. Optical. Magnetic Tape. RAID Removable. CD-ROM CD-Recordable (CD-R) CD-R/W DVD

Today: Coda, xfs! Brief overview of other file systems. Distributed File System Requirements!

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 6 External Memory

Storage Devices for Database Systems

CSE 451: Operating Systems Spring Module 12 Secondary Storage

CMSC 611: Advanced Computer Architecture

What is the typical configuration of a computer sold today? 1-1

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

CSCI-UA.0201 Computer Systems Organization Memory Hierarchy

Agenda. Agenda 11/12/12. Review - 6 Great Ideas in Computer Architecture

CS 33. Memory Hierarchy I. CS33 Intro to Computer Systems XVI 1 Copyright 2016 Thomas W. Doeppner. All rights reserved.

Chapter 6A. Describing Storage Devices. Describing Storage Devices. Types of Storage Devices. Store data when computer is off Two processes

NOW Handout Page 1 S258 S99 1

COMP283-Lecture 3 Applied Database Management

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

Components of the Virtual Memory System

CSE 153 Design of Operating Systems

William Stallings Computer Organization and Architecture 6 th Edition. Chapter 6 External Memory

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

The Fetch-Execute Cycle

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

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

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

Microdrive: High Capacity Storage for the Handheld Revolution

Semiconductor Memory Types. Computer & Microprocessor Architecture HCA103. Memory Cell Operation. Semiconductor Memory.

Introduction to I/O. April 30, Howard Huang 1

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

UNIT 2 Data Center Environment

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

Computer Organization: A Programmer's Perspective

Lecture 18: Memory Systems. Spring 2018 Jason Tang

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

CS61C - Machine Structures. Lecture 17 - Caches, Part I. October 25, 2000 David Patterson

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

General Items: Reading Materials: Miscellaneous: Lecture 9 / Chapter 7 COSC1300/ITSC 1401/BCIS /19/2004 ? H ? T

Storage. What is storage? Holds data, instructions, and information for future use Storage medium is physical material used for storage

EXTERNAL MEMORY (Part 1)

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

Transcription:

CS61C Machine Structures Lecture 38 - Disks 11/28/2007 John Wawrzynek (www.cs.berkeley.edu/~johnw) www-inst.eecs.berkeley.edu/~cs61c/ 1 Magnetic Disk common I/O device Computer Processor (active) Control ( brain ) Datapath ( brawn ) Memory (passive) (where programs, data live when running) Devices Input Output Keyboard, Mouse Disk, Network Display, Printer 2

Magnetic Disk common I/O device A kind of Computer Memory: Information stored by magnetizing ferrite material on surface of rotating disk (similar to tape recorder except binary signaling). Nonvolatile storage retains its value without applying power to disk. Types: Floppy disks slower, less dense, removable. (largely replaced by USB flash devices, CD ROMs) Hard Disk Drives faster, more dense, usually nonremovable. Purpose in computer systems (Hard Drive): 1. Long-term, inexpensive storage for files 2. Backup for main-memory. Large, inexpensive, slow level in the memory hierarchy (virtual memory) 3 4

Hard Drives are Sealed. Why? The closer the head to the disk, the smaller the spot size and thus the denser the recording. Measured in Gbit/in2. ~100 is state of the art. Disks are sealed to keep the dust out. Heads are designed to fly at around 5-20nm above the surface of the disk. 99.999% of the head/arm weight is supported by the air bearing force (air cushion) developed between the disk and the head. 5 Photo of Disk Head, Arm, Actuator Spindle Arm Head { Actuator 6 Platters (1-12)

Disk Device Terminology Arm Head Sector Platter Inner Track Outer Track Actuator Several platters, with information recorded magnetically on both surfaces (usually) Bits recorded in tracks, which in turn divided into sectors (e.g., 512 Bytes) Actuator moves head (end of arm) over track ( seek ), wait for sector rotate under head, then read or write 7 Disk Device Performance Outer Track Inner Sector Head Arm Controller Track Spindle Platter Actuator Disk Latency = Seek Time + Rotation Time + Transfer Time + Controller Overhead Seek Time? depends on no. tracks to move arm, speed of actuator Rotation Time? depends on speed disk rotates, how far sector is from head Transfer Time? depends on data rate (bandwidth) of disk (f(bit density,rpm)), size of request 8

Disk Device Performance Average distance of sector from head? 1/2 time of a rotation 7200 Revolutions Per Minute 120 Rev/sec 1 revolution = 1/120 sec 8.33 milliseconds 1/2 rotation (revolution) 4.17 ms Average no. tracks to move arm? Disk industry standard benchmark: Sum all time for all possible seek distances from all possible tracks / # possible - Assumes average seek distance is random 9 Data Rate: Inner vs. Outer Tracks To keep things simple, originally same number of sectors per track Since outer track longer, lower bits per inch Competition decided to keep bits per inch (BPI) high for all tracks ( constant bit density ) More capacity per disk More sectors per track towards edge Since disk spins at constant speed, outer tracks have faster data rate Bandwidth outer track 1.7X inner track! 10

Disk Performance Model /Trends Capacity was + 100%/year (2X / 1.0 yrs), around 1X/yr recently Transfer rate (BW) + 40%/year (2X / 2.0 yrs) Rotation + Seek time 8%/year (1/2 in 10 yrs) MB/$ > 100%/year (2X / 1.0 yrs) Fewer chips + bit density improvement 11 State of the Art: Ultrastar 73LZX (~2000) source: www.ibm.com; 73.4 GB, 3.5 inch disk 10,000 RPM; 3 ms = 1/2 rotation 6 platters, 12 surfaces 13.2 Gbit/sq. in. areal den 10 watts (idle) 0.1 ms controller time 4.9 ms avg. seek 49 to 87 MB/s(internal) Lower performance disks with similar capacities are available for $3-$9/GB 12

State of the Art: Barracuda 180 (~2001) source: www.seagate.com; 181.6 GB, 3.5-inch disk 7200 RPM; SCSI 4.16 ms = 1/2 rotation 12 platters, 24 surfaces 31.2 Gbit/sq. in. areal den 10 watts (idle) 0.1 ms controller time 8.0 ms avg. seek 35 to 64 MB/s(internal) $7.50 / GB (Lower capacity, ATA/IDE disks ~ $2 / GB) 13 State of the Art: Deskstar 7K250 (~2002) source: www.hitachi.com; 250 GB, 3.5 inch disk 7200 RPM; 4.17 ms = 1/2 rotation 3 platters, 6 surfaces (125GB/ platter) 62 Gbit/sq. in. areal den 7.0 watts (idle) 0.1 ms controller time 8.5 ms avg. seek Transfer rate: - 105 MB/s (internal) - 33-68 MB/s (external) $166, $0.66/GB 14

State of the Art: Deskstar 7K500 (~2005) source: www.hitachi.com; 500 GB, 3.5 inch disk 7200 RPM; 4.17 ms = 1/2 rotation 5 platters, 10 surfaces (100GB/ platter) 50 Gbit/sq. in. areal den 9.0 watts (idle) 0.1 ms controller time 8.5 ms avg. seek Transfer rate: - 102 MB/s (internal) - 31-64.8 MB/s (external) $350, $0.66/GB 15 State of the Art: CinemaStar 7K1000 (~2007) source: www.hitachi.com; Marketed for application in HD DVRs, DVD recorders, etc. 1 TeraByte, 3.5 inch disk 7200 RPM; 4.17 ms = 1/2 rotation 5 platters, 10 surfaces (200GB/ platter) 100 Gbit/sq. in. areal den 9.0 watts (idle) 0.1 ms controller time 4.17 ms avg. latency Transfer rate: - 1070 MB/s (internal) - 300 MB/s (external) $200, $0.2/GB 16

Disk Performance Example Calculate time to read 1 sector (512B) for Deskstar using advertised performance; sector is on outer track Disk latency = average seek time + average rotational delay + transfer time + controller overhead = 8.5 ms + 0.5 * 1/(7200 RPM) + 0.5 KB / (100 MB/s) + 0.1 ms = 8.5 ms + 0.5 /(7200 RPM/(60000ms/M)) + 0.5 KB / (100 KB/ms) + 0.1 ms = 8.5 + 4.17 + 0.005 + 0.1 ms = 12.77 ms How many CPU clock cycles is this? 17 Areal Density Bits recorded along a track Metric is Bits Per Inch (BPI) Number of tracks per surface Metric is Tracks Per Inch (TPI) We care about bit density per unit area Metric is Bits Per Square Inch Called Areal Density Areal Density = BPI x TPI 18

Early Disk History (IBM) Data density Mbit/sq. in. Capacity of unit shown Megabytes 1973: 1. 7 Mbit/sq. in 140 MBytes 1979: 7. 7 Mbit/sq. in 2,300 MBytes source: New York Times, 2/23/98, page C3, Makers of disk drives crowd even more data into even smaller spaces 19 Early Disk History 1989: 63 Mbit/sq. in 60,000 MBytes 1997: 1450 Mbit/sq. in 1600 MBytes 1997: 3090 Mbit/sq. in 8100 MBytes source: New York Times, 2/23/98, page C3, Makers of disk drives crowd even more data into even smaller spaces 20

Areal Density Areal Density = BPI x TPI Change slope 30%/yr to 60%/yr about 1990 Giant Magnetoresistive effect head (highly sensitive) 21 Historical Perspective Form factor and capacity are more important in the marketplace than is performance Form factor evolution: 1970s: Mainframes 14 inch diameter disks 1980s: Minicomputers, Servers 8, 5.25 diameter disks Late 1980s/Early 1990s: PCs 3.5 inch diameter disks Laptops, notebooks 2.5 inch disks Portable music players Palmtops didnʼt use disks, so 1.8 inch diameter disks didnʼt make it Early 2000s: MP3 players 1 inch disks 22

1 inch disk drive! (slide from 2001) 2000 IBM MicroDrive: 1.7 x 1.4 x 0.2 1 GB, 3600 RPM, 5 MB/s, 15 ms seek Digital camera, PalmPC? 2006 MicroDrive? 9 GB, 50 MB/s! Assuming it finds a niche in a successful product Assuming past trends continue Hitachi 3K8 (introduced 2005) Development driven by MP3 players, cameras, etc. - 8GB, 5-10MB/s - Smaller size, 40x30x5 mm - 4,000 songs, 10 hours MPEG-4 video, 8,000 digital photos 23 Where does Flash memory come in? Microdrives and Flash memory (e.g., CompactFlash) are going head-to-head Both non-volatile (no power, data ok) Flash benefits: durable & lower power (no moving parts) Flash limitations: finite number of write cycles (wear on the insulating oxide layer around the charge storage mechanism) How does Flash memory work? NMOS transistor with an additional conductor between gate and source/drain which traps electrons. The presence/absence is a 1 or 0. 24

What does Apple put in its ipods? shuffle nano mini ipod Toshiba 0.5,1GB Samsung 2,4GB Hitachi 1 inch 4,6GBToshiba 1.8-inch 30,60GB (MK1504GAL) flash flash MicroDrive 25 Bonus homework problems Suppose a typical book is 400 pages long, each page on average has 40 lines of text, and an average of line of text has 80 characters. The PDF version of a chapter of our textbook takes 632 KB for 80 pages. The highest capacity 3.5-inch drive today is 1000 GB. 1. How many books fit in such a disk today in text? in PDF? How long would it take to access a book from disk? 2. The Kreege Engineering library has 160,000 books and the Bancroft library has 400,000. Can a single disk contain all the books in these two libraries using text? PDF? Might this have impact on the campus? How? 26

Bonus slides 27 Use Arrays of Small Disks? Katz and Patterson asked in 1987: Can smaller disks be used to close gap in performance between disks and CPUs? Conventional: 4 disk designs 3.5 5.25 Low End 10 14 High End Disk Array: 1 disk design 3.5 28

Replace Small Number of Large Disks with Large Number of Small Disks! (1988 Disks) Capacity Volume IBM 3390K 20 GBytes 97 cu. ft. IBM 3.5" 0061 320 MBytes 0.1 cu. ft. x70 23 GBytes 11 cu. ft. Power Data Rate I/O Rate MTTF Cost 3 KW 15 MB/s 600 I/Os/s 250 KHrs $250K 11 W 1.5 MB/s 55 I/Os/s 50 KHrs $2K 1 KW 120 MB/s 3900 IOs/s??? Hrs $150K Disk Arrays potentially high performance, high MB per cu. ft., high MB per KW, but what about reliability? 29 9X 3X 8X 6X Array Reliability Reliability - whether or not a component has failed measured as Mean Time To Failure (MTTF) Reliability of N disks = Reliability of 1 Disk N (assuming failures independent) 50,000 Hours 70 disks = 700 hour Disk system MTTF: Drops from 6 years to 1 month! Disk arrays too unreliable to be useful! 30

Redundant Arrays of (Inexpensive) Disks Files are "striped" across multiple disks Redundancy yields high data availability Availability: service still provided to user, even if some components failed When disk fails, contents reconstructed from data redundantly stored in the array Capacity penalty to store redundant info Bandwidth penalty to update redundant info 31 Bonus slide: Berkeley History, RAID-I RAID-I (1989) Consisted of a Sun 4/280 workstation with 128 MB of DRAM, four dual-string SCSI controllers, 28 5.25- inch SCSI disks and specialized disk striping software Today RAID is $27 billion dollar industry, 80% nonpc disks sold in RAIDs 32

Things to Remember Magnetic Disks continue rapid advance: 60%/yr capacity, 40%/yr bandwidth, slow on seek, rotation improvements, MB/$ improving 100%/yr. Designs to fit high volume form factor RAID Higher performance with more disk arms per $ Adds availability option for small number of extra disks Today RAID is $27 billion dollar industry, 80% nonpc disks sold in RAIDs; started at Cal 33