CSE431 Chapter 6A.1Irwin, PSU, 2008 Chapter 6A: Disk Systems Mary Jane Irwin ( www.cse.psu.edu/~mji )www.cse.psu.edu/~mji [Adapted from Computer Organization.

Slides:



Advertisements
Similar presentations
IT253: Computer Organization
Advertisements

I/O Chapter 8. Outline Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
CS224 Spring 2011 Computer Organization CS224 Chapter 6A: Disk Systems With thanks to M.J. Irwin, D. Patterson, and J. Hennessy for some lecture slide.
Faculty of Information Technology Department of Computer Science Computer Organization Chapter 7 External Memory Mohammad Sharaf.
CSE431 Chapter 6A.1Irwin, PSU, 2008 Chapter 6A: Disk Systems Mary Jane Irwin ( ) [Adapted from Computer Organization.
- Dr. Kalpakis CMSC Dr. Kalpakis 1 Outline In implementing DBMS we need to answer How should the system store and manage very large amounts of data?
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
RAID Redundant Array of Independent Disks
Operating Systems ECE344 Ashvin Goel ECE University of Toronto Disks and RAID.
CPE 442 io.1 Introduction To Computer Architecture CpE 442 I/O Systems.
Enhanced Availability With RAID CC5493/7493. RAID Redundant Array of Independent Disks RAID is implemented to improve: –IO throughput (speed) and –Availability.
CSE521: Introduction to Computer Architecture Mazin Yousif I/O Subsystem RAID (Redundant Array of Independent Disks)
Lecture 36: Chapter 6 Today’s topic –RAID 1. RAID Redundant Array of Inexpensive (Independent) Disks –Use multiple smaller disks (c.f. one large disk)
CSCE 212 Chapter 8 Storage, Networks, and Other Peripherals Instructor: Jason D. Bakos.
Computer ArchitectureFall 2007 © November 28, 2007 Karem A. Sakallah Lecture 24 Disk IO and RAID CS : Computer Architecture.
1  1998 Morgan Kaufmann Publishers Chapter 8 Storage, Networks and Other Peripherals.
1 Lecture 26: Storage Systems Topics: Storage Systems (Chapter 6), other innovations Final exam stats:  Highest: 95  Mean: 70, Median: 73  Toughest.
1 Storage Hierarchy Cache Main Memory Virtual Memory File System Tertiary Storage Programs DBMS Capacity & Cost Secondary Storage.
Computer ArchitectureFall 2008 © November 12, 2007 Nael Abu-Ghazaleh Lecture 24 Disk IO.
S.1 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output Cache Main Memory Secondary Memory (Disk)
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
Today: External Memory Thurs: Computer Busses Final Exam Discussion Don’t Forget to clean up your Breadboard Recall: Technology Access Time Cost/GB SRAM.
Introduction to Database Systems 1 The Storage Hierarchy and Magnetic Disks Storage Technology: Topic 1.
12.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 12: Mass-Storage Systems.
Lecture 11: Storage Systems Disk, RAID, Dependability Kai Bu
CS4432: Database Systems II Data Storage (Better Block Organization) 1.
ICOM 6005 – Database Management Systems Design Dr. Manuel Rodríguez-Martínez Electrical and Computer Engineering Department Lecture 6 – RAID ©Manuel Rodriguez.
Lecture 11: Storage Systems Disk, RAID, Dependability Kai Bu
Chapter 6 RAID. Chapter 6 — Storage and Other I/O Topics — 2 RAID Redundant Array of Inexpensive (Independent) Disks Use multiple smaller disks (c.f.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
1 Database Systems Storage Media Asma Ahmad 21 st Apr, 11.
Storage & Peripherals Disks, Networks, and Other Devices.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Storage Systems.
Chapter 2 Data Storage How does a computer system store and manage very large volumes of data ?
L/O/G/O External Memory Chapter 3 (C) CS.216 Computer Architecture and Organization.
CSE431 Chapter 6A.1Irwin, PSU, 2008 CSE 431 Computer Architecture Fall 2008 Chapter 6A: Disk Systems Mary Jane Irwin ( )
I/O – Chapter 8 Introduction Disk Storage and Dependability – 8.2 Buses and other connectors – 8.4 I/O performance measures – 8.6.
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.
Lecture 9 of Advanced Databases Storage and File Structure (Part II) Instructor: Mr.Ahmed Al Astal.
Lecture 16: Storage and I/O EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2014, Dr.
1/14/2005Yan Huang - CSCI5330 Database Implementation – Storage and File Structure Storage and File Structure.
I/O Computer Organization II 1 Introduction I/O devices can be characterized by – Behavior: input, output, storage – Partner: human or machine – Data rate:
Chapter 12 – Mass Storage Structures (Pgs )
Programming for GCSE Topic 5.1: Memory and Storage T eaching L ondon C omputing William Marsh School of Electronic Engineering and Computer Science Queen.
11.1Database System Concepts. 11.2Database System Concepts Now Something Different 1st part of the course: Application Oriented 2nd part of the course:
Auxiliary Memory Magnetic Disk:
CS 6290 I/O and Storage Milos Prvulovic. Storage Systems I/O performance (bandwidth, latency) –Bandwidth improving, but not as fast as CPU –Latency improving.
1 Lecture 27: Disks Today’s topics:  Disk basics  RAID  Research topics.
1 Lecture 23: Storage Systems Topics: disk access, bus design, evaluation metrics, RAID (Sections )
CPSC 231 Secondary storage (D.H.)1 Learning Objectives Understanding disk organization. Sectors, clusters and extents. Fragmentation. Disk access time.
COSC 6340: Disks 1 Disks and Files DBMS stores information on (“hard”) disks. This has major implications for DBMS design! » READ: transfer data from disk.
Mohamed Younis CMCS 411, Computer Architecture 1 CMCS Computer Architecture Lecture 25 I/O Systems May 2,
W4118 Operating Systems Instructor: Junfeng Yang.
LECTURE 13 I/O. I/O CANNOT BE IGNORED Assume a program requires 100 seconds, 90 seconds for main memory, 10 seconds for I/O. Assume main memory access.
CMSC 611: Advanced Computer Architecture I/O & Storage Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 10: Mass-Storage Systems.
CSCE 385: Computer Architecture Spring 2014 Dr. Mike Turi I/O.
I/O Errors 1 Computer Organization II © McQuain RAID Redundant Array of Inexpensive (Independent) Disks – Use multiple smaller disks (c.f.
LECTURE 13 I/O. I/O CANNOT BE IGNORED Assume a program requires 100 seconds, 90 seconds for main memory, 10 seconds for I/O. Assume main memory access.
Chapter 2: Computer-System Structures
Multiple Platters.
IT 251 Computer Organization and Architecture
CS 554: Advanced Database System Notes 02: Hardware
Introduction I/O devices can be characterized by I/O bus connections
Lecture 13 I/O.
RAID RAID Mukesh N Tekwani
Lecture 28: Reliability Today’s topics: GPU wrap-up Disk basics RAID
Mass-Storage Systems.
RAID RAID Mukesh N Tekwani April 23, 2019
Presentation transcript:

CSE431 Chapter 6A.1Irwin, PSU, 2008 Chapter 6A: Disk Systems Mary Jane Irwin ( ) [Adapted from Computer Organization and Design, 4 th Edition, Patterson & Hennessy, © 2008, MK]

CSE431 Chapter 6A.2Irwin, PSU, 2008 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output Cache Main Memory Secondary Memory (Disk)

CSE431 Chapter 6A.3Irwin, PSU, 2008 Magnetic Disk  Purpose l Long term, nonvolatile storage l Lowest level in the memory hierarchy -slow, large, inexpensive  General structure l A rotating platter coated with a magnetic surface l A moveable read/write head to access the information on the disk  Typical numbers l 1 to 4 platters (each with 2 recordable surfaces) per disk of 1” to 3.5” in diameter l Rotational speeds of 5,400 to 15,000 RPM l 10,000 to 50,000 tracks per surface -cylinder - all the tracks under the head at a given point on all surfaces l 100 to 500 sectors per track -the smallest unit that can be read/written (typically 512B) Track Sector

CSE431 Chapter 6A.4Irwin, PSU, 2008 Magnetic Disk Characteristic  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 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) 4. Controller time: the overhead the disk controller imposes in performing a disk I/O access (typically <.2 ms) Sector Track Cylinder Head Platter Controller + Cache

CSE431 Chapter 6A.5Irwin, PSU, 2008 Typical Disk Access Time  The average time to read or write a 512B sector for a disk rotating at 15,000 RPM with average seek time of 4 ms, a 100MB/sec transfer rate, and a 0.2 ms controller overhead If the measured average seek time is 25% of the advertised average seek time, then  The rotational latency is usually the largest component of the access time

CSE431 Chapter 6A.6Irwin, PSU, 2008 Typical Disk Access Time If the measured average seek time is 25% of the advertised average seek time, then Avg disk read/write = 4.0 ms + 0.5/(15,000RPM/(60sec/min))+ 0.5KB/(100MB/sec) ms = = 6.2 ms Avg disk read/write = = 3.2 ms  The average time to read or write a 512B sector for a disk rotating at 15,000 RPM with average seek time of 4 ms, a 100MB/sec transfer rate, and a 0.2 ms controller overhead  The rotational latency is usually the largest component of the access time

CSE431 Chapter 6A.7Irwin, PSU, 2008 Disk Interface Standards  Higher-level disk interfaces have a microprocessor disk controller that can lead to performance optimizations l ATA (Advanced Technology Attachment ) – An interface standard for the connection of storage devices such as hard disks, solid-state drives, and CD-ROM drives. Parallel ATA has been largely replaced by serial ATA. l SCSI (Small Computer Systems Interface) – A set of standards (commands, protocols, and electrical and optical interfaces) for physically connecting and transferring data between computers and peripheral devices. Most commonly used for hard disks and tape drives.

CSE431 Chapter 6A.8Irwin, PSU, 2008 Disk Interface Standards (continued)  In particular, disk controllers have SRAM disk caches which support fast access to data that was recently read and often also include prefetch algorithms to try to anticipate demand

CSE431 Chapter 6A.9Irwin, PSU, 2008 Magnetic Disk Examples ( FeatureSeagate ST NS Seagate ST973451SS Seagate ST AS Disk diameter (inches) Capacity (GB) # of surfaces (heads)422 Rotation speed (RPM)7,20015,0005,400 Transfer rate (MB/sec) Minimum seek (ms)0.8r-1.0w0.2r-0.4w1.5r-2.0w Average seek (ms)8.5r-9.5w2.9r-3.3w12.5r-13.0w MTTF o C)1,200,0001,600,000?? Dim (inches), Weight (lbs) 1x4x5.8, x2.8x3.9, x2.8x3.9, 0.2 GB/cu.inch, GB/watt43, 9111, 937, 84 Power: op/idle/sb (watts)11/8/18/5.8/-1.9/0.6/0.2 Price in 2008, $/GB~$0.3/GB~$5/GB~$0.6/GB

CSE431 Chapter 6A.10Irwin, PSU, 2008 Magnetic Disk Examples ( FeatureSeagate ST37Seagate ST32Seagate ST94 Disk diameter (inches) Capacity (GB) # of surfaces (heads)842 Rotation speed (RPM)15,0007,2005,400 Transfer rate (MB/sec) Minimum seek (ms)0.2r-0.4w1.0r-1.2w1.5r-2.0w Average seek (ms)3.6r-3.9w8.5r-9.5w12r-14w MTTF o C)1,200,000600,000330,000 Dimensions (inches)1”x4”x5.8” 0.4”x2.7”x3.9” GB/cu.inch3910 Power: op/idle/sb (watts)20?/12/-12/8/12.4/1/0.4 GB/watt41617 Weight (pounds)

CSE431 Chapter 6A.11Irwin, PSU, 2008 Disk Latency & Bandwidth Milestones  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). CDC WrenSG ST41SG ST15SG ST39SG ST37 RSpeed (RPM) Year Capacity (Gbytes) Diameter (inches) InterfaceST-412SCSI Bandwidth (MB/s) Latency (msec) Patterson, CACM Vol 47, #10, 2004

CSE431 Chapter 6A.12Irwin, PSU, 2008 Latency & Bandwidth Improvements  In the time that the disk bandwidth doubles the latency improves by a factor of only 1.2 to 1.4

CSE431 Chapter 6A.13Irwin, PSU, 2008 Flash Storage (Read Section 6.4)  Flash memory is the first credible challenger to disks. It is semiconductor memory that is nonvolatile like disks, but has latency 100 to 1000 times faster than disk and is smaller, more power efficient, and more shock resistant. l In 2008, the price of flash is $4 to $10 per GB or about 2 to 10 times higher than disk and 5 to 10 times lower than DRAM. l Flash memory bits wear out (unlike disks and DRAMs), but wear leveling can make it unlikely that the write limits of the flash will be exceeded

CSE431 Chapter 6A.14Irwin, PSU, 2008 Flash Storage (continued) FeatureKingstonTransendRiDATA Capacity (GB)81632 Bytes/sector512 Transfer rates (MB/sec)420r-18w68r-50w MTTF>1,000,000 >4,000,000 Price (2008)~ $30~ $70~ $300

CSE431 Chapter 6A.15Irwin, PSU, 2008 Dependability, Reliability, Availability (Section 6.2)  Reliability – measured by the mean time to failure (MTTF). Service interruption is measured by mean time to repair (MTTR)  Availability – a measure of service accomplishment Availability = MTTF/(MTTF + MTTR)

CSE431 Chapter 6A.16Irwin, PSU, 2008 Dependability, Reliability, Availability (continued)  To increase MTTF, either improve the quality of the components or design the system to continue operating in the presence of faulty components 1. Fault avoidance: preventing fault occurrence by construction 2. Fault tolerance: using redundancy to correct or bypass faulty components (hardware) l Fault detection versus fault correction l Permanent faults versus transient faults

CSE431 Chapter 6A.17Irwin, PSU, 2008 RAIDs: Disk Arrays (Read Section 6.9)  Arrays of small and inexpensive disks l Increase potential throughput by having many disk drives -Data is spread over multiple disk -Multiple accesses are made to several disks at a time Redundant Array of Inexpensive Disks

CSE431 Chapter 6A.18Irwin, PSU, 2008 RAIDs: Disk Arrays (continued)  Reliability is lower than a single disk  But availability can be improved by adding redundant disks (RAID) l Lost information can be reconstructed from redundant information l MTTR: mean time to repair is in the order of hours l MTTF: mean time to failure of disks is tens of years Redundant Array of Inexpensive Disks

CSE431 Chapter 6A.19Irwin, PSU, 2008 RAID: Level 0 (No Redundancy; Striping)  Multiple smaller disks as opposed to one big disk l striping Allocation of logically sequential blocks to separate disks l multiple blocks can be accessed in parallel increasing the performance l Same cost as one big disk – assuming 2 small disks cost the same as one big disk  No redundancy, so what if one disk fails? l Failure of two or more disks is more likely as the number of disks in the system increases

CSE431 Chapter 6A.20Irwin, PSU, 2008 RAID: Level 1 (Redundancy via Mirroring)  Uses twice as many disks as RAID 0  Whenever data is written to one disk, that data is also written to a redundant disk. So there are always two copies of the data l # redundant disks = # of data disks so twice the cost of one big disk  What if one disk fails? l If a disk fails, the system just goes to the “mirror” for the data redundant (check) data Block 1Block 3Block 2Block 4Block 1Block 2Block 3Block 4

CSE431 Chapter 6A.21Irwin, PSU, 2008 RAID: Level 3 (Bit-Interleaved Parity)  Cost of higher availability is reduced to 1/N where N is the number of disks in a protection group l # redundant disks = 1 × # of protection groups -writes require writing the new data to the data disk as well as computing the parity, meaning reading the other disks, so that the parity disk can be updated  Can tolerate limited (single) disk failure, since the data can be reconstructed -reads require reading all the operational data disks as well as the parity disk to calculate the missing data that was stored on the failed disk blk1_bitblk3_bitblk2_bitblk4_bit 1 disk fails (odd) bit parity disk 1001  protection group :A group of data disks that share a common check desk Reads or writes go to all disks in the group, with an extra disk for parity

CSE431 Chapter 6A.22Irwin, PSU, 2008 RAID: Level 4 (Block-Interleaved Parity)  Cost of higher availability still only 1/N but the parity is stored as blocks associated with sets of data blocks  Think of the parity information as the parity of blk1 data (1 bit) and bk2 data (1 bit) etc. Could then take the parity of these 4 bits and store 1 parity bit associated with the parity of the 4 bits of the blocks in the protection group. l Parity is stored as blocks and associated with a set of data blocks Block parity disk blk1blk2blk3blk4

CSE431 Chapter 6A.23Irwin, PSU, 2008 RAID: Level 4 (Block-Interleaved Parity) (continued)  Four times the throughput (striping)  # redundant disks = 1 × # of protection groups  Supports “small reads” and “small writes” (reads and writes that go to just one (or a few) data disk in a protection group) l by watching which bits change when writing new information, need only to change the corresponding bits on the parity disk l the parity disk must be updated on every write, so it is a bottleneck for back-to-back writes Block parity disk blk1blk2blk3blk4

CSE431 Chapter 6A.24Irwin, PSU, 2008 RAID: Level 4 (Block-Interleaved Parity) (continued)  Can tolerate limited (one) disk failure, since the data can be reconstructed Block parity disk blk1blk2blk3blk4

CSE431 Chapter 6A.25Irwin, PSU, 2008 Small Writes  Naïve RAID 4 small writes New D1 data D1D2D3D4P D1D2D3D4P  3 reads and 2 writes involving all the disks  Optimized RAID 4 small writes New D1 data D1D2D3D4P D1D2D3D4P 2 reads and 2 writes involving just two disks  

CSE431 Chapter 6A.26Irwin, PSU, 2008 RAID: Level 5 (Distributed Block-Interleaved Parity)  Cost of higher availability still only 1/N but the parity block can be located on any of the disks so there is no single bottleneck for writes l Still four times the throughput (striping) l # redundant disks = 1 × # of protection groups l Supports “small reads” and “small writes” l Allows multiple simultaneous writes as long as the accompanying parity blocks are not located on the same disk  Can tolerate limited disk failure, since the data can be reconstructed one of these assigned as the block parity disk

CSE431 Chapter 6A.27Irwin, PSU, 2008 Distributing Parity Blocks  By distributing parity blocks to all disks, some small writes can be performed in parallel P P P P3 RAID 4RAID P P P P Time Can be done in parallel

CSE431 Chapter 6A.28Irwin, PSU, 2008 Summary  Four components of disk access time: l Seek Time: advertised to be 3 to 14 ms but lower in real systems l Rotational Latency: 5.6 ms at 5400 RPM and 2.0 ms at RPM l Transfer Bandwidth: 30 to 80 MB/s l Controller Time: typically less than.2 ms  RAIDS can be used to improve availability l RAID 1 and RAID 5 – widely used in servers, one estimate is that 80% of disks in servers are RAIDs l RAID 3 – Storage Concepts l RAID 4 – Network Appliance

CSE431 Chapter 6A.29Irwin, PSU, 2008 Summary (continued)  RAIDS have enough redundancy to allow continuous operation, but not hot swapping