Docsity

ADVANCED COMPUTER ARCHITECTURE Notes - Storage Systems - 2, Study notes of Advanced Computer Architecture

Toggle sidebar
bg1
7. Storage Systems
1. Explain various types of storage devices
Types of Storage Devices
There are various types of Storage devices such as magnetic disks, magnetic
tapes, automated tape libraries, CDs, and DVDs.
The First Storage device magnetic disks have dominated nonvolatile storage since
1965. Magnetic disks play two roles in computer systems:
Long Term, nonvolatile storage for files, even when no programs are running
A level of the memory hierarchy below main memory used as a backing store for
virtual memory during program execution.
A magnetic disk consists of a collection of platters (generally 1 to 12), rotating on a
spindle at 3,600 to 15,000 revolutions per minute (RPM). These platters are metal or
glass disks covered with magnetic recording material on both sides, so 10 platters have
20 recording surfaces.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download ADVANCED COMPUTER ARCHITECTURE Notes - Storage Systems - 2 and more Study notes Advanced Computer Architecture in PDF only on Docsity!

7. Storage Systems

1. Explain various types of storage devices Types of Storage Devices There are various types of Storage devices such as magnetic disks, magnetic tapes, automated tape libraries, CDs, and DVDs. The First Storage device magnetic disks have dominated nonvolatile storage since

  1. Magnetic disks play two roles in computer systems:  Long Term, nonvolatile storage for files, even when no programs are running  A level of the memory hierarchy below main memory used as a backing store for virtual memory during program execution. A magnetic disk consists of a collection of platters (generally 1 to 12), rotating on a spindle at 3,600 to 15,000 revolutions per minute (RPM). These platters are metal or glass disks covered with magnetic recording material on both sides, so 10 platters have 20 recording surfaces.

The disk surface is divided into concentric circles, designated tracks. There are typically 5,000 to 30,000 tracks on each surface. Each track in turn is divided into sectors that contain the information; a track might have 100 to 500 sectors. A sector is the smallest unit that can be read or written. IBM mainframes allow users to select the size of the sectors, although most systems fix their size, typically at 512 bytes of data. The sequence recorded on the magnetic media is a sector number, a gap, the information for that sector including error correction code, a gap, the sector number of the next sector, and so on. To read and write information into a sector, a movable arm containing a read/ write head is located over each surface. To read or write a sector, the disk controller sends a command to move the arm over the proper track. This operation is called a seek , and the time to move the arm to the desired track is called seek time. Average seek time is the subject of considerable misunderstanding. Disk manufacturers report minimum seek time, maximum seek time, and average seek time in their manuals. The first two are easy to measure, but the average was open to wide interpretation. The time for the requested sector to rotate under the head is the rotation latency or rotational delay. The average latency to the desired information is obviously halfway around the disk; if a disk rotates at 10,000 revolutions per minute (RPM), the average rotation time is therefore Average Rotation Time = 0.5/10,000RPM = 0.5/(10,000/60)RPM = 3.0ms The next component of disk access, transfer time, is the time it takes to transfer a block of bits, typically a sector, under the read-write head. This time is a function of the block size, disk size, rotation speed, recording density of the track, and speed of the electronics connecting the disk to computer. Transfer rates in 2001 range from 3 MB per second for the 3600 RPM, 1-inch drives to 65 MB per second for the 15000 RPM, 3.5- inch drives.

 Fixed rotating platters offer random access in milliseconds, but disks have a limited storage area and the storage medium is sealed within each reader.  Long strips wound on removable spools of “unlimited” length mean many tapes can be used per reader, but tapes require sequential access that can take seconds. One of the limits of tapes had been the speed at which the tapes can spin without breaking or jamming. A technology called helical scan tapes solves this problem by keeping the tape speed the same but recording the information on a diagonal to the tape with a tape reader that spins much faster than the tape is moving. This technology increases recording density by about a factor of 20 to 50. Helical scan tapes were developed for low-cost VCRs and camcorders, which brought down the cost of the tapes and readers. Automated Tape Libraries Tape capacities are enhanced by inexpensive robots to automatically load and store tapes, offering a new level of storage hierarchy. These nearline tapes mean access to terabytes of information in tens of seconds, without the intervention of a human operator. Flash Memory Embedded devices also need nonvolatile storage, but premiums placed on space and power normally lead to the use of Flash memory instead of magnetic recording. Flash memory is also used as a rewritable ROM in embedded systems, typically to allow software to be upgraded without having to replace chips. Applications are typically prohibited from writing to Flash memory in such circumstances. Like electrically erasable and programmable read-only memories (EEPROM), Flash memory is written by inducing the tunneling of charge from transistor gain to a floating gate. The floating gate acts as a potential well which stores the charge, and the charge cannot move from there without applying an external force. The primary difference between EEPROM and Flash memory is that Flash restricts write to multi-

