CSE 502 Graduate Computer Architecture. Lec 22 Disk Storage

Size: px
Start display at page:

Download "CSE 502 Graduate Computer Architecture. Lec 22 Disk Storage"

Transcription

1 CSE 52 Graduate Computer Architecture Lec 22 Disk Storage Larry Wittie Computer Science, StonyBrook University and ~lw Slides adapted from David Patterson, UC-Berkeley cs252-s6

2 Magnetic Disks Outline RAID Advanced Dependability/Reliability/Availability I/O Benchmarks, Performance and Dependability Conclusion 5/3/ CSE52-S, Lec 22 Disk Storage 2

3 Storage Hierarchy Third Level - I/O (Disks) 5/3/ CSE52-S, Lec 22 Disk Storage 3

4 I/O (Disk) Performance 5/3/ CSE52-S, Lec 22 Disk Storage 4

5 Disk Parameters 5/3/ CSE52-S, Lec 22 Disk Storage 5

6 Disk Performance 5/3/ CSE52-S, Lec 22 Disk Storage 6

7 Disk Performance Example 5/3/ CSE52-S, Lec 22 Disk Storage 7

8 Disk Performance: Queuing Theory 5/3/ CSE52-S, Lec 22 Disk Storage 8

9 More Extensions to Conventional Disks 5/3/ CSE52-S, Lec 22 Disk Storage 9

10 Disk Figure of Merit: Areal Density Bits recorded along a track Metric is Bits Per Inch (BPI) Number of tracks per surface Metric is Tracks Per Inch (TPI) Disk Designs Brag about bit density per unit area Metric is Bits Per Square Inch: Areal Density = BPI x TPI Year Areal Density ,9 2 7, 26 3,,, Areal Density,, B i t s / s q. i n., Year 5/3/ CSE52-S, Lec 22 Disk Storage

11 Historical Perspective 956 IBM Ramac IBM Dual CPU Disk - early 97s Winchester Developed for mainframe computers, proprietary interfaces, 63.25MB 5 in. platter Steady shrink in form factor: 27 in. to 4 in. Form factor and capacity drives market more than performance 97s developments 8 inch => 5.25 inch floppy disk form-factor (microcode into mainframe) Emergence of industry standard disk interfaces Early 98s: PCs and first generation workstations Mid 98s: Client/server computing Centralized storage on file server» accelerates hard disk downsizing: 8 inch to 5.25 inch Mass market disk drives become a reality» industry standards: SCSI, IPI (Intelligent Peripheral Interface), IDE» 5.25 inch to 3.5 inch drives for PCs, End of proprietary interfaces 99s: Laptops => 2.5 inch drives 2s: What new devices leading to new drives? (iphones) 5/3/ CSE52-S, Lec 22 Disk Storage

12 Use Arrays of Small Disks? Randy Katz and Dave Patterson in 987: Can smaller disks be used to close gap in performance between disks and CPUs? Conventional: 4 disk designs Low End 4 High End Disk Array: disk design 3.5 5/3/ CSE52-S, Lec 22 Disk Storage 2

13 Replace Small Number of Large Disks with Large Number of Small Disks! (988 Disks) Capacity Volume Power Data Rate I/O Rate MTTF Cost IBM 339K 2 GBytes 97 cu. ft. 3 KW 5 MB/s 6 I/Os/s 25 KHrs $25K IBM 3.5" 6 32 MBytes. cu. ft. W.5 MB/s 55 I/Os/s 5 KHrs $2K x7=>raid 23 GBytes cu. ft. KW 2 MB/s 39 IOs/s??? Hrs $5K Disk Arrays have potential for large data and I/ O rates, high MB per cu. ft., high MB per KW, but what about reliability? 5/3/ CSE52-S, Lec 22 Disk Storage 3 9X 3X 8X 6X.7X

14 Array Reliability Reliability of N disks = Reliability of Disk N 5, Hours 7 disks = 7 hours (~9K hrs/yr) Disk system MTTF: Drops from 6 years to month! Arrays (without redundancy) too unreliable to be useful! Hot spares support reconstruction in parallel with access: very high media availability can be achieved 5/3/ CSE52-S, Lec 22 Disk Storage 4

15 Redundant Arrays of Inexpensive Disks Newer RAID Slides F9 Files are "striped" across multiple disks Redundancy yields high data availability Availability: service still provided to user, even if some components have failed Disks will still fail Contents reconstructed from data redundantly stored in the array Capacity penalty to store redundant info Bandwidth penalty to update redundant info Next 2 pages (from cse32 lec25 pgs 5-26) [Adapted from Computer Organization and Design, 4 th Edition, Patterson & Hennessy, 28, MK, with many additions by Mary Jane Irwin, PennStateU] 5/3/ CSE52-S, Lec 22 Disk Storage 5

16 RAIDs: Disk Arrays Redundant Array of Inexpensive Disks Arrays of small and inexpensive disks Increase potential throughput by having many disk drives - Data is spread over multiple disk - Multiple accesses are made to several disks at a time Reliability is lower than a single disk But availability can be improved by adding redundant disks (RAID) Lost information can be reconstructed from redundant information MTTR: mean time to repair is in the order of hours MTTF: mean time to failure of disks is tens of years 5/3/ CSE52-S, Lec 22 Disk Storage 6

17 RAID: Level (No Redundancy; Striping) sec sec2 sec3 sec4 sec,b sec,b sec,b2 sec,b3 Multiple smaller disks as opposed to one big disk Spreading the sector over multiple disks striping means that multiple blocks can be accessed in parallel increasing the performance - A 4 disk system gives four times the throughput of a disk system Same cost as one big disk assuming 4 small disks cost the same as one big disk No redundancy, so what if one disk fails? Failure of one or more disks is more likely as the number of disks in the system increases 5/3/ CSE52-S, Lec 22 Disk Storage 7

18 RAID: Level (Redundancy via Mirroring) sec sec2 sec3 sec4 sec sec2 sec3 sec4 redundant (check) data Uses twice as many disks as RAID (e.g., 8 smaller disks with the second set of 4 duplicating the first set) so there are always two copies of the data # redundant disks = # of data disks so twice the cost of one big disk - writes have to be made to both sets of disks, so writes will be only /2 the performance of a RAID What if one disk fails? If a disk fails, the system just goes to the mirror for the data 5/3/ CSE52-S, Lec 22 Disk Storage 8

19 RAID: Level + (Striping with Mirroring) sec,b sec,b sec,b2 sec,b3 sec,b sec,b sec,b2 sec,b3 sec blk2 blk3 blk4 blk blk2 blk3 blk4 Combines the best of RAID and RAID, data is striped across four disks and mirrored to four disks, called a mirror of stripes or RAID, but may be marketed as RAID + Four times the throughput (due to striping) - # redundant disks = # of data disks, so 2X the cost of one big disk - writes have to be made to both sets of disks, so writes will be only /2 the performance of RAID What if one disk fails? redundant (check) data + If a disk fails, the system just goes to the mirror for the data 5/3/ CSE52-S, Lec 22 Disk Storage 9

20 RAID: Level 2 (Redundancy via Hamming ECC) sec,b sec,b sec,b2 sec,b3 Checks 4,5,6,7 Checks 2,3,6,7 Checks,3,5, error ECC disks ECC disks 4 and 2 point to either data disk 6 or 7 as being bad, but ECC disk says disk 7 is okay, so disk 6 must be in error ECC (Hamming Error Correcting Code) disks contain the even-parity of data on a set of distinct overlapping disks # ECC redundant disks = log 2 (total # of data + ECC disks) so almost twice the cost of one big disk if small # of data disks used. - writes require computing parity to write to half the ECC disks - reads require reading half the ECC disks and confirming parity Can tolerate limited disk failure, since the data can be reconstructed; first correction method; no longer used. Why it works ECC: 42 5/3/ CSE52-S, Lec 22 Disk Storage 2

