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.

Test case HPU V2.2 <strong>DB2</strong> V8 UNLOAD % Difference<br />

CPU Elapsed CPU Elapsed CPU Elapsed<br />

Parallel 15.33 24 68.08 31 344.09 29.16<br />

Even if an index is available, the UNLOAD utility does not take advantage of it.<br />

You can see that in all cases, HPU outper<strong>for</strong>ms the <strong>DB2</strong> V8 UNLOAD utility in CPU time.<br />

However, in most cases, the UNLOAD utility elapsed time is slightly better.<br />

In case 2, where the unload is per<strong>for</strong>med using an image copy, the UNLOAD utility takes<br />

almost 4 times more CPU than HPU although the elapsed time <strong>for</strong> the UNLOAD utility is<br />

almost 7% better than HPU.<br />

In case 4, the elapsed time <strong>for</strong> both HPU and the UNLOAD utility is the same, but HPU<br />

outper<strong>for</strong>ms the UNLOAD utility using 1/4 the CPU time.<br />

When parallelism is used, HPU outshines the <strong>DB2</strong> UNLOAD utility. The CPU time <strong>for</strong> the<br />

UNLOAD utility is almost 3.5 times more than HPU and the elapsed time <strong>for</strong> the UNLOAD<br />

utility is 29% higher than HPU.<br />

Case 10 is the same as Case 9 except the measurement <strong>for</strong> HPU involved the use of <strong>DB2</strong><br />

FORCE. This HPU parameter indicates that <strong>DB2</strong> must be used to extract the requested rows.<br />

This is generally preferred when the SELECT statement uses a filtering predicate that is<br />

efficiently processed through SQL, and the filter factor is high.<br />

Note: The <strong>DB2</strong> UNLOAD utility in case 1 unloads the entire table space. Case 3 unloads<br />

the entire table; since it is the same as case 1, the Unload is not reported <strong>for</strong> case 3.<br />

The graphical depiction of the results is in Figure 10-1 and Figure 10-2. The results are<br />

dramatic <strong>for</strong> the <strong>DB2</strong> HPU tool.<br />

Figure 10-1 shows Case 1 through Case 5.<br />

Chapter 10. Per<strong>for</strong>mance tools 373

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

Saved successfully!

Ooh no, something went wrong!