kilobyte blocks, increasing memory capacity per chip by reducing area dedicated to control. Compared to disks, Flash memories offer low power consumption (less than 50 milliwatts), can be sold in small sizes, and offer read access times comparable to DRAMs. In 2001, a 16 Mbit Flash memory has a 65 ns access time, and a 128 Mbit Flash memory has a 150 ns access time.

2. Buses : Connecting I/O Devices to CPU/Memory Buses were traditionally classified as CPU-memory buses or I/O buses. I/O buses may be lengthy, may have many types of devices connected to them, have a wide range in the data bandwidth of the devices connected to them, and normally follow a bus standard. CPU-memory buses, on the other hand, are short, generally high speed, and matched to the memory system to maximize memory-CPU bandwidth. During the design phase, the designer of a CPU-memory bus knows all the types of devices that must connect together, while the I/O bus designer must accept devices varying in latency and bandwidth capabilities. To lower costs, some computers have a single bus for both memory and I/O devices. In the quest for higher I/O performance, some buses are a hybrid of the two. For example, PCI is relatively short, and is used to connect to more traditional I/O buses via bridges that speak both PCI on one end and the I/O bus protocol on the other. To indicate its intermediate state, such buses are sometimes called mezzanine Bus Design Decisions The design of a bus presents several options, as Figure 7.8 shows. Like the rest of the computer system, decisions depend on cost and performance goals. The first three options in the figure are clear—separate address and data lines, wider data lines, and multiple-word transfers all give higher performance at more cost. Option High performance Low cost Bus width Separate address and data lines Multiplex address and data lines Data width Wider is faster (e.g., 64 bits) Narrower is cheaper (e.g., 8 bits) Transfer size Multiple words have less bus overhead Single-word transfer is simpler Bus masters Multiple (requires arbitration) Single master (no arbitration)

  • De facto standards
  • Top-down
  • Design by committee (PCI, SCSI, ...) Some sample bus designs are shown below Interfacing Storage Devices to the CPU The I/O bus is connected to the main memory bus is shown in figure 7.

Processor interface with i/o bus can be done with two techniques one using interrupts and second using memory mapped I/O

  • I/O Control Structures
    • Polling
    • Interrupts
    • DMA
    • I/O Controllers
    • I/O Processors The simple interface, in which the CPU periodically checks status bits to see if it is time for the next I/O operation, is called polling.

inexpensive disks , although some have re-named it to redundant array of independent disks The several approaches to redundancy have different overhead and perfor-mance. Figure 7.17 shows the standard RAID levels. It shows how eight disks of user data must be supplemented by redundant or check disks at each RAID level. It also shows the minimum number of disk failures that a system would survive. RAID level Minimum number of Disk faults survived Example Data disks Corresponding Check disks Corporations producing RAID products at this level 0 Non-redundant striped 0 8 0 Widely used 1 Mirrored 1 8 8 EMC, Compaq (Tandem), IBM 2 Memory-style ECC

3 Bit-interleaved parity 1 8 1 Storage Concepts 4 Block-interleaved parity 1 8 1 Network Appliance 5 Block-interleaved distributed parity 1 8 1 Widely used 6 P+Q redundancy 2 8 2 FIGURE 7.17 RAID levels, their fault tolerance, and their overhead in redundant disks. No Redundancy (RAID 0) This notation is refers to a disk array in which data is striped but there is no redundancy to tolerate disk failure. Striping across a set of disks makes the collection appear to software as a single large disk, which simplifies storage management. It also improves performance for large accesses, since many disks can operate at once. Video editing systems, for example, often stripe their data. RAID 0 something of a misnomer as there is no redundancy, it is not in the original RAID taxonomy, and striping predates RAID. However, RAID levels are often left to the operator to set when creating a storage system, and RAID 0 is often listed as one of the options. Hence, the term RAID 0 has become widely used.

