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.

RDS OP POOL (MB) N/A<br />

RID POOL (MB) 0.35<br />

PIPE MANAGER SUB POOL (MB) 0.00<br />

LOCAL DYNAMIC STMT CACHE CNTL BLKS (MB) 3.93<br />

THREAD COPIES OF CACHED SQL STMTS (MB) 29.10<br />

IN USE STORAGE (MB) 16.13<br />

STATEMENTS COUNT 2096<br />

HWM FOR ALLOCATED STATEMENTS (MB) 16.13<br />

STATEMENT COUNT AT HWM 2096<br />

DATE AT HWM 10/23/04<br />

TIME AT HWM 00:59:04.55<br />

BUFFER & DATA MANAGER TRACE TBL (MB) N/A<br />

TOTAL FIXED STORAGE (MB) 0.46<br />

TOTAL GETMAINED STACK STORAGE (MB) 71.28<br />

STORAGE CUSHION (MB) 123.79<br />

DBM1 STORAGE ABOVE 2 GB QUANTITY REAL AND AUXILIARY STORAGE QUANTITY<br />

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

FIXED STORAGE (MB) 0.02 REAL STORAGE IN USE (MB) 694.48<br />

GETMAINED STORAGE (MB) 2221.78 AUXILIARY STORAGE IN USE (MB) 0.00<br />

COMPRESSION DICTIONARY (MB) 0.00<br />

CACHED DYNAMIC SQL STATEMENTS (MAX) (MB) 1024.00<br />

DBD CACHE (MAX) (MB) 1024.00<br />

VARIABLE STORAGE (MB) 173.78<br />

VIRTUAL BUFFER POOLS (MB) 468.75<br />

VIRTUAL POOL CONTROL BLOCKS (MB) 0.14<br />

CASTOUT BUFFERS (MB) 0.00<br />

STAR JOIN MEMORY POOL (MB) 0.00<br />

The TOTAL GETMAINED STORAGE has decreased from 599.18 MB in V7 to 236.09 MB in<br />

V8. This is a direct result of buffer pools, buffer pool control blocks, data space lookaside<br />

buffers, castout buffers and compression dictionaries all moving above the bar. We can see<br />

them now recorded in a new area of the report, titled DBM1 STORAGE ABOVE 2 GB. You will<br />

also notice these fields are now marked as N/A under the TOTAL GETMAINED STORAGE<br />

section of the report.<br />

For V8, RID Pool is only referred to RID map, since RID lists have been moved above the bar.<br />

Note that the RDS OP pool is recorded as N/A <strong>for</strong> V8. In <strong>DB2</strong> V7, there was a single RDS OP<br />

pool reported, which all threads use. However in <strong>DB2</strong> V8, the RDS OP pool storage <strong>for</strong> each<br />

thread is allocated from the thread's variable length storage pool. We can see the TOTAL<br />

GETMAINED STACK STORAGE jump from 26 MB to 71 MB. This increase is primarily due to<br />

larger thread-related structures in V8, since they must be larger to accommodate long names.<br />

So, in V8 we see a considerable decrease in TOTAL GETMAINED STORAGE and a<br />

considerable increase in TOTAL GETMAINED STACK STORAGE.<br />

<strong>DB2</strong> V8 also breaks down the THREAD COPIES OF CACHED SQL STMTS storage into<br />

more meaningful statistics. Cached SQL statements <strong>for</strong> dynamic SQL can cause quite a lot of<br />

virtual storage to be consumed.<br />

► THREAD COPIES OF CACHED SQL STMTS reports the virtual storage consumed by<br />

copies of currently executable SQL statements and the executable statements that are<br />

kept beyond commit when KEEPDYNAMIC YES is used.<br />

► IN USE STORAGE reports the amount of virtual storage that is actually allocated to locally<br />

cached dynamic SQL statements, discounting storage not used in the storage allocation<br />

segment.<br />

► STATEMENTS COUNT is the number of locally cached dynamic SQL statements that are<br />

actually using the storage.<br />

The following <strong>for</strong>mula can give you some insight into the degree of fragmentation of storage<br />

which is used to locally cache dynamic SQL statements.<br />

(THREAD COPIES OF CACHED SQL STMTS - IN USE STORAGE) / STATEMENTS COUNT<br />

164 <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>

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

Saved successfully!

Ooh no, something went wrong!