Download PDF (1.3 MB) - IBM Redbooks
Download PDF (1.3 MB) - IBM Redbooks
Download PDF (1.3 MB) - IBM Redbooks
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Increasing the primary log file size has implications for database recovery. Assuming a<br />
constant value for softmax, larger log files mean that recovery might take more time. Although<br />
you can lower the softmax parameter to counter this effect, consider that more aggressive<br />
page cleaning might also be less efficient. Increasing the softmax parameter offers additional<br />
opportunities for write coalescing at the cost of longer recovery time.<br />
The default value of softmax is 100, meaning that the database manager attempts to clean<br />
pages such that a single log file needs to be processed during recovery. For best<br />
performance, we suggest increasing this value to 300 as follows, meaning that three log files<br />
might need processing during recovery:<br />
db2 update db config for using softmax 300<br />
4.14.5 Using System Managed Storage for table spaces that contains LOBs<br />
When creating REGULAR or LARGE table spaces in DB2 9.5 and later that contain<br />
performance critical LOB data, we suggest specifying MANAGED BY SYSTEM to gain the<br />
advantages of cached LOB handling in system managed storage (SMS).<br />
This consideration applies to the following Business Process Manager-related products:<br />
► Business Process Choreographer database (BPEDB)<br />
► BPMN databases (twproc and twperfdb)<br />
► Databases backing service integration bus messaging engine data stores<br />
For background on using SMS for table spaces with large objects, see 4.13.5, “Avoiding<br />
double buffering” on page 81. A detailed explanation follows here.<br />
DB2 table spaces can be configured with NO FILE SYSTEM CACHING, which in many cases<br />
improves system performance. If a table space is specified as MANAGED BY SYSTEM, then<br />
it uses SMS, which provides desirable special case handling for LOB data regarding caching.<br />
Even if NO FILE SYSTEM CACHING is in effect (by default or as specified), access to LOB<br />
data still uses the file system cache.<br />
If a table space is MANAGED BY DATABASE, it uses Database Managed Storage (DMS),<br />
which does not differentiate between LOB and non-LOB data regarding caching. In particular,<br />
NO FILE SYSTEM CACHING means that LOB access reads and writes directly to disk.<br />
Unconditionally reading LOBs from disk can cause high disk use and poor database<br />
performance.<br />
Since Version 9.1, DB2 has created, by default, databases that use automatic storage<br />
(AUTOMATIC STORAGE YES). Creating databases by using automatic storage means that<br />
the database that manages disk space allocates itself from one or more pools of available file<br />
system space called storage paths. If automatic storage is enabled, CREATE TABLESPACE<br />
uses it by default (MANAGED BY AUTOMATIC STORAGE). For non-temporary table spaces,<br />
REGULAR and LARGE, automatic storage is implemented using DMS on files.<br />
Before DB2 9.5, the default caching strategy for table spaces was FILE SYSTEM CACHING.<br />
In version 9.5, this strategy was changed to NO FILE SYSTEM CACHING for platforms where<br />
direct I/O or concurrent I/O is available. Taking defaults on version 9.5, we now have a<br />
database with AUTOMATIC STORAGE YES, and a table space that is MANAGED BY<br />
AUTOMATIC STORAGE, and in many cases, NO FILE SYSTEM CACHING. Such a table<br />
space, which is implemented using DMS, does not cache LOBs in the buffer pool or the file<br />
system.<br />
84 <strong>IBM</strong> Business Process Manager V8.0 Performance Tuning and Best Practices