Mirroring (RAID 1) This traditional scheme for tolerating disk failure, called mirroring or shadowing , uses twice as many disks as does RAID 0. Whenever data is written to one disk, that data is also written to a redundant disk, so that there are always two copies of the information. If a disk fails, the system just goes to the “mirror” to get the desired information. Mirroring is the most expensive RAID solution, since it requires the most disks. The RAID terminology has evolved to call the former RAID 1+0 or RAID 10 (“striped mirrors”) and the latter RAID 0+1 or RAID 01 (“mirrored stripes”). Bit-Interleaved Parity (RAID 3) The cost of higher availability can be reduced to 1/ N , where N is the number of disks in a protection group. Rather than have a complete copy of the original data for each disk, we need only add enough redundant information to restore the lost information on a failure. Reads or writes go to all disks in the group, with one extra disk to hold the check information in case there is a failure. RAID 3 is popular in applications with large data sets, such as multimedia and some scientific codes. Parity is one such scheme. Readers unfamiliar with parity can think of the redundant disk as having the sum of all the data in the other disks. When a disk fails, then you subtract all the data in the good disks from the parity disk; the remaining information must be the missing information. Parity is simply the sum modulo two. The assumption behind this technique is that failures are so rare that taking longer to recover from failure but reducing redundant storage is a good trade-off. Block-Interleaved Parity and Distributed Block-Interleaved Parity (RAID 4 and RAID 5) In RAID 3, every access went to all disks. Some applications would prefer to do smaller accesses, allowing independent accesses to occur in parallel. That is the purpose of the next RAID levels. Since error-detection information in each sector is checked on reads to see if data is correct, such “small reads” to each disk can occur independently as long as the minimum access is one sector.

Figure 7.19 shows how data are distributed in RAID 4 vs. RAID 5. As the organization on the right shows, in RAID 5 the parity associated with each row of data blocks is no longer restricted to a single disk. This organization allows multiple writes to occur simultaneously as long as the stripe units are not located in the same disks. For example, a write to block 8 on the right must also access its parity block P2, thereby occupying the first and third disks. A second write to block 5 on the right, implying an update to its parity block P1, accesses the second and fourth disks and thus could occur at the same

D0'^ D0^ D1^ D2^ D3 P

D

D1 D2 D

P'

new

data

old

data

old

parity

XOR

XO

(1. Read) (2. Read)

(3. Write) (4. Write)

time as the write to block 8. Those same writes to the organization on the left would result in changes to blocks P1 and P2, both on the fifth disk, which would be a bottleneck. P+Q redundancy (RAID 6) Parity based schemes protect against a single, self-identifying failures. When a single failure is not sufficient, parity can be generalized to have a second calculation over the data and another check disk of information. Yet another parity block is added to allow recovery from a second failure. Thus, the storage overhead is twice that of RAID 5. The small write shortcut of Figure 7.18 works as well, ex-cept now there are six disk accesses instead of four to update both P and Q information. Errors and Failures in Real Systems Publications of real error rates are rare for two reasons. First academics rarely have access to significant hardware resources to measure. Second industrial, researchers are rarely allowed to publish failure information for fear that it would be used against their companies in the marketplace. Below are four exceptions. Berkeley’s Tertiary Disk The Tertiary Disk project at the University of California created an art-image server for the Fine Arts Museums of San Francisco. This database consists of high quality images of over 70,000 art works. The database was stored on a clus-ter, which consisted of 20 PCs containing 368 disks connected by a switched Ethernet. It occupied in seven 7- foot high racks. Component Total in System Total Failed

Failed SCSI Controller 44 1 2.3% SCSI Cable 39 1 2.6% SCSI Disk 368 7 1.9% IDE Disk 24 6 25.0%

maintenance. Shrinking number of chips and connectors per system plus software’s ability to tolerate hardware faults reduced hardware’s contribution to only 7% of failures by 1989. And when hardware was at fault, software embedded in the hardware device (firmware) was often the culprit. The data indicates that software in 1989 was the major source of reported outages (62%), followed by system operations (15%). 1985 1987 1989 The problem with any such statistics are that these data only refer to what is reported; for example, environmental failures due to power outages were not reported to Tandem because they were seen as a local problem.

