IBM BPM, V8.0.1, All platforms > Tuning > Advanced tuning > Database: DB2 for z/OS specific tuning

Size log files appropriately

To improve log write performance, size log files appropriately.

The following guidelines apply:

Choose a large size for OUTPUT BUFFER size

The OUTPUT BUFFER field of installation panel DSNTIPL lets you specify the size of the output buffer used for writing active log data sets. The maximum size of this buffer (OUTBUFF) is 400 000 KB. Choose as large a size as your system can tolerate to decrease the number of forced I/O operations that occur because there are no more buffers. A large size can also reduce the number of wait conditions.

Choose fast devices for log data sets

The devices assigned to the active log data sets must be fast ones. Because of its very high sequential performance, ESS can be used in environments where the write activity is high to avoid logging bottlenecks.

Avoid device contention

Place the copy of the bootstrap data set and, if using dual active logging, the copy of the active log data sets, on volumes that are accessible on a path different than that of their primary counterparts.

Preformat new active log data sets

Whenever you allocate new active log data sets, preformat them using the DSNJLOGF utility described in the DB2 Utility Guide and Reference. This action avoids preformatting the log, which normally occurs at unpredictable times.

Active logs are reused only after the active log has been archived using the DB2 automatic archiving process.

During a rollback, restart, and database recovery, the performance impact of log reads is evident. DB2 must read from the log and apply changes to the data on disk. Every process that requests a log read has an input buffer dedicated to that process. DB2 searches for log records in the following order:

  1. Output buffer

  2. Active log data set

  3. Archive log data set

If the log records are in the output buffer, DB2 reads the records directly from that buffer.

If the log records are in the active or archive log, DB2 moves those log records into the input buffer used by the reading process (such as a recovery job or a rollback).

It is always fastest for DB2 to read the log records from the active log rather than the archive log. Access to archived information can be delayed for a considerable length of time if a unit is unavailable or if a volume mount is required (for example, a tape mount).

To improve log read performance:

Database: DB2 for z/OS specific tuning