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.

cases is the total time of RUNSTATS plus DSTATS. The overhead of DSTATS is derived from<br />

the percentage of DSTATS time over RUNSTATS time (DSTATS time / RUNSTATS time *100).<br />

Table 6-3 RUNSTATS with DSTATS measurement data in V7<br />

Class 1<br />

elapsed<br />

(sec.)<br />

Class 1<br />

CPU time<br />

(sec.)<br />

DSTATS<br />

CL1 ELT<br />

(sec.)<br />

DSTATS<br />

CL1 CPU<br />

(sec.)<br />

DSTATS<br />

Overhead<br />

ELT (%)<br />

DSTATS<br />

Overhead<br />

CPU (%)<br />

Case 1<br />

Runstats<br />

table<br />

Case 2<br />

RUNSTAT<br />

S<br />

table, idx<br />

Take a look at the DSTATS overhead in Case 3 (collecting distribution statistics on 1 column):<br />

DSTATS overhead is 20% <strong>for</strong> elapsed time. In V7 the overhead of using the DSTATS tool<br />

shows a high percentage in general, because of the cost of running and binding DSTATS as a<br />

standalone program on top of the cost of RUNSTATS. The largest overhead appears when<br />

going from 1 column to 2 in one column group (case 3 to 4). In this case there is 24.8%<br />

degradation in elapsed time and 31.3% degradation in CPU time.<br />

When the number of column groups goes from 1 to 2 (case 4 to 6), there is 11% per<strong>for</strong>mance<br />

degradation in elapsed time and 6.8% degradation in CPU time.<br />

Table 6-4 shows the results of the same test cases with V8 RUNSTATS with distribution<br />

statistics. DSTATS times are now the difference between RUNSTATS with distribution<br />

statistics and RUNSTATS only time (<strong>for</strong> example, DSTATS in Case 3 is the difference of Case<br />

3 and Case 1 in terms of class 1 time).<br />

278 <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 />

Case 3<br />

RUNSTAT<br />

S<br />

table+<br />

1 column<br />

Case 4<br />

RUNSTAT<br />

S<br />

table+<br />

1 colgrp<br />

w/ 2 cols<br />

Case 5<br />

RUNSTAT<br />

S<br />

table idx+<br />

1 colgrp<br />

w/ 2 cols<br />

25.91 29.70 31.09 38.80 42.59 43.08<br />

19.31 20.94 21.97 28.85 30.49 30.80<br />

N/A N/A 5.18 12.88 12.88 17.17<br />

N/A N/A 2.66 9.54 9.54 11.49<br />

N/A N/A 20 49.7 43.4 66.3<br />

N/A N/A 13.8 49.4 45.6 59.5<br />

Case 6<br />

RUNSTAT<br />

S<br />

table+<br />

2 colgrp<br />

w/ 2 ,1 cols

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

Saved successfully!

Ooh no, something went wrong!