21 RAID: Level 3 (Bit-Interleaved Parity) sec,b sec,b sec,b2 sec,b3 (odd) bit parity disk Cost of higher availability is reduced to /N where N is the number of disks in a protection group # redundant disks = # 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 5/3/ CSE52-S, Lec 22 Disk Storage 2

22 RAID: Level 3 (Bit-Interleaved Parity) sec,b sec,b sec,b2 sec,b3 (odd) bit parity disk disk fails Cost of higher availability is reduced to /N where N is the number of disks in a protection group # redundant disks = # 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 5/3/ CSE52-S, Lec 22 Disk Storage 22

23 RAID: Level 4 (Block-Interleaved Parity) sec sec2 sec3 sec4 Cost of higher availability still only /N but the parity is stored as blocks associated with sets of data blocks Four times the throughput (striping) block parity disk # redundant disks = # 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) - by watching which bits change when writing new information, need only to change the corresponding bits on the parity disk - the parity disk must be updated on every write, so it is a bottleneck for back-to-back writes Can tolerate limited (single) disk failure, since the data can be reconstructed 5/3/ CSE52-S, Lec 22 Disk Storage 23

24 Small Writes RAID 3 writes New D data D D2 D3 D4 P 3 reads and 2 writes involving all the disks RAID 4 small writes New D data D D2 D3 D4 P D D2 D3 D4 P 2 reads and 2 writes involving just two disks D D2 D3 D4 P 5/3/ CSE52-S, Lec 22 Disk Storage 24

25 RAID: Level 5 (Distributed Block-Interleaved Parity) one of these assigned as the block parity disk Cost of higher availability still only /N but any single parity block may be located on any of the disks so there is no single bottleneck for writes Still four times the throughput (striping) # redundant disks = # 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) Allows multiple simultaneous writes as long as the accompanying parity blocks are not located on the same disk Can tolerate limited (single) disk failure, since the data can be reconstructed 5/3/ CSE52-S, Lec 22 Disk Storage 25

26 Distributing Parity Blocks Bottle- RAID 4 RAID 5 neck Time P P 9 2 P P P P 8 9 P2 2 3 P Can be done in parallel By distributing parity blocks to all disks, some small writes can be performed in parallel using RAID 5 5/3/ CSE52-S, Lec 22 Disk Storage 26

27 Summary Four components of disk access time: Seek Time: advertised to be 3 to 4 ms but lower in real systems Rotational Latency: 5.6 ms at 54 RPM and 2. ms at 5 RPM Transfer Time: 3 to 8 MB/s => just.6 to.7 ms / 52B-sector Controller Time: typically less than.2 ms RAIDS can be used to improve availability RAID and RAID 5 widely used in servers, one estimate is that 8% of disks in servers are RAIDs RAID + (mirroring) EMC, Tandem, IBM RAID 3 Storage Concepts RAID 4 Network Appliance RAIDS have enough redundancy to allow continuous operation, but not hot swapping 5/3/ CSE52-S, Lec 22 Disk Storage 27

28 RAID 6: Recovering from 2 failures Why > failure recovery? operator accidentally replaces the wrong disk during a failure since disk bandwidth is growing more slowly than disk capacity, the MTTRepair a disk in a RAID system is increasing increases the chances of a 2nd failure during repair since takes longer reading much more data during reconstruction means increasing the chance of an uncorrectable media failure, which would result in data loss 5/3/ CSE52-S, Lec 22 Disk Storage 28

29 RAID 6: Recovering from 2 failures Network Appliance s row-diagonal parity or RAID-DP Like the standard RAID schemes, it uses redundant space based on parity calculation per stripe Since it is protecting against a double failure, it adds two check blocks per stripe of data. If p+ disks total, p- disks have data; assume p=5 Row parity disk is just like in RAID 4 Even parity across the other 4 data blocks in its stripe Each block of the diagonal parity disk contains the even parity of the blocks in the same diagonal 5/3/ CSE52-S, Lec 22 Disk Storage 29

30 Example p = 5 Row diagonal parity starts by recovering one of the 4 blocks on the failed disk using diagonal parity Since each diagonal misses one disk, and all diagonals miss a different disk, 2 diagonals are only missing block Once the data for those blocks is recovered, then the standard RAID recovery scheme can be used to recover two more blocks in the standard RAID 4 stripes Process continues until two failed disks are restored Data Disk Data Disk Data Disk 2 Data Disk 3 Row Parity Diagona l Parity /3/ CSE52-S, Lec 22 Disk Storage 3

31 Berkeley History: RAID-I RAID-I (989) Consisted of a Sun 4/28 workstation with 28 MB of DRAM, four dual-string SCSI controllers, inch SCSI disks and specialized disk striping software Today RAID is $24 billion dollar industry, 8% of non-pc disks are sold in RAIDs 5/3/ CSE52-S, Lec 22 Disk Storage 3

32 Summary: RAID Methods: Goal Was Performance. Highly Popular Since Reliable Storage Disk Mirroring, Shadowing (RAID ) Each disk is fully duplicated onto its "shadow" Logical write = two physical writes % capacity overhead Parity Data Bandwidth Array (RAID 3) Parity computed horizontally Logically a single high data bw disk High I/O Rate Parity Array (RAID 5) Interleaved parity blocks Independent reads and writes Logical write = 2 reads + 2 writes 5/3/ CSE52-S, Lec 22 Disk Storage 32

33 Definitions Examples on why precise definitions so important for reliability Is a programming mistake a fault, error, or failure? Are we talking about the time it was designed or the time the program is run? If the running program doesn t exercise the mistake, is it still a fault/error/failure? If an alpha particle hits a DRAM memory cell, is it a fault/error/failure if it does not change the value? Is it a fault/error/failure if the memory doesn t access the changed bit? Did a fault/error/failure still occur if the memory had error correction and delivered the corrected value to the CPU? 5/3/ CSE52-S, Lec 22 Disk Storage 33

34 IFIP Standard terminology Computer system dependability: quality of delivered service such that reliance can be placed on service Service is observed actual behavior as perceived by other system(s) interacting with this system s users Each module has ideal specified behavior, where service specification is agreed description of expected behavior A system failure occurs when the actual behavior deviates from the specified behavior failure occurred because an error, a defect in a module The cause of an error is a fault When a fault occurs it creates a latent error, which becomes effective when it is activated When error actually affects the delivered service, a failure occurs (time from error to failure is error latency) 5/3/ CSE52-S, Lec 22 Disk Storage 34

35 Fault v. (Latent) Error v. Failure An error is manifestation in the system of a fault, a failure is manifestation on the service of an error Is If an alpha particle hits a DRAM memory cell, is it a fault/error/failure if it doesn t change the value? Is it a fault/error/failure if the memory doesn t access the changed bit? Did a fault/error/failure still occur if the memory had error correction and delivered the corrected value to the CPU? An alpha particle hitting a DRAM can be a fault if it changes the memory, it creates an error error remains latent until effected memory word is read if the effected word error affects the delivered service, a failure occurs 5/3/ CSE52-S, Lec 22 Disk Storage 35

36 Fault Categories. Hardware faults: Devices that fail, such as an alpha particle hitting a memory cell 2. Design faults: Faults in software (usually) and hardware design (occasionally) 3. Operation faults: Mistakes by operations and maintenance personnel 4. Environmental faults: Fire, flood, earthquake, power failure, and sabotage Also by duration:. Transient faults exist for limited time and not recurring 2. Intermittent faults cause a system to oscillate between faulty and fault-free operation 3. Permanent faults do not correct themselves over time 5/3/ CSE52-S, Lec 22 Disk Storage 36

37 Fault Tolerance vs Disaster Tolerance Fault-Tolerance (or more properly, Error- Tolerance): mask local faults (prevent errors from becoming failures) RAID disks Uninterruptible Power Supplies Cluster Failover Disaster Tolerance: masks site errors (prevent site errors from causing service failures) Protects against fire, flood, sabotage,.. Redundant system and service at remote site. Use design diversity From Jim Gray s Talk at UC Berkeley on Fault Tolerance " /9/ 5/3/ CSE52-S, Lec 22 Disk Storage 37

