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.

2.1 Overview of major impact items<br />

2.1.1 <strong>DB2</strong> catalog<br />

2.1.2 CPU<br />

There is a tremendous amount of new function available in <strong>DB2</strong> V8. Like any release, there<br />

are things you really like and things you like less. And the things you like come at some cost.<br />

In this chapter we present a realistic perspective of <strong>DB2</strong> V8 <strong>for</strong> you: The good and the not so<br />

good. Certainly, adding new function implies adding instructions, and it becomes more and<br />

more difficult to contain the increase in path length. The per<strong>for</strong>mance department at Silicon<br />

Valley Lab, along with <strong>DB2</strong> development, tries to minimize the overhead you can incur with<br />

each new release. This is especially true with V8 because of the large amount of additional<br />

code.<br />

It is important that you are aware of the effect <strong>DB2</strong> V8 has on components of <strong>DB2</strong>, such as<br />

<strong>DB2</strong> catalog, CPU growth, virtual storage, real storage, compatibility mode, and new-function<br />

mode. The more educated and in<strong>for</strong>med you are be<strong>for</strong>e migrating to <strong>DB2</strong> V8, the easier the<br />

planning becomes. The migration is simplified by avoiding known pitfalls. The migration goal<br />

is a smooth and successful implementation and you can concentrate on exploiting the new<br />

functions.<br />

Important: Remember that you can only migrate to <strong>DB2</strong> V8 from <strong>DB2</strong> V7. It is possible to<br />

migrate to <strong>DB2</strong> V7 from <strong>DB2</strong> V5 by a skip release migration. However, skip release<br />

migration is not generally supported, including migration to V8.<br />

We now begin to discuss the components of <strong>DB2</strong> V8.<br />

In <strong>DB2</strong> V8, much of the character data in the <strong>DB2</strong> catalog changes to the Unicode encoding<br />

scheme. This does not mean you have to change all your EBCDIC or ASCII data to Unicode.<br />

The catalog conversion to Unicode allows you to support Unicode object names and literals.<br />

But it does require that you, be<strong>for</strong>e migrating to <strong>DB2</strong> V8, implement z/<strong>OS</strong> Conversion<br />

Services <strong>for</strong> your environment, and this requires an IPL.<br />

Most character columns in the <strong>DB2</strong> catalog are converted to Unicode VARCHAR(128), and<br />

there is typically a 1 to 10% increase in the space used. If you have any user-defined indexes<br />

defined on the catalog, you may want to drop them be<strong>for</strong>e V8. Afterwards, you can redefine<br />

these indexes and specify them as NOT PADDED. If you do not drop these indexes, the<br />

default is PADDED and these user-defined indexes grow considerably, since many columns in<br />

the index grow often from 10 to 128 bytes. For this reason, <strong>DB2</strong> V8 allows variable length<br />

keys (VARCHAR(128)) in an index.<br />

We anticipate that there may be some growth in the size of the <strong>DB2</strong> catalog once you migrate.<br />

However, it really depends on a number of factors. Some installations never or infrequently<br />

per<strong>for</strong>m a reorganization of the <strong>DB2</strong> catalog. For them, the difference in size after migration<br />

may be negligible. For those who REORG on a regular basis, they can see up to a 10%<br />

increase in the size of the <strong>DB2</strong> catalog.<br />

For details regarding the effect of Unicode on the <strong>DB2</strong> catalog and directory, refer to 9.1.2,<br />

“Unicode parsing” on page 342.<br />

In the past, as you migrated from one release of <strong>DB2</strong> to the next, the typical increase was not<br />

more than a 5% CPU cost. In fact, staying under 5% has been the target of <strong>DB2</strong> development.<br />

We estimate that there is four times more code in V8 than in V7, and some CPU increase is<br />

Chapter 2. Per<strong>for</strong>mance overview 11

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

Saved successfully!

Ooh no, something went wrong!