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.

time in seconds<br />

6.1.2 Conclusion<br />

180<br />

160<br />

140<br />

120<br />

100<br />

Figure 6-3 SHRLEVEL CHANGE vs. SHRLEVEL REFERENCE w/o FlashCopy<br />

Online CHECK INDEX (SHRLEVEL CHANGE) dramatically cuts down elapsed time. The first<br />

reason is that the parallel processing structure minimizes elapsed time in cross checking the<br />

data and indexes. The second reason is using FlashCopy V2. Compared to online CHECK<br />

INDEX with a non-partitioned index, online CHECK INDEX with a partitioned index could<br />

provide better per<strong>for</strong>mance. The most important aspect from the availability point of view is<br />

that using CHECK SHRLEVEL(CHANGE) with FlashCopy 2 the table and the indexes are<br />

available <strong>for</strong> RW after a few seconds, while with SHRLEVEL(REFERENCE) they are both in<br />

UTRO <strong>for</strong> most of execution time.<br />

Another study shows the better per<strong>for</strong>mance of CHECK INDEX with SHRLEVEL CHANGE in<br />

one task, when compared to CHECK INDEX with SHRLEVEL REFERENCE as concurrent<br />

jobs of each table space partition. It means you should always choose SHRLEVEL CHANGE<br />

<strong>for</strong> shorter CPU and elapsed time, rather than SHRLEVEL REFERENCE, when FlashCopy<br />

V2 is available.<br />

The two options have a different behavior:<br />

► SHRLEVEL REFERENCE Unload phase unloads keys from the indexes and then the<br />

Check phase compares sorted keys against the data via tablespace scan.<br />

► SHRLEVEL CHANGE Unload phase does a tablespace scan extracting keys and then the<br />

Check phase compares sorted keys against the keys in the index.<br />

6.1.3 Recommendations<br />

80<br />

60<br />

40<br />

20<br />

0<br />

Check Index SHRLEVEL CHANGE versus<br />

SHRLEVEL REFERENCE no FlashCopy<br />

PI NPI<br />

CPU SHRLEVEL(REFERENCE) CPU SHRLEVEL(CHANGE)<br />

Elapsed time SHRLEVEL(REFERENCE) Elapsed time SHRLEVEL(CHANGE)<br />

Use online CHECK INDEX whenever availability is needed. You should use online CHECK<br />

INDEX in conjunction with FlashCopy V2, otherwise concurrent copy is invoked which<br />

increases elapsed time and elongates the time when the data and index are read-only. To<br />

Chapter 6. Utilities 267

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

Saved successfully!

Ooh no, something went wrong!