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.

100 Inserts activated trigger 100 times<br />

SQL DML TOTAL<br />

-------- --------<br />

SELECT 0<br />

INSERT 100<br />

UPDATE 100<br />

DELETE 0<br />

DESCRIBE 100<br />

DESC.TBL 0<br />

PREPARE 100<br />

OPEN 0<br />

FETCH 0<br />

CL<strong>OS</strong>E 0<br />

DML-ALL 401<br />

Figure 3-39 SQL and BPOOL activity - Trigger 100 times<br />

The execution of 100 inserts activates the trigger 100 times executing update. With <strong>DB2</strong> V7,<br />

the buffer pool BP1 used by the work files indicates 600 getpages and 400 buffer updates. In<br />

<strong>DB2</strong> V8 there was no activity related to work files.<br />

Figure 3-40 compares the CPU times when executing triggers in V7 and V8.<br />

CPU time - lower is better<br />

Figure 3-40 CPU time when invoking the trigger 100 times<br />

The figure shows that the CPU used <strong>for</strong> non-nested (everything that is not in the trigger) was<br />

reduced by 8.0% and the CPU to execute the trigger was reduced by 5.5%.<br />

Generally a larger improvement can be anticipated by avoiding work files. In this case, such<br />

improvement is partially offset by the increase in CPU usage by going to V8.<br />

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

<strong>DB2</strong> V7 - workfile activity<br />

BP1 BPOOL ACTIVITY TOTAL<br />

--------------------- --------<br />

BPOOL HIT RATIO (%) 100<br />

GETPAGES 600<br />

GETPAGES-FAILED 0<br />

BUFFER UPDATES 400<br />

SYNCHRONOUS WRITE 0<br />

SYNCHRONOUS READ 0<br />

SEQ. PREFETCH REQS 100<br />

LIST PREFETCH REQS 0<br />

DYN. PREFETCH REQS 0<br />

PAGES READ ASYNCHR. 0<br />

100 Inserts activated Trigger 100 times<br />

0.02<br />

0.015<br />

0.01<br />

0.005<br />

0<br />

-8.0%<br />

-5.5%<br />

CPU non-nested CPU trigger<br />

<strong>DB2</strong> V8 - workfile activity<br />

BP1 no use reported<br />

<strong>DB2</strong> V7<br />

<strong>DB2</strong> V8

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

Saved successfully!

Ooh no, something went wrong!