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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

However, the combined impact of other V8 enhancements in data sharing (<strong>for</strong> example, CF<br />

Request Batching <strong>for</strong> castout processing and Locking Protocol Level 2 which also reduce the<br />

overall SRB CPU time), offsets the increase in CPU times seen by the Accounting class 2<br />

reports and produces a lower percentage increase in CPU overall.<br />

Important: Do not just take the accounting class 2 CPU times to compare V7 to V8<br />

per<strong>for</strong>mance. You must also factor in any CPU time reduction in the <strong>DB2</strong> address spaces<br />

from statistics reports.<br />

4.1.3 Recommendations<br />

Even though we have found that the relative overhead of running <strong>DB2</strong> V8 in NFM is negligible<br />

compared to CM and the extra cost of running a <strong>DB2</strong> V7 bound plan/package in V8 is also<br />

negligible compared to V7, the following recommendations still apply.<br />

Unless you go to NFM immediately, consider rebinding your plans and packages in V8 CM as<br />

soon as you are com<strong>for</strong>table you will not fallback to V7. This gives <strong>DB2</strong> the opportunity to<br />

select a better access path which potentially benefits your SQL per<strong>for</strong>mance, especially <strong>for</strong><br />

more complex queries. The <strong>DB2</strong> Optimizer progressively becomes smarter and smarter with<br />

each new release of <strong>DB2</strong>. You are able to experience the real V8 per<strong>for</strong>mance.<br />

Tuning <strong>for</strong> CPU usage in V8<br />

It you were virtual storage constrained in V7 and took initiatives to resolve the virtual storage<br />

problems, you may choose to reconsider these initiatives in V8. Some of these actions taken<br />

to reduce virtual storage usage have a cost of additional CPU. You may no longer need to<br />

have these initiatives in place in V8, since you are less likely to be constrained by storage in<br />

V8:<br />

► Increase again the size of buffer pools and other pools you reduced in V7, to once again<br />

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

► Consider rebinding some critical plans and packages with RELEASE(DEALLOCATE)<br />

again, only if you were using this bind parameter to improve per<strong>for</strong>mance of some key<br />

applications in V7. (Remember, however, there is less of a need to have plans and<br />

packages bound with RELEASE(DEALLOCATE) in <strong>DB2</strong> V8 data sharing than V7 data<br />

sharing. See Chapter 8, “Data sharing enhancements” on page 319 <strong>for</strong> a more detailed<br />

discussion of why RELEASE(DEALLOCATE) is less necessary in V8.)<br />

► Consider turning on thread reuse again, to improve per<strong>for</strong>mance of your critical<br />

applications.<br />

► Consider turning off the DSNZPARM EDMBFIT parameter which concerned EDM pool<br />

space.<br />

► Consider turning off the DSNZPARM CONTSTOR parameter which regularly contracts<br />

thread local storage pools.<br />

► Consider turning off the DSNZPARM MINSTOR parameter which changes the way <strong>DB2</strong><br />

allocates local storage <strong>for</strong> thread use.<br />

Other options with significant potential to offset a possible increase in CPU include:<br />

► Rebind all your plans and packages.<br />

See the above discussion.<br />

► Long term page fixing your buffer pools<br />

This is a strong recommendation as it has the potential to save a much as 8% in CPU.<br />

However, only consider this if you have enough real storage available to back 100% of<br />

138 <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Per<strong>for</strong>mance <strong>Topics</strong>

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

Saved successfully!

Ooh no, something went wrong!