Usage files grow with each compiler invocation. You can
prune the usage files with the utilization report tool.
When you generate a usage report, you can specify the following
two options to optionally prune the usage files:
When usage files are pruned, the usage report includes an information
message that indicates the number of records that have been pruned.
If you want to keep the generated report after the files are pruned,
you can redirect the output to a file.
To control the size of the usage files, you can prune the usage
files on a regular basis. You can create a cron job to do this automatically.
If you do not have the utilization reporting tool installed on
each machine where the usage files are located, you have the following
options:
- Export the file system from each machine where the usage files
exist and mount it on the machine where the utilization reporting
tool is installed. Then run the tool to prune the usage files on the
mounted network file system.
- After copying the usage files to the machine where the utilization
reporting tool is installed, delete the files and use new usage files
to capture any subsequent compiler invocations. This approach might
also speed up the report generation because the utilization reporting
tool is not accessing the usage files remotely and it is not spending
time pruning the usage files.
Pruning usage files might slow down the usage report generation
process, especially when the number or the size of the usage files
is large. If you do not want to prune the files every time you generate
reports, you can set the values for the
-qusagefilemaxage and
-qusagefilemaxsize options
as follows:
- If you generate the report daily, you can specify these two options
with very high values so pruning does not occur. The default value nomax can
be used in this case.
- You can set appropriate values for these two options and use a
separate cron job to prune the usage files weekly.
Note: To reduce contention for read and write access to the usage
files, do not run the utilization report tool or copy the usage files
when the compiler is being used.