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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Be aware that IFCID 225 represents a “snapshot” of DBM1 storage usage at a particular point<br />

in time. On an active subsystem, it is not uncommon <strong>for</strong> <strong>DB2</strong> to be in the process of allocating<br />

storage while freeing up other storage. So, the numbers presented in IFCID 225 may keep<br />

changing and do not always add up. However, they become consistent after a while and can<br />

be used as a good guide to what is happening in the DBM1 address space. In addition, keep<br />

in mind that these numbers show the <strong>DB2</strong> side. MVS has a different picture which tends to be<br />

more pessimistic. <strong>DB2</strong> generally acquires storage from MVS in chunks but may not<br />

immediately use the storage <strong>for</strong> any particular purpose within <strong>DB2</strong>. MVS sees the whole<br />

chunk as being allocated and used.<br />

We have seen that <strong>DB2</strong> maintains four main types of storage:<br />

► Stack Storage (SKB): Used <strong>for</strong> very active thread-related storage.<br />

► Getmained Block (GMB) Storage: Used <strong>for</strong> specific purposes such as buffer pools and<br />

compression dictionaries.<br />

► Fixed pools : Storage is sub-allocated into the same length blocks and optimized <strong>for</strong><br />

per<strong>for</strong>mance.<br />

► Variable pools: General use pools of storage, sub-allocated into variable length blocks.<br />

In this example, the TOTAL DBM1 STORAGE BELOW 2 GB is 779.63 MB.<br />

This total can be split up into the following components:<br />

► TOTAL GETMAINED STORAGE = 599.18 MB<br />

► TOTAL VARIABLE STORAGE = 153.39 MB<br />

► TOTAL FIXED STORAGE = 0.30 MB<br />

► TOTAL GETMAINED STACK STORAGE = 26.77 MB<br />

GETMAINED Storage<br />

The TOTAL GETMAINED STORAGE is storage acquired by <strong>DB2</strong> as GETMAINed Blocks<br />

(GMB). In V7, this is generally the largest consumer of storage in the DBM1 address space. It<br />

includes space <strong>for</strong> virtual buffer pools, virtual buffer pool control blocks, the EDM pool,<br />

compression dictionaries, castout buffers, the data space lookaside buffers, hiper pool control<br />

blocks and data space buffer pool control blocks. We can see these indented in the report.<br />

Note however that these numbers may not add up to TOTAL GETMAINED STORAGE<br />

because <strong>DB2</strong> does not collect statistics on all GETMAINed storage.<br />

Buffer pools are usually the major consumers of DBM1 storage.<br />

► The storage required <strong>for</strong> the virtual buffer pools is shown by the following indicator:<br />

– VIRTUAL BUFFER POOLS = 437.50 MB<br />

► Independent of the page size, a control block of 128 bytes (V7) or 144 bytes (V8) is<br />

allocated <strong>for</strong> each page in the virtual buffer pool. The storage required is shown by the<br />

following indicator:<br />

– VIRTUAL BUFFER POOL CONTROL BLOCKS = 13.67 MB<br />

► Hiperpools are not allocated in the DBM1 address space but storage is allocated inside<br />

the DBM1 address space <strong>for</strong> the 56-byte hiperpool control block associated with each<br />

hiperpool buffer. The storage required is shown by the following indicator:<br />

– HIPERPOOL CONTROL BLOCKS = 0 MB (hiperpools are not used here)<br />

► If you allocate the buffers to data spaces (V7), additional storage is required in the DBM1<br />

address space. A control block of 128 bytes is allocated <strong>for</strong> each data space buffer<br />

defined. The lookaside buffers also utilize a sizable amount of DBM1 virtual storage. The<br />

storage required is shown by the following indicators:<br />

Chapter 4. <strong>DB2</strong> subsystem per<strong>for</strong>mance 159

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

Saved successfully!

Ooh no, something went wrong!