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.

Load table of 20M rows, 10 partitions with 5 NPI or 5 DPSI<br />

tim e<br />

in<br />

seconds<br />

8 0 0<br />

7 0 0<br />

6 0 0<br />

5 0 0<br />

4 0 0<br />

3 0 0<br />

2 0 0<br />

1 0 0<br />

Figure 5-22 Load with 5 NPIs vs. 5 DPSIs<br />

When we compare the single partition load to the previous test case with 1 NPI or 1 DPSI, a<br />

bigger reduction in CPU <strong>for</strong> 5 DPSIs compared to 5 NPIs is noticed because the index keys<br />

were loaded <strong>for</strong> all DPSI index physical partitions while keys were inserted into all 5 NPI index<br />

logical partitions during the Build phase. Contention on NPIs is possible.<br />

In case the whole table is loaded the DPSI case shows a slight increase in CPU compared to<br />

the NPI case. In this case 5 NPI data sets vs. 5 DPSI data sets are loaded.<br />

Figure 5-23 presents the measurement results of a reorganization of a partition of a 20 M<br />

rows table with 10 partitions and 1 NPI or 1 DPSI.<br />

Figure 5-23 REORG with 1 NPI vs. 1 DPSI<br />

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

0<br />

5 D P S I<br />

single part<br />

5 N P I<br />

single part<br />

5 D P S I<br />

w h o le<br />

ta b le<br />

5 N P I<br />

w h o le<br />

ta b le<br />

C P U 6 9 2 2 5 7 0 3 6 8 6<br />

Elapsed tim e 4 2 8 7 3 4 0 3 4 2<br />

Reorg a partition of table of 20M rows 10 partitions with 1<br />

NPI and table with 1 DPSI<br />

time<br />

in<br />

seconds<br />

80<br />

70<br />

60<br />

50<br />

40<br />

30<br />

20<br />

10<br />

0<br />

CPU Elapsed time<br />

Table with 1 NPI 51 72<br />

Table with 1<br />

DPSI<br />

25 45

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

Saved successfully!

Ooh no, something went wrong!