If you want to maximize real storage usage, choose a buffer size (bufsize) that fits efficiently onto a page. The following calculations can be made to determine an optimum value for your environment. When selecting a value, you need to know the average PIU size to have a starting point for bufsize.
The remainder indicates the number of bytes that are not used on each page. However, these unused bytes are taken into consideration for the xpanlim value that you specify. Keep this number as low as possible.
If the encryption start option is specified (ENCRYPTN = YES, 24, or 31), add 98 to the bufsize value instead of 91.
Table 1 reflects the IOBUF formula and can be used when coding bufsize. For greatest efficiency, choose the high number in the range, because the higher number has a smaller remainder.
Number of buffers per page | |
|
---|---|---|
1 | 1958–3992 | 1951–3992 |
2 | 1270–1957 | 1263–1950 |
3 | 934–1269 | 927–1262 |
4 | 726–933 | 719–926 |
5 | 590–725 | 583–718 |
6 | 494–589 | 487–582 |
7 | 422–493 | 415–486 |
8 | 358–421 | 351–414 |
9 | 318–357 | 311–350 |
10 | 278–317 | 270–310 |
11 | 256–277 | 256–270 |