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.

So, we advise you to not overallocate the EDM Statement Cache, but choose a size based on<br />

your needs. Otherwise use the default values. Monitor the EDM Statement Cache and tune it<br />

so that it only contains statements which are frequently in use. Having statements in the<br />

cache which are rarely used can lead to an impact on per<strong>for</strong>mance.<br />

Finally, it is worth noting that SQL statements cached in the EDM Statement Pool Cache may<br />

be much larger in V8 than SQL statements cached in V7. This is primarily due to <strong>DB2</strong> V8<br />

support <strong>for</strong> larger names and Unicode.<br />

Compression dictionaries<br />

The compression dictionary <strong>for</strong> a compressed table space is loaded into virtual storage <strong>for</strong><br />

each compressed table space or partition as it is opened. Each compression dictionary<br />

occupies 64 KB bytes of storage (sixteen 4 KB pages).<br />

Moving the dictionary above the 2 GB bar provides significant storage relief <strong>for</strong> customers<br />

making extensive use of compression. Remember that <strong>DB2</strong> V8 can further increase the<br />

compression dictionary storage requirement as V8 also implements support <strong>for</strong> 4096<br />

partitions <strong>for</strong> a single table; if they are all compressed and open, you would have 4096<br />

compression dictionaries in memory. Notice that most of the open data set <strong>DB2</strong> control blocks<br />

are also above the bar.<br />

The compression dictionary is loaded above the bar after it is built. All references to the<br />

dictionary now use 64-bit pointers. Compression uses standard 64-bit hardware compression<br />

instructions.<br />

SORT pools<br />

Sorting requires a large amount of virtual storage, because there can be several copies of the<br />

data being sorted at a given time.<br />

The <strong>DB2</strong> Sort pool is allocated on a per thread basis up to a maximum of 128 MB depending<br />

on the DSNZPARM SRTPOOL parameter. For example, if SRTPOOL=10, then each<br />

concurrent thread doing an RDS sort could allocate up to 10 MB.<br />

Two kinds of storage pools are used <strong>for</strong> <strong>DB2</strong> V8 sort (also known as RDS sort) to store<br />

various control structures and data records. One is a thread-related local storage pool below<br />

the bar, and the other is a thread-related storage pool sort pool above the bar. We estimate<br />

that over 90% of the sort pool is moved above the 2 GB bar.<br />

To take advantage of the 64-bit addressability, some high level sort control structures remain<br />

in thread-related storage below the 2 GB bar. These structures contain 64-bit pointers to<br />

areas in the thread-related storage pool above the 2 GB bar. Sort tree nodes and data<br />

buffers, which comprise 90% of the Sort pool, are located above the 2 GB bar. The maximum<br />

Sort pool size, specified by the DSNZPARM SRTPOOL parameter is 128 MB. In V7 it was 64<br />

MB.<br />

In V7 the RDS OP pool is allocated as a single global storage pool. In V8 this has changed.<br />

The thread-related local storage pool below the bar is now allocated per thread rather than<br />

global. Storage fragmentation can be higher, but contention is reduced since there is no RDS<br />

OP pool anymore.<br />

RID lists <strong>for</strong> the RID pool<br />

The RID pool is split into two parts. The RID pool part below the 2 GB bar stores the RID<br />

maps which are usually small in number, and the RID pool part above the 2 GB bar contains<br />

the RID lists which normally comprise the bulk of the RID pool storage. Storage size<br />

144 <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!