38 Case Studies - Tandem Trends Reported MTTF by Component Mean Time to System Failure (years) by Cause environment total maintenance hardware operations software SOFTWARE Years HARDWARE Years MAINTENANCE Years OPERATIONS Years ENVIRONMENT Years SYSTEM Years Problem: Systematic Under-reporting From Jim Gray s Talk at UC Berkeley on Fault Tolerance " /9/ Minor Problems.... Major Problems 5/3/ CSE52-S, Lec 22 Disk Storage 38

39 % 8% 6% 4% 2% 5% 5% 2% Is Maintenance the Key? Rule of Thumb: Maintenance X HW Over 5 year product life, ~ 95% of cost is maintenance Cause of System Crashes 5% 8% 2% 53% 8% % % (est.) VAX crashes 85, 93 [Murp95]; extrap. to Sys. Man.: N crashes/problem, SysAdmin action Actions: set params bad, bad config, bad app install HW/OS 7% in 85 to 28% in 93. In, %? 5/3/ CSE52-S, Lec 22 Disk Storage 39 69% 5% 5% Other: app, power, network failure System management: actions + N/problem Operating System failure Hardware failure

40 HW Failures in Real Systems: Tertiary Disks A cluster of 2 PCs in seven 7-foot high, 9-inch wide racks with GB, 72 RPM, 3.5-inch IBM disks. The PCs are P6-2MHz with 96 MB of DRAM each. They run FreeBSD 3. and the hosts are connected via switched Mbit/second Ethernet Component Total in System Total Failed % Failed SCSI Controller % SCSI Cable % SCSI Disk % IDE Disk % Disk Enclosure -Backplane % Disk Enclosure - Power Supply % Ethernet Controller 2 5.% Ethernet Switch 2 5.% Ethernet Cable % CPU/Motherboard 2 % 5/3/ CSE52-S, Lec 22 Disk Storage 4

41 Unused Slides Fall 2 5/3/ CSE52-S, Lec 22 Disk Storage 4

42 Extensions to Conventional Disks 5/3/ CSE52-S, Lec 22 Disk Storage 42

43 Does Hardware Fail Fast? 4 of 384 Disks that Failed in Tertiary Disk Messages in system log for failed disk No. log msgs Duration (hours) Hardware Failure (Peripheral device write fault [for] Field Replaceable Unit) Not Ready (Diagnostic failure: ASCQ = Component ID [of] Field Replaceable Unit) Recovered Error (Failure Prediction Threshold Exceeded [for] Field Replaceable Unit) Recovered Error (Failure Prediction Threshold Exceeded [for] Field Replaceable Unit) /3/ CSE52-S, Lec 22 Disk Storage 43

44 High Availability System Classes Goal: Build Class 6 Systems System Type Unmanaged Managed Well Managed Fault Tolerant High-Availability Very-High-Availability Ultra-Availability Unavailable (min/year) 5, 5, Availability 9.% 99.% 99.9% 99.99% % % % Availability Class UnAvailability = MTTR/MTBF can cut it in ½ by cutting MTTR or MTBF From Jim Gray s Talk at UC Berkeley on Fault Tolerance " /9/ 5/3/ CSE52-S, Lec 22 Disk Storage 44

45 How Realistic is "5 Nines"? HP claims HP-9 server HW and HP-UX OS can deliver % availability guarantee in certain pre-defined, pre-tested customer environments Application faults? Operator faults? Environmental faults? Collocation sites (lots of computers in building on Internet) have network outage per year (~ day) power failure per year (~ day) Microsoft Network unavailable recently for a day due to problem in Domain Name Server: if only outage per year, 99.7% or 2 Nines 5/3/ CSE52-S, Lec 22 Disk Storage 45

46 Magnetic Disks Outline RAID Advanced Dependability/Reliability/Availability I/O Benchmarks, Performance and Dependability Conclusion 5/3/ CSE52-S, Lec 22 Disk Storage 46

47 I/O Performance Metrics: Response Time vs. Throughput 3 2 Response Time (ms) % Throughput (% total BW) % Queue Proc IOC Device Response time = Queue + Device Service time 5/3/ CSE52-S, Lec 22 Disk Storage 47

48 I/O Benchmarks For better or worse, benchmarks shape a field Processor benchmarks classically aimed at response time for fixed sized problem I/O benchmarks typically measure throughput, possibly with upper limit on response times (or 9% of response times) Transaction Processing (TP) (or On-line TP=OLTP) If bank computer fails when customer withdraw money, TP system guarantees account debited if customer gets $ & account unchanged if no $ Airline reservation systems & banks use TP Atomic transactions makes this work Classic metric is Transactions Per Second (TPS) 5/3/ CSE52-S, Lec 22 Disk Storage 48

49 I/O Benchmarks: Transaction Processing Early 98s great interest in OLTP Expecting demand for high TPS (e.g., ATM machines, credit cards) Tandem s success implied medium range OLTP expands Each vendor picked own conditions for TPS claims, report only CPU times with widely different I/O Conflicting claims led to disbelief of all benchmarks chaos 984 Jim Gray (Tandem) distributed paper to Tandem + 9 in other companies propose standard benchmark Published A measure of transaction processing power, Datamation, 985 by Anonymous et. al To indicate that this was effort of large group To avoid delays of legal department of each author s firm Still get mail at Tandem to author Anonymous Led to Transaction Processing Council in /3/ CSE52-S, Lec 22 Disk Storage 49

50 I/O Benchmarks: TP by Anon et. al DebitCredit Scalability: size of account, branch, teller, history function of throughput TPS Number of ATMs Account-file size,. GB,. GB,,. GB,,,. GB Each input TPS =>, account records, branches, ATMs Accounts must grow since a person is not likely to use the bank more frequently just because the bank has a faster computer! Response time: 95% transactions take second Report price (initial purchase price + 5 year maintenance = cost of ownership) Hire auditor to certify results 5/3/ CSE52-S, Lec 22 Disk Storage 5

51 Unusual Characteristics of TPC Price is included in the benchmarks cost of HW, SW, and 5-year maintenance agreements included price-performance as well as performance The data set generally must scale in size as the throughput increases trying to model real systems, demand on system and size of the data stored in it increase together The benchmark results are audited Must be approved by certified TPC auditor, who enforces TPC rules only fair results are submitted Throughput is the performance metric but response times are limited eg, TPC-C: 9% transaction response times < 5 seconds An independent organization maintains the benchmarks COO ballots on changes, meetings, to settle disputes... 5/3/ CSE52-S, Lec 22 Disk Storage 5

52 TPC Benchmark History/Status Benchmark Data Size (GB) Performance st Results Metric A: Debit Credit (retired). to transactions/ s Jul-9 B: Batch Debit Credit. to transactions/s Jul-9 (retired) C: Complex Query to 3 new order Sep-92 OLTP (min. 7 * tpm) trans/min (tpm) D: Decision Support, 3, queries/hour Dec-95 (retired) H: Ad hoc decision, 3, queries/hour Oct-99 support R: Business reporting queries/hour Aug-99 decision support (retired) W: Transactional web ~ 5, 5 web inter - actions/sec. Jul- App: app. server & web services Web Service Interactions/sec (SIPS) Jun-5 5/3/ CSE52-S, Lec 22 Disk Storage 52

53 I/O Benchmarks via SPEC SFS 3. Attempt by NFS companies to agree on standard benchmark Run on multiple clients & networks (to prevent bottlenecks) Same caching policy in all clients Reads: 85% full block & 5% partial blocks Writes: 5% full block & 5% partial blocks Average response time: 4 ms Scaling: for every NFS ops/sec, increase capacity GB Results: plot of server load (throughput) vs. response time & number of users Assumes: user => NFS ops/sec 3. for NSF 3. Added SPECMail (mailserver), SPECWeb (webserver) benchmarks 5/3/ CSE52-S, Lec 22 Disk Storage 53

