Not sure if the is the right place for my question...yet anyway...
can any one tell me how I can calculate optimal region szie for a zSeries batch job ?
<Personal opinion on> Few, if any programs are written that way. I don't actually do Cobol. Most programs that process large amounts of data read a row of data, extract data from the row, possibly stash select bits away in storage for later use, and continue on. I do a lot of SMF work, and most of those programs work that way.ocjohnh wrote:... the ways of program to manage the data (e.g. a cobol pgm handles a table with million rows of records) …
I guess that's true, but it's not a given. It depends on the data. It's true of most of my SMF programs.ocjohnh wrote:... the volume size of input data to the batch program in JCL (i.e. more data, more region size requirements) ...
Too some extent EXCP count can be reduced by other means. Again, it depends on many things.ocjohnh wrote:... high EXCP count for the job execution (e.g. if higher EXCP count, then higher region size might help somehow) ...
Many of my programs are AMODE 31, RMODE 24. and allocate storage above the line. RMODE 24 because control areas like DCBs are in the program text and must be below the line. Truthfully, the programs are rarely very large, but the amount of data they process can be quite large. Writing Assembler for RMODE ANY is rarely worth the hassle.ocjohnh wrote:... do the rmode and amode for the program also take effect on the consumption for region size ? ...
One question you need to consider: optimal from what standpoint? Optimal from the program standpoint may be wasteful for the system, and vice versa. Broadly speaking, your site support group should be able to provide some guidance. Each site is somewhat different so what I say here may -- or may not -- apply to your site. As a simple example, many sites prohibit using REGION=0(K or M) due to potential system problems; other sites encourage the use of REGION=0K/0M.is it possible for us to identify some areas that we can put into consideration if we have to find out the optimal size ?
I can imagine a few areas as below:
1) the ways of program to manage the data (e.g. a cobol pgm handles a table with million rows of records)
2) the volume size of input data to the batch program in JCL (i.e. more data, more region size requirements)
3) the high EXCP count for the job execution (e.g. if higher EXCP count, then higher region size might help somehow)
do the rmode and amode for the program also take effect on the consumption for region size ? or any other things we can put them into consideration ?
This will let the program use whatever is available. However, your site may override REGION=0M/0K to something else through an installation exit. Only your site support group can tell you for sure.A value equal to 0K or 0M — gives the job all the storage available below and
above 16 megabytes. The resulting size of the region below and above 16
megabytes is installation-dependent. When REGION=0K/0M is specified, the
MEMLIMIT is set to NOLIMIT.
Note:
This may cause storage problems. See the Considerations When Using the
REGION parameter section for more information.
Considerations when using the REGION parameter
Specifying a REGION size that gives the job all the available storage below the 2
GB bar, such as 0K or any value greater than 16,384K, can cause storage problems
if the IBM- or installation-supplied routine IEALIMIT or IEFUSI is not used to
establish a limiting value.