The last ten years have witnessed a
massive increase in the performance level of PC network workstations and
servers. Electronic advances have enabled CPU and video performance to improve
50 to 100 times. However, mechanically bound disk I/O performance has become an
ever increasing bottleneck. Disk I/O performance has only improved by about
five times over the same period. This performance mismatch will only worsen as
we implement ever more demanding applications such as image processing, CAD,
database, and data acquisition.
Even more
importantly, data reliability and availability must be assured as more and more
mission critical applications migrate to LANs. Drive manufacturers have made
great advances in disk reliability. The MTBF (Mean Time Between Failure) for
these drives has also increased (although perhaps not as much as the marketing
arms of the drive makers might like to claim). Even though the likelihood of a
drive failure has decreased, many critical applications cannot afford any
system downtime. Many corporations have found that implementing some form of
data redundancy can help to guard against the risk of a drive failure.
Network administrators are
continually seeking ways to improve system performance and reliability. One
method of achieving these dual and often opposing goals is to use RAID
(Redundant Array of Independent Disks) technology.
Why RAID?
Disk I/O is relatively slow because
it is mechanical. A disk read or write involves two processes. First positioning
the R/W head, and second transferring the information to/from the disk. Head
positioning is limited by seek time and disk rotation to the start of the data
(rotational latency). Data transfer occurs one bit at a time and is limited by
the speed of rotation and the density of the data. One method that can be used
to speed the transfer of data is to use many disks in parallel. For example, if
a disk is capable of a given number of I/O transactions per second, then two
disks are theoretically capable of twice that many. Similarly, if one disk can
transfer a certain amount of data, then two disks acting together can transfer
twice as much data. Additional disks would continue this increase in I/O
capability until some other component of the computer system became the
limiting factor.
System managers often try to
accomplish this by manually spreading data among several disks so that each
disk receives a somewhat equal share of the system load.
This I/O tuning process can yield
good results but is limited by two factors:
(1) It doesn’t speed the transfer of
data for a single file; it only increases the number of files being accessed
concurrently. And
(2) system I/O demands change
minute-to-minute; it is rarely perfectly balanced and certainly won’t stay that
way over time.
A disk array can provide better
performance because it automatically divides a read/write request among its
member disks. For example, if a read/write request involved four 4KB blocks of
data, then four disks operating in an array could theoretically provide four
times the transfer rate of a single drive because each drive would only need to
handle one block of data and they could each operate at the same time. In
practice the total throughput would not be quite that high due to the overhead
of managing four drives. Additionally, data redundancy can be built into a disk
array, which protects against drive failure. It is this redundancy which
creates a RAID array. And the different ways in which this redundancy can be
achieved results in different levels of RAID. Each RAID level has benefits and
tradeoffs, explained below.
Parallel vs.
Independent Access Arrays
Parallel
Access Arrays. Parallel access arrays are arrays in which every member disk
participates in every I/O operation. They provide a high data transfer rate
because the data for any given read/write operation is spread among the member
disks and is accessed simultaneously. The data transfer rate will be
approximately equal (within 5%) to the sum of the transfer rates of the member disks.
The disk I/O rate (number of individual read/writes per second) is similar to
the I/O rate for a single disk, because the disks in a parallel access array
work in unison to access only one block of data at a time. In other words, a
parallel access array will access only one file at a time, but will do so at a
very high transfer rate. Some implementations of parallel access arrays also
require synchronized rotation of member disks. Disk synchronization requires
disks that support this feature. RAID levels 2 and 3 are parallel access
arrays.
Independent
Access Arrays.
Independent Access Arrays are arrays in which the member disks operate
independently, even to the extent of satisfying multiple I/O requests
concurrently. They provide a high disk I/O rate because each disk can be
servicing a separate I/O request. The disk I/O rate will be approximately equal
(within 5%) to the sum of the I/O rates of the member disks. The data transfer
rate for a given block is the same as the transfer rate for a single disk
because each block is stored on only one member disk. The total system transfer
rate for an independent access array is similar to a parallel access array but
may be split between several unrelated I/O requests. RAID levels 4 and 5 are
independent access arrays. RAID levels 0 and 1 may be either parallel or
independent but are usually implemented as independent arrays.
Which level is best
The best implementation depends on many factors,
including cost, I/O transfer load, I/O transaction rate, and the ratio of reads
to writes for you system. The following chart summarizes the characteristics of
each level:
RAID
Level 0
|
Very
high transfer rate, but an increased risk of data loss
|
RAID
Level 1
|
Very
high data availability but incurs a 50% cost in storage space.
|
RAID
Level 0 & 1
|
Both
the benefits of level 0 and level 1—high transfer rate and high data
availability—but incurs a 50% cost in storage space
|
RAID
Level 2
|
not
commonly used
|
RAID
Level 3
|
Very
high data transfer rate, I/O rate similar to that of a stand-alone disk at a
cost of 1 drive
|
RAID
Level 4
|
The
read/modify/write cycle for the dedicated parity drive induces such a
performance penalty that RAID level 5 is always a better choice for an
independent access array
|
RAID
Level 5
|
Transfer
rate higher than that of a single device but lower than that of level 3, very
high I/O transaction rate at a cost of 1 drive
|
A
redundant storage system does not lessen the necessity for adequate system
backups.
RAID
levels greatly improve performance of disk storage systems. At the same time,
greater data reliability and availability can be achieved. All at a reasonable
cost.

No comments:
Post a Comment