54 Response time (ms) 25 Example SPEC SFS Result: NetApp FAS35c NFS servers 2.8 GHz Pentium Xeon microprocessors, 2 GB of DRAM per processor, GB of Non-volatile memory per system 4 FDDI networks; 32 NFS Daemons, 24 GB file size 68 fibre channel disks: 72 GB, 5 RPM, 2 or 4 FC controllers processors Operations/second 34,89 47,927 4 processors 5/3/ CSE52-S, Lec 22 Disk Storage 54

55 Availability benchmark methodology Goal: quantify variation in QoS metrics as events occur that affect system availability Leverage existing performance benchmarks to generate fair workloads to measure & trace quality of service metrics Use fault injection to compromise system hardware faults (disk, memory, network, power) software faults (corrupt input, driver error returns) maintenance events (repairs, SW/HW upgrades) Examine single-fault and multi-fault workloads the availability analogues of performance micro- and macrobenchmarks 5/3/ CSE52-S, Lec 22 Disk Storage 55

56 Example single-fault result Linux Solaris Compares Linux and Solaris reconstruction Linux: minimal performance impact but longer window of vulnerability to second fault Solaris: large perf. impact but restores redundancy fast 5/3/ CSE52-S, Lec 22 Disk Storage 56

57 Reconstruction policy (2) Linux: favors performance over data availability automatically-initiated reconstruction, idle bandwidth virtually no performance impact on application very long window of vulnerability (>hr for 3GB RAID) Solaris: favors data availability over app. perf. automatically-initiated reconstruction at high BW as much as 34% drop in application performance short window of vulnerability ( minutes for 3GB) Windows: favors neither! manually-initiated reconstruction at moderate BW as much as 8% app. performance drop somewhat short window of vulnerability (23 min/3gb) 5/3/ CSE52-S, Lec 22 Disk Storage 57

58 Unused Slides Fall 29 5/3/ CSE52-S, Lec 22 Disk Storage 58

59 Redundant Arrays of (Inexpensive) Disks RAIDs Files are "striped" across multiple disks Redundancy yields high data availability Availability: service still provided to user, even if some components have failed Disks will still fail Contents reconstructed from data redundantly stored in the array Capacity penalty to store redundant info Bandwidth penalty to update redundant info 5/3/ CSE52-S, Lec 22 Disk Storage 59

60 Redundant Arrays of Inexpensive Disks RAID : Disk Mirroring/Shadowing recovery group Each disk is fully duplicated onto its mirror Very high availability can be achieved Bandwidth sacrifice on write: Logical write = two physical writes Reads may be optimized Most expensive solution: % capacity overhead (RAID 2 - Bit-level striping with Hamming ECC - not interesting, skip.) 5/3/ CSE52-S, Lec 22 Disk Storage 6

61 Redundant Array of Inexpensive Disks RAID 3: Parity Disk... logical record Striped physical records 5/3/ CSE52-S, Lec 22 Disk Storage 6 P contains sum of other disks per stripe mod 2 ( parity ) If disk fails, subtract P from sum of other disks to find missing information P

62 RAID 3 Sum computed across recovery group to protect against hard disk failures, stored in P (parity) disk Logically, a single high capacity, high transfer-rate disk: good for large transfers Wider arrays reduce capacity costs, but decrease availability 33% capacity cost for parity if 3 data disks and parity disk 5/3/ CSE52-S, Lec 22 Disk Storage 62

63 Inspiration for RAID 4 RAID 3 relies on parity disk to discover errors on Read But every sector has an error detection field To catch errors on read, rely on error detection field vs. the parity disk Allows independent reads to different disks simultaneously 5/3/ CSE52-S, Lec 22 Disk Storage 63

64 Redundant Arrays of Inexpensive Disks RAID 4: High I/O Rate Parity Insides of 5 disks D D D2 D3 P D4 D5 D6 D7 P Increasing Logical Disk Address Example: small read D & D5, large write D2-D5 D8 D9 D D P D2 D3 D4 D5 D6 D7 D8 D9 5/3/ CSE52-S, Lec 22 Disk Storage 64 P P D2 D2 D22 D23 P Disk Columns... Stripe Of Sectors

65 Inspiration for RAID 5 RAID 4 works well for small reads Small writes (write to one disk): Option : read other data disks, create new sum and write to Parity Disk Option 2: since P has old sum, compare old data to new data, add the difference to P Small writes are limited by Parity Disk: Write to D, D5 both also write to P disk twice D D D2 D3 P D4 D5 D6 D7 P 5/3/ CSE52-S, Lec 22 Disk Storage 65

66 Redundant Arrays of Inexpensive Disks RAID 5: High I/O Rate Interleaved Parity Independent writes possible because of interleaved parity Example: write to D, D5 uses disks,, 3, 4 D D D2 D3 P D4 D5 D6 P D7 D8 D9 P D D D2 P D3 D4 D5 P D6 D7 D8 D9 D2 D2 D22 D23 P Disk Columns.... 5/3/ CSE52-S, Lec 22 Disk Storage Increasing Logical Disk Addresses

67 Problems of Disk Arrays: Small Writes RAID-5: Small Write Algorithm Logical Write = 2 Physical Reads + 2 Physical Writes D' D D D2 D3 P new data old data (. Read) old parity (2. Read) + XOR + XOR (3. Write) (4. Write) D' D D2 D3 P' 5/3/ CSE52-S, Lec 22 Disk Storage 67

68 Review Virtual Machine Revival Overcome security flaws of modern OSes Processor performance no longer highest priority Manage Software, Manage Hardware VMMs give OS developers another opportunity to develop functionality no longer practical in today s complex and ossified operating systems, where innovation moves at geologic pace. [Rosenblum and Garfinkel, 25] Virtualization challenges: processor, virtual memory, I/O Paravirtualization, ISA upgrades to cope with those difficulties Xen as example VMM using paravirtualization 25 performance on non-i/o bound, I/O intensive apps: 8% of native Linux without driver VM, 34% with driver VM Opteron memory hierarchy still critical to performance 5/3/ CSE52-S, Lec 22 Disk Storage 68

69 Future Disk Size and Performance Continued advance in capacity (6%/yr) and bandwidth (4%/yr) Slow improvement in seek, rotation (8%/yr) Time to read whole disk Year Sequentially Randomly ( sector/seek) 99 4 minutes x 5.5K 2 weeks (=22K min.) 2 2 minutes x 5K 2 months (!) (=.6M min.) minutes x 32K 6 months (SCSI) (=.8M min.) 26 7 minutes x 25K 4 months (SATA) (4.2M min.) SATA.2 GB/s 25: SATA2.5.3 GB/s => 22 GB/hr 5/3/ CSE52-S, Lec 22 Disk Storage 69

70 Advantages of Small Form-Factor Disk Drives Low cost/mb High MB/volume High MB/watt Low cost/actuator Cost and Environmental Efficiencies 5/3/ CSE52-S, Lec 22 Disk Storage 7

NOW Handout Page 1 S258 S99 1

NOW Handout Page 1 S258 S99 1 Areal Density COSC 535 Advanced Computer Slides modified from Hennessy CS252 course slides Why do we need disks Magnetic Disks RAID Advanced Dependability/Reliability/Availability I/O Benchmarks, and Performance

More information

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

CS2410: Computer Architecture. Storage systems. Sangyeun Cho. Computer Science Department University of Pittsburgh CS24: Computer Architecture Storage systems Sangyeun Cho Computer Science Department (Some slides borrowed from D Patterson s lecture slides) Case for storage Shift in focus from computation to communication

More information

Advanced Computer Architecture

Advanced Computer Architecture ECE 563 Advanced Computer Architecture Fall 29 Lecture 5: I/O 563 L5. Fall 29 I/O Systems Processor interrupts Cache Memory - I/O Bus Main Memory I/O Controller I/O Controller I/O Controller Disk Disk

More information