VAX

The next example is also from industry. Murphy and Gent [1995] measured faults in VAX systems. They classified faults as hardware, operating system, system management, or application/networking. Figure 7.22 shows their data for 1985 and 1993. They tried to improve the accuracy of data on operator faults by having the system automatically prompt the operator on each boot for the reason for that reboot. They also classified consecutive crashes to the same fault as operator fault. Note that the hardware/operating system went from causing 70% of the failures in 1985 to 28% in

  1. Murphy and Gent expected system management to be the primary dependability challenge in the future. FCC The final set of data comes from the government. The Federal Communications Commission (FCC) requires that all telephone companies submit explanations when they experience an outage that affects at least 30,000 people or lasts thirty minutes. These detailed disruption reports do not suffer from the self-reporting problem of earlier figures, as investigators determine the cause of the outage rather than operators of the equipment.

received. Airline reservations systems as well as banks are traditional customers for TP. This report led to the Transaction Processing Council , which in turn has led to seven benchmarks since its founding. Benchmark Data Size (GB) Performance Metric Date of First Results A: Debit Credit (retired) 0.1 to 10 transactions per second July, 1990 B: Batch Debit Credit (retired) 0.1 to 10 transactions per second July, 1991 C: Complex Query OLTP 100 to 3000 (minimum 0.

  • tpm) new order transactions per minute September, 1992 D: Decision Support (retired) 100 , 300, 1000 queries per hour December, 1995 H: Ad hoc decision support 100, 300, 1000 queries per hour October, 1999 R: Business reporting decision support 1000 queries per hour August, 1999 W: Transactional web benchmark ≈ 50, 500 web interactions per second July, 2000 FIGURE 7.31 Transaction Processing Council Benchmarks. The summary results include both the performance metric and the price-performance of that metric. TPC-A, TPC-B, and TPC-D were retired. The TPC benchmarks were either the first, and in some cases still the only ones, that have these unusual characteristics: Price is included with the benchmark results. The cost of hardware, software, and five-year maintenance agreements is included in a submission, which en-ables evaluations based on price-performance as well as high performance. The data set generally must scale in size as the throughput increases. The benchmarks are trying to model real systems, in which the demand on the sys-tem and the size of the data stored in it increase together. It makes no sense, for example, to have thousands of people per minute access hundreds of bank ac-counts.

The benchmark results are audited. Before results can be submitted, they must be approved by a certified TPC auditor, who enforces the TPC rules that try to make sure that only fair results are submitted. Results can be challenged and disputes resolved by going before the TPC council. Throughput is the performance metric but response times are limited. For ex- ample, with TPC-C, 90% of the New-Order transaction response times must be less than 5 seconds. An independent organization maintains the benchmarks. Dues collected by TPC pay for an administrative structure including a Chief Operating Office. This organization settles disputes, conducts mail ballots on approval of changes to benchmarks, hold board meetings, and so on. SPEC System-Level File Server (SFS) and Web Benchmarks : The SPEC benchmarking effort is best known for its characterization of processor performance, but has created benchmarks for other fields as well. In 1990 seven companies agreed on a synthetic benchmark, called SFS, to evaluate systems running the Sun Microsystems network file service NFS. This benchmark was upgraded to SFS 2. (also called SPEC SFS97) to include support for NSF version 3, using TCP in addition to UDP as the transport protocol, and making the mix of operations more realistic. Figure 7.32 shows average response time versus throughput for four systems. Unfortunately, unlike the TPC benchmarks, SFS does not normalize for different price configurations. The fastest system in Figure 7.32 has 7 times the number of CPUs and disks as the slowest system, but SPEC leaves it to you to calculate price versus performance. As performance scaled to new heights, SPEC discovered bugs in the benchmark that impact the amount of work done during the measurement periods. Hence, it was retired in June 2001. SPEC WEB is a benchmark for evaluating the performance of World Wide Web servers. The SPEC WEB99 workload simulates accesses to a web service provider, where the server supports home pages for several organizations. Each home page is a collection of files ranging in size from small icons to large docu-ments and images, with some files