Previous Topic: Calculating the Size of an Unsorted IndexNext Topic: Sizing a Megabase


Placing Areas in Files

Guidelines

You can assign all areas in a database to a single file or you can distribute areas over several files. The following table provides some guidelines for assigning areas to files.

The relationship between areas and files can be defined as one-to-one, one-to-many, many-to-one, or many-to-many. Each arrangement has its advantages and disadvantages.

Relationship

Advantages

Disadvantages

One area to one file

  • Allows ease of maintenance
  • Facilitates recovery
  • Provides maximum flexibility in assigning areas to buffers
  • If used with VSAM, this arrangement can require excessive VSAM memory requirements (GETVIS).

One area to many files

  • Minimizes head/channel contention by spreading dataover multiple packs
  • Optimizes processing of large and/or highly active areas

 

Many areas to one file

  • Recommended for small, stable areas that are not used often
  • Restricts buffer allocations
  • Complicates DBA maintenance

Many areas to many files

 

  • Severely restricts buffer allocations
  • Complicates DBA maintenance
  • Minimizes flexibility in data set placement on disk
  • Complicates recovery procedures
  • Should be avoided

Processing considerations

When assigning areas to files, you should keep in mind the following processing considerations.

Input/output seek time

Follow these guidelines for minimizing seek time:

For more specific guidelines, consult your hardware vendor publications for the hardware devices used at your installation.

Access-arm contention

To reduce contention for use of the access arm, you can place concurrently active data sets under different access mechanisms.

Minimizing seek time

If you need to keep all areas online, you can reduce seek time by mapping the areas into files allocated across all the disk volumes. For example, you can allocate nine files, three on each volume, and map each area across all three volumes. This reduces the number of cylinders across which the disk heads must move to process any one application, as shown below.

The diagram below shows how entities used for one application can be distributed over all volumes to limit head movement.

Sizing considerations

As you assign areas to files, you need to keep in mind the following sizing considerations: