Notes 7

Secondary Memory Devices --- Tapes, Disks, and Drums

TABLE: Overview of Storage Media

Organization of a Magnetic Tape:
Tape parameters:
These can be used for time and space computations as indicated in both texts. (We will ignore the factors labelled * in these computations.)

The stop time is the time it takes for the tape to slow from running speed to a stop; the start time is the time it takes to speed back up from a stop to running speed. To access a block if we stop between each pair of blocks requires a start, transfer of the data, and a stop. The fly time is the time it takes to cross the inter-block gap at running speed, possibly as a result of a skip command (see below).

A given homogeneous file on a given tape also has the following derived parameters:

Disks and Drums:
In a very loose sense, the difference between a disk and a drum is the difference between the early Edison cylinders, and more recent records or CDs.

  1. Data, however, is organized in concentric (for disks) or parallel (for drums) regions ("tracks"), not as a single thread of data as in either of the two musical media
  2. The tracks themselves are frequently formatted into sectors of fixed size.
  3. There is, moreover, one other key difference between a disk and a phonograph or CD platter:
  4. Since an inner track has less area than an outer track, but tracks are all of the same width and must hold the same amount of data, the further toward the center of the disk, the higher the data density.
  5. There are typically 50--1000 usable tracks on a surface of a disk (the number on a drum is more variable).
Fixed and Movable disks and read/write heads:

  1. Information on a disk or a drum is accessed by a read-write head, located a small distance away from the track containing the data.
  2. Disks and drums are either fixed or (re)movable --- the name reflects a number of related design issues.
  3. Movable disks typically have one read-write head per surface, which must be moved to the appropriate track (inward toward the center or out toward the edge) to access data.
  4. Fixed disks/drums, in contrast, have one read-write head per track.
  5. For drums, data density is constant (why?), and the drum can pretty easily be removed regardless of the arrangement of read-write heads (again, why?).
Use of disks and drums:
  1. All three of these alternatives (drum, fixed disk, removable disk) support all of the file organizations we have discussed, are are subject to roughly the same constraints.
  2. For speed and ease, the general rule is: drum beats fixed beats removable, but of course costs and/or physical space are in reverse order.
  3. In general:
Cylinders:
  1. On movable disks, the cost of moving the arms is large enough that it is preferable to read as much data as possible from the same track location.
  2. Thus, the preferred layout for a file is not as consecutive tracks on a single surface, but in the same track location on adjacent surfaces.
  3. A cylinder on a disk consists of the same track on each surface; a sector on a disk is addressed as
             ( cylinder, track, sector  ).
  1. This is still true for fixed disks, but the gain is not so dramatic. Since drums have only a two-dimensional data space, there is nothing like a cylinder on a drum.)
Fixed sectors versus blocks:
  1. On most disks, the tracks are organized into a fixed number of sectors of fixed size.
  2. The alternative is to allow for variable-sized blocks in a track. There are two possibilities:
Space and time parameters for a disk:
(See the text on space and time computations.)

Note that we can assume that most accesses to successive cylinders for a file have only a best- case seek time cost, since these cylinders will typically be adjacent.

Synchronization and hopscotching:
Multi-processing:
    1. The above assumptions on synchronization and on seek time between cylinders (and in fact time computations in general) are invalidated if multiple processes or users need to access different parts of the disk at the same time.