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.

If you have not measured the amount of storage per thread, here are some rough estimates:<br />

► Low-end: 200 to 400 KB - Static<br />

► Mid-range: 500 KB to 2 M - Static/Dynamic<br />

► High-end: 3 MB to 10 MB or higher - Dynamic, heavy sort, parallelism applied, long<br />

running persistent thread (WFI, CICS Protected Entry Threads with many packages with<br />

RELEASE(DEALLOCATE) or (RELEASE(COMMIT) with CONTSTOR=NO).<br />

These ranges are based on historical observations of typical SQL statements utilized in<br />

customer production environments, the low-end of the range representing static SQL vs. the<br />

high-end representing dynamic SQL-based workloads. The estimation should be verified and<br />

modified appropriately through the actual measurement using the above <strong>for</strong>mulas.<br />

4.3 Monitoring DBM1 storage<br />

Despite the fact that <strong>DB2</strong> V8 provides many enhancements to relieve virtual storage<br />

constraints in <strong>DB2</strong>, it is still important you proactively monitor virtual storage usage within<br />

<strong>DB2</strong>.<br />

It is also important <strong>for</strong> you to monitor storage usage above the bar. Within the z/<strong>OS</strong><br />

implementation of the z/Architecture, there is no expanded storage. Paging goes directly to<br />

disk, and then you will obviously suffer the per<strong>for</strong>mance impact of writing to and reading from<br />

disk. <strong>DB2</strong> should rarely page to disk. So, it is more important than ever now to monitor the<br />

number of real frames in use and ensure auxiliary storage is never used.<br />

<strong>DB2</strong> provides two new messages to help you not overallocate your buffer pools relative to the<br />

amount of real storage available. This is important as buffer pools can now scale to extremely<br />

large sizes, constrained only by the physical memory limits of the machine (64-bit allows <strong>for</strong><br />

16 exabytes of addressability).<br />

► DSNB536I: This warning message indicates the total buffer pool virtual storage<br />

requirement of this <strong>DB2</strong> subsystem exceeds the size of real storage of the z/<strong>OS</strong> image. To<br />

relieve this situation you can either allocate more real storage to the z/<strong>OS</strong> image or, if<br />

there is not enough real storage to hold the buffers, then the number of buffers needs to be<br />

reduced.<br />

► DSNB610I: This warning message indicates that a request to increase the size of the<br />

buffer pool will exceed twice the real storage available to the z/<strong>OS</strong> image, or the normal<br />

allocation of a buffer pool not previously used will cause an aggregate size which exceeds<br />

the real storage. Either request is then limited to 8 MB (2000 pages <strong>for</strong> 4 KB, 1000 pages<br />

<strong>for</strong> 8 KB, 500 pages <strong>for</strong> 16 KB, and 250 pages <strong>for</strong> 32 KB).<br />

<strong>DB2</strong> still monitors Short on Storage (S<strong>OS</strong>) conditions below the bar in the DBM1 address<br />

space by monitoring a storage cushion within the DBM1 address space. When the head room<br />

is less than this storage cushion value, <strong>DB2</strong> attempts to contract and reclaim free memory<br />

segments which have been fragmented. This work can impact <strong>DB2</strong> per<strong>for</strong>mance if <strong>DB2</strong> is<br />

continually in this state.<br />

<strong>DB2</strong> V8 introduces a number of new counters to IFCID 225 to support <strong>DB2</strong> V8. In addition the<br />

IFCID 225 is now available via IFI READS to V8 and V7 (APAR PQ85764), this makes its<br />

contents immediately available to online monitors instead of the last interval values.<br />

The statistics gathered represent a point-in-time view of storage used in the DBM1 address<br />

space at the time the record is cut. They do not record in<strong>for</strong>mation about storage utilization in<br />

any other address space. IFCID 225 records are cut at statistics intervals whenever the <strong>DB2</strong><br />

Statistics class 6 trace is active.<br />

Chapter 4. <strong>DB2</strong> subsystem per<strong>for</strong>mance 157

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

Saved successfully!

Ooh no, something went wrong!