19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.2.1 Conclusion<br />

If MGEXTSZ is set to YES, <strong>DB2</strong> will always honor SECQTY value specified by the user in the<br />

Catalog if it is greater than the secondary quantity value calculated by the sliding scale<br />

methodology used by the solution. This allows the user to override with a larger SECQTY<br />

value to get to maximum data set size quicker.<br />

If no SECQTY value is specified by the user, it will be recorded as -1 in the associated SQTY<br />

column in SYSTABLEPART or SYSINDEXPART catalog table, <strong>DB2</strong> will calculate 10% of the<br />

PRIQTY value specified by the user in the Catalog but will cap by the maximum secondary<br />

quantity allocation according to the respective sliding scale.<br />

If you specify SECQTY 0, it will be honored by <strong>DB2</strong>. This results in SQLCODE -904 and<br />

reason code 00D70027 when <strong>DB2</strong> tries to extend the data set.<br />

For a striped data set, the proposed extent size will have to be divided by the number of<br />

stripes and each stripe can have up to 255 extents.<br />

When extent consolidation is in effect in z/<strong>OS</strong> V1.5 the secondary space allocation quantity<br />

can be smaller than specified or calculated by the sliding scale based on the physical extent<br />

number. PTF UQ89517 <strong>for</strong> APAR PQ88665 corrects this problem by using the logical extent<br />

number together with the sliding scale.<br />

No primary nor secondary allocation needs to be specified at create time. <strong>DB2</strong> determines<br />

the optimal values based on a combination of the DSSIZE, LARGE and PIECESIZE<br />

specifications and system parameters MGEXTSZ, TSQTY and IXQTY. The secondary<br />

allocation is automatically increased using a sliding scale until 127 extents and a constant<br />

size thereafter to avoid exhausting the maximum number of extents per data sets.<br />

The enhancement has the potential to improve SQL SELECT and INSERT per<strong>for</strong>mance,<br />

more efficient pre<strong>for</strong>mat, prefetch, and deferred write processing.<br />

This enhancement changes the PRIQTY default to achieve cylinder allocation, <strong>for</strong>ces tiny<br />

SECQTY allocations to use these defaults, and slides secondary quantity allocations<br />

upwards.<br />

Any penalty with having multiple extents goes down as the extent size increases. The size of<br />

the extents is actually more important than the actual number of extents. Above an extent size<br />

of 10 cylinders independent of the number of extents there is no noticeable difference in<br />

per<strong>for</strong>mance.<br />

Note that no space availability nor disk fragmentation is addressed by this enhancement, and<br />

still remain the responsibility of DFSMS and the storage administrator.<br />

5.2.2 Recommendations<br />

We recommend to start with activating automatic space management <strong>for</strong> secondary extents<br />

(MGEXTSZ=YES). Availability will increase by avoiding out of space abends due to maximum<br />

number of extents reached and, as I/Os will never span extents, your installation will benefit<br />

from better extent sizing when per<strong>for</strong>ming<br />

► Prefetch<br />

► Deferred write<br />

► Mass Insert<br />

► Utility Processing<br />

Chapter 5. Availability and capacity enhancements 229

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!