Information Technology Reference
In-Depth Information
introduction
reduction as the sole objective. However, this can
be a misleading metric that may not accurately
reflect real system performance. For example,
requesting ten sequential disk blocks can be com-
pleted much faster than requesting three random
disk blocks, where disk seeking is involved. To
improve real system performance, spatial local-
ity, a factor that can make a difference as large
as an order of magnitude in disk performance,
must be considered. However, spatial locality
is unfortunately ignored in current buffer cache
managements. In the discussion of this chapter,
spatial locality specifically refers to the sequen-
tiality of the disk placements of the continuously
requested blocks.
Another effort to break the disk bottleneck
is reducing disk arm seeks through I/O request
scheduling. I/O scheduler reorders pending re-
quests in a block device's request queue into a
dispatching order that results in minimal seeks
and thereafter maximal global disk throughput.
Example schedulers include Shortest-Seek-Time-
First (SSTF), C-SCAN, as well as the Deadline
and Anticipatory I/O schedulers (Iyer et al. 2001)
adopted in the current Linux kernels.
The third effort is prefetching. A prefetching
manager predicts future request patterns associated
with a file opened by a process. If a sequential
access pattern is detected, then the prefetching
manager issues requests for the blocks following
the current on-demand block on behalf of the
process. Because a file is usually contiguously
allocated on disk, these prefetching requests can
be fulfilled quickly with few disk seeks.
While I/O scheduling and prefetching can
effectively exploit spatial locality and dramati-
cally improve disk throughput for workloads
with dominant sequential accesses, their ability
to deal with workloads mixed with sequential
and random data accesses, such as those in Web
services, databases, and scientific computing ap-
plications, is very limited. This is because these
two strategies are positioned at a level lower than
the buffer cache. While the buffer cache receives
The hard drive is the most commonly used sec-
ondary storage device supporting file accesses
and virtual memory paging. While its capacity
growth pleasantly matches the rapidly increas-
ing data storage demand, its electromechanical
nature causes its performance improvements to
lag painfully far behind processor speed progress.
It is apparent that the disk bottleneck effect is
worsening in modern computer systems, while the
role of the hard disk as dominant storage device
will not change in the foreseeable future, and the
amount of disk data requested by applications
continues to increase.
The performance of a disk is constrained by its
mechanical operations, including disk platter rota-
tion ( spinning ) and disk arm movement ( seeking ).
A disk head has to be on the right track through
seeking and on the right sector through spinning
for reading/writing its desired data. Between the
two moving parts of a disk drive affecting its
performance, the disk arm is its Achilles' Heel.
This is because an actuator has to move the arm
accurately to the desired track through a series
of actions including acceleration, coast, decel-
eration, and settle. As an example, for a typical
high performance drive of 10,000 RPM, average
seek time is 6.5 milliseconds, while its average
rotation time is 3 milliseconds. Thus, accessing
of a stream of sequential blocks on the same track
achieves a much higher disk throughput than that
accessing of several random blocks does.
In the current practice, there are several major
efforts in parallel to break the disk bottleneck. One
effort is to reduce disk accesses through memory
caching. By using replacement algorithms to ex-
ploit the temporal locality of data accesses, where
data are likely to be re-accessed in the near future
after they are accessed, requests for on-disk data
can be satisfied without actually being passed to
disk. To minimize disk activities in the number
of requested blocks, all current replacement al-
gorithms are designed by choosing block miss
Search WWH ::




Custom Search