Review. EECS 252 Graduate Computer Architecture. Lec 18 Storage. Case for Storage. Outline

Review. EECS 252 Graduate Computer Architecture. Lec 18 Storage. Case for Storage. Outline Review EECS 5 Graduate Computer Architecture Lec 8 Storage David Patterson Electrical Engineering and Computer Sciences University of California, Berkeley http://www.eecs.berkeley.edu/~pattrsn http://vlsi.cs.berkeley.edu/cs5-s6

More information

Case for Storage. EEL 5764: Graduate Computer Architecture. Storage Ann Gordon-Ross Electrical and Computer Engineering University of Florida.

Case for Storage. EEL 5764: Graduate Computer Architecture. Storage Ann Gordon-Ross Electrical and Computer Engineering University of Florida. Case for Storage EEL 5764: Graduate Computer Architecture Storage Ann Gordon-Ross Electrical and Computer Engineering University of Florida! Shift in focus from computation to communication and storage

More information

Computer Science 146. Computer Architecture

Computer Science 146. Computer Architecture Computer Science 46 Computer Architecture Spring 24 Harvard University Instructor: Prof dbrooks@eecsharvardedu Lecture 22: More I/O Computer Science 46 Lecture Outline HW5 and Project Questions? Storage

More information

CS61C : Machine Structures

CS61C : Machine Structures inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures CS61C L40 I/O: Disks (1) Lecture 40 I/O : Disks 2004-12-03 Lecturer PSOE Dan Garcia www.cs.berkeley.edu/~ddgarcia I talk to robots Japan's growing

More information

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

CS61C - Machine Structures. Week 7 - Disks. October 10, 2003 John Wawrzynek CS61C - Machine Structures Week 7 - Disks October 10, 2003 John Wawrzynek http://www-inst.eecs.berkeley.edu/~cs61c/ CS61C wk 7 Disks UC Regents 1 Magnetic Disk common I/O device Computer Processor (active)

More information

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

Lecture 23: I/O Redundant Arrays of Inexpensive Disks Professor Randy H. Katz Computer Science 252 Spring 1996 Lecture 23: I/O Redundant Arrays of Inexpensive Disks Professor Randy H Katz Computer Science 252 Spring 996 RHKS96 Review: Storage System Issues Historical Context of Storage I/O Storage I/O Performance

More information

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

Today: Coda, xfs! Brief overview of other file systems. Distributed File System Requirements! Today: Coda, xfs! Case Study: Coda File System Brief overview of other file systems xfs Log structured file systems Lecture 21, page 1 Distributed File System Requirements! Transparency Access, location,

More information

Outline. EEL-4713 Computer Architecture I/O Systems. I/O System Design Issues. The Big Picture: Where are We Now? I/O Performance Measures

Outline. EEL-4713 Computer Architecture I/O Systems. I/O System Design Issues. The Big Picture: Where are We Now? I/O Performance Measures Outline EEL-4713 Computer Architecture I/O Systems I/O Performance Measures Types and Characteristics of I/O Devices Magnetic Disks Summary io.1 io.2 The Big Picture: Where are We Now? Today s Topic: I/O

More information

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

Page 1. Magnetic Disk Purpose Long term, nonvolatile storage Lowest level in the memory hierarchy. Typical Disk Access Time Review: Major Components of a Computer Processor Control Datapath Cache Memory Main Memory Secondary Memory (Disk) Devices Output Input Magnetic Disk Purpose Long term, nonvolatile storage Lowest level

More information

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

Agenda. Project #3, Part I. Agenda. Project #3, Part I. No SSE 12/1/10 // CS 6C: Great Ideas in Computer Architecture (Machine Structures) Project Speed- up and RAID Instructors: Randy H. Katz David A. PaGerson hgp://inst.eecs.berkeley.edu/~cs6c/fa // Fall - - Lecture #9

More information

Appendix D: Storage Systems (Cont)

Appendix D: Storage Systems (Cont) Appendix D: Storage Systems (Cont) Instructor: Josep Torrellas CS433 Copyright Josep Torrellas 1999, 2001, 2002, 2013 1 Reliability, Availability, Dependability Dependability: deliver service such that

More information

RAID (Redundant Array of Inexpensive Disks) I/O Benchmarks ABCs of UNIX File Systems A Study Comparing UNIX File System Performance

