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.

esolve any contention. This extra activity to the lock structure also increases the coupling<br />

facility CPU utilization.<br />

However these tests show that the increase in synchronous requests to the lock structure and<br />

the resulting increase in coupling facility CPU utilization do not appear to be excessive <strong>for</strong> our<br />

workload. Nothing comes <strong>for</strong> free!<br />

Now we have a look at the impact on the CPU consumed by <strong>DB2</strong>. Table 8-10 shows extracts<br />

from <strong>DB2</strong> PE statistics reports <strong>for</strong> the same test.<br />

Table 8-10 Protocol Level 2 - <strong>DB2</strong> PE Statistics Report extract<br />

IRLM<br />

(msec / commit)<br />

Total <strong>DB2</strong> CPU time<br />

(msec / commit)<br />

For our IRWW workload, we see a dramatic reduction in IRLM SRB time. This is because<br />

there is less XES contention to resolve. Remember that XES must defer to the IRLMs to<br />

resolve any XES contention and this activity drives IRLM CPU.<br />

Our workload also achieved a significant increase in transaction throughput. This is a result of<br />

the workload suffering fewer class 3 suspensions, waiting <strong>for</strong> XES contention to be resolved.<br />

In the past, a number of customers have opted to BIND their high use plans and packages<br />

using RELEASE(DEALLOCATE) rather than RELEASE(COMMIT).<br />

RELEASE(DEALLOCATE) has a number of per<strong>for</strong>mance advantages. <strong>DB2</strong> does not have to<br />

release and re-acquire table space level locks after a commit. Some customers have also<br />

used RELEASE(DEALLOCATE) to reduce the amount of XES contention in their data sharing<br />

environments. However there is a cost in availability. It may be more difficult to execute DDL<br />

as the <strong>DB2</strong> objects are allocated longer to the plans and packages.<br />

So, let us have a look at the impact the new locking protocol has on the BIND RELEASE<br />

parameter. Table 8-11 compares the impact on per<strong>for</strong>mance of RELEASE(COMMIT)<br />

compared to RELEASE(DEALLOCATE) in both <strong>DB2</strong> V7 and <strong>DB2</strong> V8.<br />

Table 8-11 Protocol Level 2 - RELEASE(DEALLOCATE) vs. RELEASE(COMMIT)<br />

We can see that <strong>for</strong> <strong>DB2</strong> V7, RELEASE(DEALLOCATE) has on average an 18% reduction in<br />

CPU time per transaction, compared to RELEASE(COMMIT). There is less reduction, 7%, in<br />

<strong>DB2</strong> V8 when the new locking protocol is use. RELEASE(DEALLOCATE) still uses less CPU<br />

time, but the delta is much smaller with V8 and protocol 2.<br />

The table also shows an 18% improvement in transaction throughput by using<br />

RELEASE(DEALLOCATE) in <strong>DB2</strong> V7. This gain is reduced to only a 5% improvement in<br />

transaction throughput when the new locking protocol is used.<br />

330 <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><br />

<strong>DB2</strong> V7 <strong>DB2</strong> V8 Delta<br />

(V8 / V7)<br />

0.330 0.317 0.012 0.015 -96%<br />

3.447 3.708 3.109 3.357 -10%<br />

Group ITR 823.56 897.00 +9%<br />

<strong>DB2</strong> V7 <strong>DB2</strong> V8<br />

Transaction CPU time -18% -7%<br />

Global ITR +18% +5%

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

Saved successfully!

Ooh no, something went wrong!