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.

4.6.2 Conclusion<br />

We can conclude that there is some increase in IRLM CPU caused by moving from V2.1 to<br />

V2.2, generally compensated by the Locking Protocol Level 2 enhancements in a data<br />

sharing environment. In a non-data sharing environment, the increase in CPU usage by the<br />

IRLM address space is included in the accounting.<br />

By maintaining its lock structures in private storage above the 2 GB bar, the IRLM is able to<br />

manage many more locks than be<strong>for</strong>e. This enables <strong>DB2</strong> to manage locks at a smaller<br />

granularity, resulting in less lock contention.<br />

4.6.3 Recommendations<br />

4.7 Unicode<br />

Since IRLM V2.2 can manage many more locks than IRLM V2.1, you may consider<br />

increasing NUMLKTS (maximum number of locks per table space be<strong>for</strong>e lock escalation<br />

occurs) or NUMLKUS (number of lock per user be<strong>for</strong>e a resource unavailable occurs).<br />

Because the lock structures no longer reside in ECSA, considerable ECSA storage is now<br />

freed up in V8 and can be used by other subsystems (such as WebSphere) and other<br />

applications. This is good news <strong>for</strong> MVS Systems Programmers.<br />

Since the space required to maintain each individual lock has increased, some large <strong>DB2</strong><br />

installations, such as large SAP R/3 environments, should consider a MEMLIMIT of 4 GB <strong>for</strong><br />

their IRLM. However, the same rules apply <strong>for</strong> the storage areas that move above the 2 GB<br />

bar in DBM1. Make sure there is enough real storage to back this up.<br />

V8 vastly improves <strong>DB2</strong>’s support <strong>for</strong> Unicode and lifts many of the limitations that existed in<br />

V7. For example, when <strong>DB2</strong> has been migrated to V8 new-function mode, the <strong>DB2</strong> catalog is<br />

converted to Unicode. In addition all the SQL statements must be parsed as Unicode, even in<br />

CM, while <strong>DB2</strong> V8 NFM allows you to combine different encoding schemes, CCSIDs, in the<br />

same SQL statement.<br />

As a result, <strong>DB2</strong> now must per<strong>for</strong>m much more code page conversion than ever be<strong>for</strong>e, which<br />

potentially impacts per<strong>for</strong>mance. In this section we discuss the major improvements that have<br />

occurred in converting to and from Unicode. These improvements come from three major<br />

sources; improvements in the zSeries processor hardware, improvements in the z/<strong>OS</strong><br />

Conversion Services, and optimization inside <strong>DB2</strong> V8.<br />

For details, see the new manual <strong>DB2</strong> <strong>UDB</strong> Internationalization Guide available from:<br />

http://www.ibm.com/software/data/db2/zos/v8books.html<br />

Another source of in<strong>for</strong>mation is the article titled “Unicode Per<strong>for</strong>mance in <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong>”, by<br />

Jeffrey Berger and Kyoko Amano, published in The IDUG Solutions Journal Volume 11<br />

Number 2.<br />

<strong>DB2</strong> V8 supports three types of encoding schemes: EBCDIC, which is used by mainframe<br />

environments, ASCII, which is used by Unix and Windows environments, and more recently,<br />

Unicode.<br />

We identify the character set <strong>for</strong> a language by a numeric CCSID. A CCSID encoding scheme<br />

consists of a single byte character set (SBCS), and optionally a double byte character set<br />

(DBCS) along with a mixed character set. Over time each geography developed their own<br />

EBCDIC or ASCII encoding schemes. The variety of CCSIDs made it very difficult <strong>for</strong><br />

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