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.

<strong>DB2</strong> AS class 2 CPU time<br />

(msec / commit)<br />

MSTR 0.309 0.336 0.135 0.150 0.150 0.150 - 56% + 0%<br />

DBM1 0.603 0.621 0.451 0.447 0.436 0.434 - 27% - 3%<br />

IRLM 0.330 0.371 0.331 0.337 0.014 0.014 - 5% - 96%<br />

Total 1.243 1.328 0.917 0.974 0.600 0.597 - 27% - 63%<br />

<strong>DB2</strong> class 2 CPU<br />

+ Total<br />

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

(CM / V7)<br />

3.447 3.708 3.357 3.617 3.125 3.105 - 3% - 11%<br />

Delta<br />

(NFM / CM)<br />

In these measurements, we see a large 11% decrease in overall CPU used in NFM compared<br />

to CM. This is not due to the extra overhead in running in CM over NFM, but as a direct result<br />

of Locking Protocol Level 2 being used in NFM, but not available in CM. These savings are<br />

realized through a dramatic reduction in the IRLM CPU times. See 8.2, “Locking protocol level<br />

2” on page 325. We can also see the positive impact the Locking Protocol Level 2 has on<br />

transaction response times, with quite a significant savings in transaction elapsed time. The<br />

drop in transaction elapsed time is caused by a similar drop in application class 3 suspend<br />

time, which is not listed in the table.<br />

We see a slight decrease in overall CPU (3%) used in <strong>DB2</strong> V8 CM compared with <strong>DB2</strong> V7.<br />

This is a better result than with non-data sharing. In addition to the per<strong>for</strong>mance gains we see<br />

through Long Term Page Fixing the buffer pools, data sharing offers more CPU savings<br />

through functions such as CF Request Batching which are specific to data sharing. See<br />

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

enhancements. All these enhancements combine to offer a far greater offset to the CPU<br />

increase in <strong>DB2</strong> V8.<br />

Compatibility mode versus new-function mode<br />

<strong>DB2</strong> V8 brings a new strategy to move an existing <strong>DB2</strong> V7 environment to <strong>Version</strong> 8. You<br />

must first ‘migrate’ your <strong>DB2</strong> environment from <strong>Version</strong> 7 to <strong>Version</strong> 8 compatibility mode<br />

(CM). You can fallback to <strong>DB2</strong> V7 if you need to, and only partial new <strong>Version</strong> 8 function is<br />

enabled. Once you are com<strong>for</strong>table with the function, stability and per<strong>for</strong>mance of <strong>DB2</strong> V8 in<br />

CM, you then move through enabling-new-function mode (ENFM) and into new-function<br />

mode (NFM). Once in NFM, you can now exploit all the new function in <strong>DB2</strong> V8, but you<br />

cannot return to CM or <strong>Version</strong> 7. See Chapter 9, “Installation and migration” on page 341.<br />

Some users may choose to remain in CM <strong>for</strong> a period of a few weeks or even a month or two.<br />

While other users may choose to migrate to NFM at their earliest opportunity.<br />

Once in CM, <strong>DB2</strong> parses all SQL statements in Unicode. In addition, <strong>DB2</strong> V8, both in CM and<br />

NFM, uses a different <strong>for</strong>mat <strong>for</strong> its DBDs, packages and plans. <strong>DB2</strong> V8 requires a new<br />

<strong>for</strong>mat <strong>for</strong> DBDs, plans and packages to support the new function such as Unicode and Long<br />

Names. So, be<strong>for</strong>e <strong>DB2</strong> can use a DBD, plan or package from an earlier release of <strong>DB2</strong>, it<br />

must first expand it into the new V8 <strong>for</strong>mat. In CM, <strong>DB2</strong> must also convert the DBDs, plans<br />

and packages to the old <strong>for</strong>mat be<strong>for</strong>e it can store them in the catalog. This extra overhead is<br />

recorded in <strong>DB2</strong> class 2 CPU times, and is extra overhead that exists while running in CM and<br />

NFM without which you can easily function.<br />

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

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

Saved successfully!

Ooh no, something went wrong!