If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Bufferpool(automatic) and STMM(enabled)!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-11, 15:31
VenkatG VenkatG is offline
Registered User
 
Join Date: Mar 2011
Posts: 11
Bufferpool(automatic) and STMM(enabled)!

Can we set bufferpool to automatic with out enabling STMM, so that the bufferpool size changes based on the load and free memory that is available?
Reply With Quote
  #2 (permalink)  
Old 03-17-11, 16:57
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
No, You must enable STMM to have the AUTOMATIC heaps work. You must also have at least two of the heaps set to AUTOMATIC for it to work. It is not generally a good idea to have the bufferpools at AUTOMATIC. A fixed size works good. Set the other heaps to AUTOMATIC.

Andy
Reply With Quote
  #3 (permalink)  
Old 03-18-11, 03:26
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Quote:
Originally Posted by ARWinner View Post
It is not generally a good idea to have the bufferpools at AUTOMATIC. A fixed size works good. Set the other heaps to AUTOMATIC.
Andy
This calls for an explanation. I call you.
Reply With Quote
  #4 (permalink)  
Old 03-18-11, 04:29
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Well,

just a quick example. I setup a new database on a system with 64 GB RAM. The database had a size of roughly 100 MB. There were two bufferpools. 1 for User Data and the IBMDEFAULTBP for system-catalog, Temspace1, ...
The STMM increased IBMDEFAULTBP to 2 GB since the System had enough free memory at the time. Sometimes the STMM ist too ambitious.

I'm running most of the databases with STMM, but sometimes i does not work.
Reply With Quote
  #5 (permalink)  
Old 03-18-11, 07:18
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Quote:
Originally Posted by nvk@vhv View Post
Sometimes the STMM ist too ambitious.
Ah , you protect the bufferpoolpages from agoraphobia.
Reply With Quote
  #6 (permalink)  
Old 03-18-11, 10:12
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Bufferpools are where DB2 actually works with the data and indexes. If you set them to AUTOMATIC, DB2 will be constantly resizing them trying to get the "optimal" setting. But there is no real optimal setting if they are variable since some other bufferpool or cache will want more memory eventually. Then you have DB2 shrinking or expanding the bufferpools which takes time and will hurt performance. It is better to have DB2 change the sizes of the other caches which are not always being used, but the bufferpools are always used.

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On