|
You must provide sufficient virtual storage to DFSORT using
the guidelines given in Virtual storage guidelines and Virtual storage and sorting with data space or memory objects.
The following installation storage option values are recommended:
- SIZE
- The default, SIZE=MAX, is recommended. This enables DFSORT
to use as much virtual storage as possible, both above and below
16 MB virtual, subject to the limits set by MAXLIM and TMAXLIM.
When installation option SIZE=MAX, EXEC PARM option SIZE=MAX,
or run-time option MAINSIZE=MAX is in effect, the TMAXLIM, RESALL,
and RESINV options are used. These options are not used when
SIZE=n or MAINSIZE=n is in effect.
You should also be
aware of how the JCL REGION parameter can affect DFSORT virtual
storage allocation. While subject to the constraints of your site's
IEFUSI and IEALIMIT exits, the JCL REGION value limits the amount
of below 16 MB virtual storage.
DFSORT attempts to
place as much of its storage as possible above 16 MB virtual.
DFSORT, however, still needs sufficient storage below 16 MB virtual
to run effectively. In general, a REGION value of at least 512
KB is best. If DFSORT is called by a program, the REGION value
should be large enough to allow sufficient storage for DFSORT and
the program. If E15 or E35 user exits are used, a larger REGION
value might improve performance because these functions use more storage
below 16 MB virtual.
In general, the minimum of:
- REGION plus OVERRGN
- SIZE or MAINSIZE
- MAXLIM
determines the maximum storage available below 16 MB virtual.
Thus, with REGION=100K, OVERRGN=65536 (64 KB), SIZE=4194304
(4 MB), and MAXLIM=1048576 (1 MB), a total of 4 MB is available
to DFSORT, but only 164 KB can (and probably will) be available
below 16 MB virtual. On the other hand, if REGION=2M and SIZE=819200
(800 KB), then a total of 800 KB is available to DFSORT and all
of it can (but probably will not) be allocated below 16 MB virtual.
If the available storage below 16 MB virtual is insufficient,
DFSORT issues message ICE039A, which indicates the minimum additional
storage required below 16 MB virtual. Although the application
might run if you add the minimum storage indicated, it is recommended
that you increase either the REGION value, or the SIZE or MAINSIZE
value (or both) to provide sufficient virtual storage
for the application to run efficiently.
PARM parameter SIZE=n
or OPTION parameter MAINSIZE=n can be used to allow more (or less)
storage for specific applications for which the installation default
is not appropriate. For example, you might want to specify MAINSIZE=8M
to improve performance for a critical large application when your
installation default is 6 MB. Note that DSA is not used when SIZE=n
or MAINSIZE=n is specified.
When SIZE=n or MAINSIZE=n is
in effect, RESALL and RESINV are not used. Generally, this does
not cause a problem, but if it does you should ensure that the
user exit size values in your MODS statement, if any, are correct.
Because the user exit size in the MODS statement is only an estimate,
you can raise it if necessary to allow more reserved storage.
Alternatively, you could raise the REGION value or go back to using
SIZE=MAX or MAINSIZE=MAX to resolve the problem. See z/OS DFSORT Installation and Customization for
details of the relationships between SIZE, MAINSIZE, RESALL, RESINV,
REGION, and other storage parameters.
- TMAXLIM
- Although different sites have different requirements, experience
indicates that the TMAXLIM default of 6 MB is a good general purpose
value. Raising TMAXLIM from the default value might
provide additional performance benefits, particularly if a high percentage
of your site's DFSORT usage is spent on large sorting applications.
However, the DSA parameter (described later in this section)
only raises the storage for selected applications. Since a larger
TMAXLIM affects every job and could result in higher CPU times for
smaller jobs, setting DSA appropriately is a better choice than increasing
TMAXLIM.
Alternatively, you could specify SIZE=n or MAINSIZE=n
at run-time to provide more (or less) storage for specific DFSORT
applications.
- DSA
- DSA (Dynamic Storage Adjustment) allows DFSORT to change the
value of TMAXLIM dynamically if doing so should improve the performance
of a sort job. In general, the default of 64 (MB) is sufficient to
handle most sorts, but if your site runs very large sorts (multiple
GB of input data), you might consider increasing the DSA to 128.
- MAXLIM
- The default of 1 MB is generally sufficient. DFSORT performance
might be improved by specifying larger MAXLIM and REGION values for
applications with E15 or E35 user exits that use storage below 16
MB virtual.
- MINLIM
- A MINLIM value of at least the default value of 440 KB is recommended.
The major reason for using a lower MINLIM value is if your site
has applications that fail with a higher MINLIM value (and for
which there is no easy fix for the failures).
The MINLIM value
is important only for jobs which specify a SIZE or MAINSIZE value
that is less than the MINLIM value. By not using a value of MAX,
these jobs become locked into a specific virtual storage limit.
They must also reserve storage without using RESALL and RESINV,
usually by making the SIZE or MAINSIZE value less than the REGION
value or by coding user exit sizes on a MODS control statement.
Such applications are prime candidates for your tuning efforts.
One way to improve the performance of these
applications is to raise the MINLIM value (for example, to the
MAXLIM value). This enables such applications to run with a larger
amount of virtual storage. This strategy, however, might cause
some of these applications to fail due to insufficient reserved
storage. Using run-time options, you should change the failing
applications to use SIZE=MAX or MAINSIZE=MAX and set appropriate values
for user exit sizes (on the MODS control statement), RESALL, and
RESINV.
- OVERRGN
- The default and recommended values for this option are 64
KB for directly-invoked and 16 KB for program-invoked applications.
- RESALL
- The default is 4 KB and should normally not be modified.
If a storage related failure occurs when sufficient virtual storage
(REGION and SIZE) has been specified, try setting RESALL to
a larger value to correct the problem.
- RESINV
- Normally, a RESINV value of 16 KB is sufficient and is recommended.
- ARESALL
- ARESALL is seldom needed and can be kept at its default of 0.
- ARESINV
- ARESINV is seldom needed and can be kept at its default value
of 0.
See z/OS DFSORT Installation and Customization for
more information about these parameters.
|