RAID (Redundant Array of Inexpensive Disks) I/O Benchmarks ABCs of UNIX File Systems A Study Comparing UNIX File System Performance Magnetic Disk Characteristics I/O Connection Structure Types of Buses Cache & I/O I/O Performance Metrics I/O System Modeling Using Queuing Theory Designing an I/O System RAID (Redundant Array of Inexpensive

More information

I/O CANNOT BE IGNORED

I/O CANNOT BE IGNORED 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 improves by ~10% per year and I/O remains the same.

More information

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

Agenda. Agenda 11/12/12. Review - 6 Great Ideas in Computer Architecture /3/2 Review - 6 Great Ideas in Computer Architecture CS 6C: Great Ideas in Computer Architecture (Machine Structures) Dependability and RAID Instructors: Krste Asanovic, Randy H. Katz hfp://inst.eecs.berkeley.edu/~cs6c/fa2.

More information

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

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568 UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering Computer Architecture ECE 568 Part 6 Input/Output Israel Koren ECE568/Koren Part.6. CPU performance keeps increasing 26 72-core Xeon

More information

Topics. Lecture 8: Magnetic Disks

Topics. Lecture 8: Magnetic Disks Lecture 8: Magnetic Disks SONGS ABOUT COMPUTER SCIENCE Topics Basic terms and operation Some history and trends Performance Disk arrays (RAIDs) SAVE THE CODE Written by Mikolaj Franaszczuk To the tune

More information

CSE502 Graduate Computer Architecture. Lec 22 Goodbye to Computer Architecture and Review

CSE502 Graduate Computer Architecture. Lec 22 Goodbye to Computer Architecture and Review CSE502 Graduate Computer Architecture Lec 22 Goodbye to Computer Architecture and Review Larry Wittie Computer Science, StonyBrook University http://www.cs.sunysb.edu/~cse502 and ~lw Slides adapted from

More information

Appendix D: Storage Systems

Appendix D: Storage Systems Appendix D: Storage Systems Instructor: Josep Torrellas CS433 Copyright Josep Torrellas 1999, 2001, 2002, 2013 1 Storage Systems : Disks Used for long term storage of files temporarily store parts of pgm

More information

CSE325 Principles of Operating Systems. Mass-Storage Systems. David P. Duggan. April 19, 2011

CSE325 Principles of Operating Systems. Mass-Storage Systems. David P. Duggan. April 19, 2011 CSE325 Principles of Operating Systems Mass-Storage Systems David P. Duggan dduggan@sandia.gov April 19, 2011 Outline Storage Devices Disk Scheduling FCFS SSTF SCAN, C-SCAN LOOK, C-LOOK Redundant Arrays

More information

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

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568 UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering Computer Architecture ECE 568 Part 6 Input/Output Israel Koren ECE568/Koren Part.6. Motivation: Why Care About I/O? CPU Performance:

More information

RAID (Redundant Array of Inexpensive Disks)

RAID (Redundant Array of Inexpensive Disks) Magnetic Disk Characteristics I/O Connection Structure Types of Buses Cache & I/O I/O Performance Metrics I/O System Modeling Using Queuing Theory Designing an I/O System RAID (Redundant Array of Inexpensive

More information

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

Concepts Introduced. I/O Cannot Be Ignored. Typical Collection of I/O Devices. I/O Issues Concepts Introduced I/O Cannot Be Ignored Assume a program requires 100 seconds, 90 seconds for accessing main memory and 10 seconds for I/O. I/O introduction magnetic disks ash memory communication with

More information

I/O CANNOT BE IGNORED

I/O CANNOT BE IGNORED 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 improves by ~10% per year and I/O remains the same.

More information

Chapter 6. Storage and Other I/O Topics

Chapter 6. Storage and Other I/O Topics Chapter 6 Storage and Other I/O Topics Introduction I/O devices can be characterized by Behaviour: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections

More information

Lecture 23: Storage Systems. Topics: disk access, bus design, evaluation metrics, RAID (Sections )

Lecture 23: Storage Systems. Topics: disk access, bus design, evaluation metrics, RAID (Sections ) Lecture 23: Storage Systems Topics: disk access, bus design, evaluation metrics, RAID (Sections 7.1-7.9) 1 Role of I/O Activities external to the CPU are typically orders of magnitude slower Example: while

More information

5.11 Parallelism and Memory Hierarchy: Redundant Arrays of Inexpensive Disks 485.e1

5.11 Parallelism and Memory Hierarchy: Redundant Arrays of Inexpensive Disks 485.e1 5.11 Parallelism and Memory Hierarchy: Redundant Arrays of Inexpensive Disks 485.e1 5.11 Parallelism and Memory Hierarchy: Redundant Arrays of Inexpensive Disks Amdahl s law in Chapter 1 reminds us that

More information

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

Computer Architecture Computer Science & Engineering. Chapter 6. Storage and Other I/O Topics BK TP.HCM Computer Architecture Computer Science & Engineering Chapter 6 Storage and Other I/O Topics Introduction I/O devices can be characterized by Behaviour: input, output, storage Partner: human or machine

More information

CS61C : Machine Structures

CS61C : Machine Structures CS 61C L27 RAID and Performance (1) inst.eecs.berkeley.edu/~cs61c/su06 CS61C : Machine Structures Lecture #27: RAID & Performance Outline Disks Part 2 RAID Performance 2006-08-15 Andy Carle CS 61C L27

More information

Storage Systems. Storage Systems

Storage Systems. Storage Systems Storage Systems Storage Systems We already know about four levels of storage: Registers Cache Memory Disk But we've been a little vague on how these devices are interconnected In this unit, we study Input/output

More information

Lecture 13. Storage, Network and Other Peripherals

Lecture 13. Storage, Network and Other Peripherals Lecture 13 Storage, Network and Other Peripherals 1 I/O Systems Processor interrupts Cache Processor & I/O Communication Memory - I/O Bus Main Memory I/O Controller I/O Controller I/O Controller Disk Disk

More information

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

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568 UNIVERSITY OF MASSACHUSETTS Dept of Electrical & Computer Engineering Computer Architecture ECE 568 art 5 Input/Output Israel Koren ECE568/Koren art5 CU performance keeps increasing 26 72-core Xeon hi

More information

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

www-inst.eecs.berkeley.edu/~cs61c/ 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

More information

Lecture 25: Dependability and RAID

Lecture 25: Dependability and RAID CS 61C: Great Ideas in Computer Architecture Lecture 25: Dependability and RAID Krste Asanović & Randy H. Katz http://inst.eecs.berkeley.edu/~cs61c/fa17 11/28/17 Fall 2017 Lecture #25 1 Storage Attachment

More information

CS 61C: Great Ideas in Computer Architecture. Dependability. Guest Lecturer: Paul Ruan

CS 61C: Great Ideas in Computer Architecture. Dependability. Guest Lecturer: Paul Ruan CS 61C: Great Ideas in Computer Architecture Dependability Guest Lecturer: Paul Ruan 8/2/2012 Lecture #27 1 Review WSC Servers on a rack, rack part of cluster Issues to handle include load balancing, failures,

More information

Dependency Redundancy & RAID

Dependency Redundancy & RAID Dependency Redundancy & RAID 1 Great Idea #6: Dependability via Redundancy Applies to everything from data centers to memory Redundant data centers so that can lose 1 datacenter but Internet service stays

More information

Review. EECS 252 Graduate Computer Architecture. Lec 18 Storage. Introduction to Queueing Theory. Deriving Little s Law

Review. EECS 252 Graduate Computer Architecture. Lec 18 Storage. Introduction to Queueing Theory. Deriving Little s Law EECS 252 Graduate Computer Architecture Lec 18 Storage David Patterson Electrical Engineering and Computer Sciences University of California, Berkeley Review Disks: Arial Density now 30%/yr vs. 100%/yr

More information

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

Chapter 10: Mass-Storage Systems. Operating System Concepts 9 th Edition Chapter 10: Mass-Storage Systems Silberschatz, Galvin and Gagne 2013 Chapter 10: Mass-Storage Systems Overview of Mass Storage Structure Disk Structure Disk Attachment Disk Scheduling Disk Management Swap-Space

More information

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

Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier Some material adapted from Mohamed Younis, UMBC CMSC 6 Spr 23 course slides Some material adapted from Hennessy & Patterson / 23 Elsevier Science Characteristics IBM 39 IBM UltraStar Integral 82 Disk diameter

More information

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

COS 318: Operating Systems. Storage Devices. Kai Li Computer Science Department Princeton University COS 318: Operating Systems Storage Devices Kai Li Computer Science Department Princeton University http://www.cs.princeton.edu/courses/archive/fall11/cos318/ Today s Topics Magnetic disks Magnetic disk

More information

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

CS152 Computer Architecture and Engineering Lecture 19: I/O Systems CS152 Computer Architecture and Engineering Lecture 19: I/O Systems April 5, 1995 Dave Patterson (patterson@cs) and Shing Kong (shing.kong@eng.sun.com) Slides available on http://http.cs.berkeley.edu/~patterson

More information

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

COS 318: Operating Systems. Storage Devices. Vivek Pai Computer Science Department Princeton University COS 318: Operating Systems Storage Devices Vivek Pai Computer Science Department Princeton University http://www.cs.princeton.edu/courses/archive/fall11/cos318/ Today s Topics Magnetic disks Magnetic disk

More information

Storage. Hwansoo Han

Storage. Hwansoo Han Storage Hwansoo Han I/O Devices I/O devices can be characterized by Behavior: input, out, storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections 2 I/O System Characteristics

More information

Chapter 10: Mass-Storage Systems

Chapter 10: Mass-Storage Systems Chapter 10: Mass-Storage Systems Silberschatz, Galvin and Gagne 2013 Chapter 10: Mass-Storage Systems Overview of Mass Storage Structure Disk Structure Disk Attachment Disk Scheduling Disk Management Swap-Space

More information

HP AutoRAID (Lecture 5, cs262a)

HP AutoRAID (Lecture 5, cs262a) HP AutoRAID (Lecture 5, cs262a) Ali Ghodsi and Ion Stoica, UC Berkeley January 31, 2018 (based on slide from John Kubiatowicz, UC Berkeley) Array Reliability Reliability of N disks = Reliability of 1 Disk

More information

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

Chapter 6. Storage and Other I/O Topics. ICE3003: Computer Architecture Fall 2012 Euiseong Seo Chapter 6 Storage and Other I/O Topics 1 Introduction I/O devices can be characterized by Behaviour: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections

More information

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

Administrivia. CMSC 411 Computer Systems Architecture Lecture 19 Storage Systems, cont. Disks (cont.) Disks - review Administrivia CMSC 411 Computer Systems Architecture Lecture 19 Storage Systems, cont. Homework #4 due Thursday answers posted soon after Exam #2 on Thursday, April 24 on memory hierarchy (Unit 4) and

More information

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

Virtual Memory. Reading. Sections 5.4, 5.5, 5.6, 5.8, 5.10 (2) Lecture notes from MKP and S. Yalamanchili Virtual Memory Lecture notes from MKP and S. Yalamanchili Sections 5.4, 5.5, 5.6, 5.8, 5.10 Reading (2) 1 The Memory Hierarchy ALU registers Cache Memory Memory Memory Managed by the compiler Memory Managed

More information

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

Chapter 6. Storage and Other I/O Topics. Jiang Jiang Chapter 6 Storage and Other I/O Topics Jiang Jiang jiangjiang@ic.sjtu.edu.cn [Adapted from Computer Organization and Design, 4 th Edition, Patterson & Hennessy, 2008, MK] Chapter 6 Storage and Other I/O

More information

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

Computer Organization and Structure. Bing-Yu Chen National Taiwan University Computer Organization and Structure Bing-Yu Chen National Taiwan University Storage and Other I/O Topics I/O Performance Measures Types and Characteristics of I/O Devices Buses Interfacing I/O Devices

More information

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

u Covered: l Management of CPU & concurrency l Management of main memory & virtual memory u Currently --- Management of I/O devices Where Are We? COS 318: Operating Systems Storage Devices Jaswinder Pal Singh Computer Science Department Princeton University (http://www.cs.princeton.edu/courses/cos318/) u Covered: l Management of CPU

More information

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

COS 318: Operating Systems. Storage Devices. Jaswinder Pal Singh Computer Science Department Princeton University COS 318: Operating Systems Storage Devices Jaswinder Pal Singh Computer Science Department Princeton University http://www.cs.princeton.edu/courses/archive/fall13/cos318/ Today s Topics Magnetic disks

More information

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?

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? CS252 Graduate Computer Architecture Lecture 5: I/O Introduction: Storage Devices & RAID January 3, 2 Prof David A Patterson Computer Science 252 Spring 2 Motivation: Who Cares About I/O? CPU Performance:

More information

Modern RAID Technology. RAID Primer A Configuration Guide

Modern RAID Technology. RAID Primer A Configuration Guide Modern RAID Technology RAID Primer A Configuration Guide E x c e l l e n c e i n C o n t r o l l e r s Modern RAID Technology RAID Primer A Configuration Guide 6th Edition Copyright 1997-2003 ICP vortex

More information

Definition of RAID Levels

Definition of RAID Levels RAID The basic idea of RAID (Redundant Array of Independent Disks) is to combine multiple inexpensive disk drives into an array of disk drives to obtain performance, capacity and reliability that exceeds

More information

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

I/O, Disks, and RAID Yi Shi Fall Xi an Jiaotong University I/O, Disks, and RAID Yi Shi Fall 2017 Xi an Jiaotong University Goals for Today Disks How does a computer system permanently store data? RAID How to make storage both efficient and reliable? 2 What does

More information

High-Performance Storage Systems

High-Performance Storage Systems High-Performance Storage Systems I/O Systems Processor interrupts Cache Memory - I/O Bus Main Memory I/O Controller I/O Controller I/O Controller Disk Disk Graphics Network 2 Storage Technology Drivers

More information

Storage System COSC UCB

Storage System COSC UCB Storage System COSC4201 1 1999 UCB I/O and Disks Over the years much less attention was paid to I/O compared with CPU design. As frustrating as a CPU crash is, disk crash is a lot worse. Disks are mechanical

More information

PANASAS TIERED PARITY ARCHITECTURE

PANASAS TIERED PARITY ARCHITECTURE PANASAS TIERED PARITY ARCHITECTURE Larry Jones, Matt Reid, Marc Unangst, Garth Gibson, and Brent Welch White Paper May 2010 Abstract Disk drives are approximately 250 times denser today than a decade ago.

More information

Chapter 6. Storage and Other I/O Topics

Chapter 6. Storage and Other I/O Topics Chapter 6 Storage and Other I/O Topics Introduction I/O devices can be characterized by Behavior: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections

More information

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

CISC 7310X. C11: Mass Storage. Hui Chen Department of Computer & Information Science CUNY Brooklyn College. 4/19/2018 CUNY Brooklyn College CISC 7310X C11: Mass Storage Hui Chen Department of Computer & Information Science CUNY Brooklyn College 4/19/2018 CUNY Brooklyn College 1 Outline Review of memory hierarchy Mass storage devices Reliability

More information

LECTURE 5: MEMORY HIERARCHY DESIGN

LECTURE 5: MEMORY HIERARCHY DESIGN LECTURE 5: MEMORY HIERARCHY DESIGN Abridged version of Hennessy & Patterson (2012):Ch.2 Introduction Programmers want unlimited amounts of memory with low latency Fast memory technology is more expensive

More information

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

Storage systems. Computer Systems Architecture CMSC 411 Unit 6 Storage Systems. (Hard) Disks. Disk and Tape Technologies. Disks (cont. Computer Systems Architecture CMSC 4 Unit 6 Storage Systems Alan Sussman November 23, 2004 Storage systems We already know about four levels of storage: registers cache memory disk but we've been a little

More information

Chapter 6. Storage and Other I/O Topics

Chapter 6. Storage and Other I/O Topics Chapter 6 Storage and Other I/O Topics Introduction I/O devices can be characterized by Behaviour: input, output, storage Partner: human or machine Data rate: bytes/sec, transfers/sec I/O bus connections

More information

Specifying Storage Servers for IP security applications

Specifying Storage Servers for IP security applications Specifying Storage Servers for IP security applications The migration of security systems from analogue to digital IP based solutions has created a large demand for storage servers high performance PCs

More information

1 of 6 4/8/2011 4:08 PM Electronic Hardware Information, Guides and Tools search newsletter subscribe Home Utilities Downloads Links Info Ads by Google Raid Hard Drives Raid Raid Data Recovery SSD in Raid

More information

Database Systems II. Secondary Storage

Database Systems II. Secondary Storage Database Systems II Secondary Storage CMPT 454, Simon Fraser University, Fall 2009, Martin Ester 29 The Memory Hierarchy Swapping, Main-memory DBMS s Tertiary Storage: Tape, Network Backup 3,200 MB/s (DDR-SDRAM

More information

HP AutoRAID (Lecture 5, cs262a)

HP AutoRAID (Lecture 5, cs262a) HP AutoRAID (Lecture 5, cs262a) Ion Stoica, UC Berkeley September 13, 2016 (based on presentation from John Kubiatowicz, UC Berkeley) Array Reliability Reliability of N disks = Reliability of 1 Disk N

More information

UCB CS61C : Machine Structures

UCB CS61C : Machine Structures inst.eecs.berkeley.edu/~cs61c UCB CS61C : Machine Structures Lecture 37 Disks 2008-04-28 Lecturer SOE Dan Garcia How much storage do YOU have? The ST506 was their first drive in 1979 (shown here), weighed

More information

ECE Enterprise Storage Architecture. Fall 2018

ECE Enterprise Storage Architecture. Fall 2018 ECE590-03 Enterprise Storage Architecture Fall 2018 RAID Tyler Bletsch Duke University Slides include material from Vince Freeh (NCSU) A case for redundant arrays of inexpensive disks Circa late 80s..

More information

Where We Are in This Course Right Now. ECE 152 Introduction to Computer Architecture Input/Output (I/O) Copyright 2012 Daniel J. Sorin Duke University

Where We Are in This Course Right Now. ECE 152 Introduction to Computer Architecture Input/Output (I/O) Copyright 2012 Daniel J. Sorin Duke University Introduction to Computer Architecture Input/Output () Copyright 2012 Daniel J. Sorin Duke University Slides are derived from work by Amir Roth (Penn) Spring 2012 Where We Are in This Course Right Now So

More information

Computer Architecture A Quantitative Approach, Fifth Edition. Chapter 2. Memory Hierarchy Design. Copyright 2012, Elsevier Inc. All rights reserved.

Computer Architecture A Quantitative Approach, Fifth Edition. Chapter 2. Memory Hierarchy Design. Copyright 2012, Elsevier Inc. All rights reserved. Computer Architecture A Quantitative Approach, Fifth Edition Chapter 2 Memory Hierarchy Design 1 Introduction Programmers want unlimited amounts of memory with low latency Fast memory technology is more

More information

CS5460: Operating Systems Lecture 20: File System Reliability

CS5460: Operating Systems Lecture 20: File System Reliability CS5460: Operating Systems Lecture 20: File System Reliability File System Optimizations Modern Historic Technique Disk buffer cache Aggregated disk I/O Prefetching Disk head scheduling Disk interleaving

More information

V. Mass Storage Systems

V. Mass Storage Systems TDIU25: Operating Systems V. Mass Storage Systems SGG9: chapter 12 o Mass storage: Hard disks, structure, scheduling, RAID Copyright Notice: The lecture notes are mainly based on modifications of the slides

More information

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

Chapter 10: Mass-Storage Systems. Operating System Concepts 9 th Edition Chapter 10: Mass-Storage Systems Silberschatz, Galvin and Gagne 2013 Objectives To describe the physical structure of secondary storage devices and its effects on the uses of the devices To explain the

More information

Chapter 6 Storage and Other I/O Topics

Chapter 6 Storage and Other I/O Topics Department of Electr rical Eng ineering, Chapter 6 Storage and Other I/O Topics 王振傑 (Chen-Chieh Wang) ccwang@mail.ee.ncku.edu.tw ncku edu Feng-Chia Unive ersity Outline 6.1 Introduction 6.2 Dependability,

More information

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

Mass-Storage. ICS332 - Fall 2017 Operating Systems. Henri Casanova Mass-Storage ICS332 - Fall 2017 Operating Systems Henri Casanova (henric@hawaii.edu) Magnetic Disks! Magnetic disks (a.k.a. hard drives ) are (still) the most common secondary storage devices today! They

More information

ECE331: Hardware Organization and Design

ECE331: Hardware Organization and Design ECE331: Hardware Organization and Design Lecture 28: System Dependability, Error Correction Codes and Virtual Machines Adapted from Computer Organization and Design, Patterson & Hennessy, UCB Overview

More information

CSE 153 Design of Operating Systems

CSE 153 Design of Operating Systems CSE 153 Design of Operating Systems Winter 2018 Lecture 22: File system optimizations and advanced topics There s more to filesystems J Standard Performance improvement techniques Alternative important

More information

Mass-Storage. ICS332 Operating Systems

Mass-Storage. ICS332 Operating Systems Mass-Storage ICS332 Operating Systems Magnetic Disks Magnetic disks are (still) the most common secondary storage devices today They are messy Errors, bad blocks, missed seeks, moving parts And yet, the

More information

An Introduction to RAID

An Introduction to RAID Intro An Introduction to RAID Gursimtan Singh Dept. of CS & IT Doaba College RAID stands for Redundant Array of Inexpensive Disks. RAID is the organization of multiple disks into a large, high performance

More information

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

Today s Papers. Array Reliability. RAID Basics (Two optional papers) EECS 262a Advanced Topics in Computer Systems Lecture 3 EECS 262a Advanced Topics in Computer Systems Lecture 3 Filesystems (Con t) September 10 th, 2012 John Kubiatowicz and Anthony D. Joseph Electrical Engineering and Computer Sciences University of California,

More information

- SLED: single large expensive disk - RAID: redundant array of (independent, inexpensive) disks

- SLED: single large expensive disk - RAID: redundant array of (independent, inexpensive) disks RAID and AutoRAID RAID background Problem: technology trends - computers getting larger, need more disk bandwidth - disk bandwidth not riding moore s law - faster CPU enables more computation to support

More information

HP SAS benchmark performance tests

HP SAS benchmark performance tests HP SAS benchmark performance tests technology brief Abstract... 2 Introduction... 2 Test hardware... 2 HP ProLiant DL585 server... 2 HP ProLiant DL380 G4 and G4 SAS servers... 3 HP Smart Array P600 SAS

More information

Thomas Polzer Institut für Technische Informatik

Thomas Polzer Institut für Technische Informatik Thomas Polzer tpolzer@ecs.tuwien.ac.at Institut für Technische Informatik Processor Interrupts Cache Memory I/O bus Main memory I/O controller I/O controller I/O controller Disk Disk Graphics output Network

More information

Copyright 2012, Elsevier Inc. All rights reserved.

Copyright 2012, Elsevier Inc. All rights reserved. Computer Architecture A Quantitative Approach, Fifth Edition Chapter 2 Memory Hierarchy Design 1 Introduction Introduction Programmers want unlimited amounts of memory with low latency Fast memory technology

More information

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

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University Che-Wei Chang chewei@mail.cgu.edu.tw Department of Computer Science and Information Engineering, Chang Gung University l Chapter 10: File System l Chapter 11: Implementing File-Systems l Chapter 12: Mass-Storage

More information

Computer Architecture. A Quantitative Approach, Fifth Edition. Chapter 2. Memory Hierarchy Design. Copyright 2012, Elsevier Inc. All rights reserved.

Computer Architecture. A Quantitative Approach, Fifth Edition. Chapter 2. Memory Hierarchy Design. Copyright 2012, Elsevier Inc. All rights reserved. Computer Architecture A Quantitative Approach, Fifth Edition Chapter 2 Memory Hierarchy Design 1 Programmers want unlimited amounts of memory with low latency Fast memory technology is more expensive per

More information

Storage Devices for Database Systems

Storage Devices for Database Systems Storage Devices for Database Systems 5DV120 Database System Principles Umeå University Department of Computing Science Stephen J. Hegner hegner@cs.umu.se http://www.cs.umu.se/~hegner Storage Devices for

More information

How to Speed up Database Applications with a Purpose-Built SSD Storage Solution

How to Speed up Database Applications with a Purpose-Built SSD Storage Solution How to Speed up Database Applications with a Purpose-Built SSD Storage Solution SAN Accessible Storage Array Speeds Applications by up to 25x Introduction Whether deployed in manufacturing, finance, web

More information

RAID SEMINAR REPORT /09/2004 Asha.P.M NO: 612 S7 ECE

RAID SEMINAR REPORT /09/2004 Asha.P.M NO: 612 S7 ECE RAID SEMINAR REPORT 2004 Submitted on: Submitted by: 24/09/2004 Asha.P.M NO: 612 S7 ECE CONTENTS 1. Introduction 1 2. The array and RAID controller concept 2 2.1. Mirroring 3 2.2. Parity 5 2.3. Error correcting

More information

Copyright 2012, Elsevier Inc. All rights reserved.

Copyright 2012, Elsevier Inc. All rights reserved. Computer Architecture A Quantitative Approach, Fifth Edition Chapter 2 Memory Hierarchy Design 1 Introduction Programmers want unlimited amounts of memory with low latency Fast memory technology is more

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 35 Mass Storage Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 Questions For You Local/Global

More information

Mass-Storage Structure

Mass-Storage Structure CS 4410 Operating Systems Mass-Storage Structure Summer 2011 Cornell University 1 Today How is data saved in the hard disk? Magnetic disk Disk speed parameters Disk Scheduling RAID Structure 2 Secondary

More information

Today: Coda, xfs. Case Study: Coda File System. Brief overview of other file systems. xfs Log structured file systems HDFS Object Storage Systems

Today: Coda, xfs. Case Study: Coda File System. Brief overview of other file systems. xfs Log structured file systems HDFS Object Storage Systems Today: Coda, xfs Case Study: Coda File System Brief overview of other file systems xfs Log structured file systems HDFS Object Storage Systems Lecture 20, page 1 Coda Overview DFS designed for mobile clients

More information

CS/EE 6810: Computer Architecture

CS/EE 6810: Computer Architecture CS/EE 6810: Computer Architecture Class format: Most lectures on YouTube *BEFORE* class Use class time for discussions, clarifications, problem-solving, assignments 1 Introduction Background: CS 3810 or

More information

Chapter 12: Mass-Storage

Chapter 12: Mass-Storage Chapter 12: Mass-Storage Systems Chapter 12: Mass-Storage Systems Revised 2010. Tao Yang Overview of Mass Storage Structure Disk Structure Disk Attachment Disk Scheduling Disk Management Swap-Space Management

More information

CMSC 424 Database design Lecture 12 Storage. Mihai Pop

CMSC 424 Database design Lecture 12 Storage. Mihai Pop CMSC 424 Database design Lecture 12 Storage Mihai Pop Administrative Office hours tomorrow @ 10 Midterms are in solutions for part C will be posted later this week Project partners I have an odd number

More information