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 > Question about some memory affecting parameters

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-06-03, 08:17
zaxxon zaxxon is offline
Registered User
 
Join Date: Nov 2003
Location: Koblenz, Germany
Posts: 4
Red face Question about some memory affecting parameters

Hi,

does db2 allocate memory for SHEAPTHRES, BUFFPAGE and DBHEAP all at once or just as needed?
Our applications don't do any sorts so I just defined a high value of memory for SHEAPTHRES, because we want to do a reorg check/reorg soon and I was advised to have a very large SORTHEAP/SHEAPTHRES for that. I also increased BUFFPAGE a lot, even the snapshots at peaktimes show, that it is far too much.

Overall I recognize that about that the box (AIX) is using about 1 GByte of memory for processes instead for files like before I made these changes.

From the information I found at the DB2 Information Center I am not sure, if it allocates the memory or not. Following the snapshots, it doesn't, but looking with the monitor tool for memory usage it's showing other memory usage as stated above.

Else I will keep the values as low as needed and just increase them a lot for our reorg, so that it might be able to finish successfully in some hours.

Thanks for any advice in forward. If something isn't clearly explained, pls tell me, as english isn't my mother language.
Reply With Quote
  #2 (permalink)  
Old 11-06-03, 08:50
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
From an IBM tech article:

BUFFPAGE

"By default, applications use the buffer pool called IBMDEFAULTBP, which is created when the database is created. The DB2 database configuration parameter BUFFPAGE controls the size of a buffer pool when the value of NPAGES is -1 for that buffer pool in the SYSCAT.BUFFERPOOLS catalog table. Otherwise the BUFFPAGE parameter is ignored, and the buffer pool is created with the number of pages specified by the NPAGES parameter."

So unless you set NPAGES to -1, BUFFPAGE is not used. If it is used, it would be allocated when the database is activated.

-------------------------------------------------------------------------

Quoting from Adminstration Guide: Implementation

SHEAPTHRES

"Private and shared sorts use memory from two different memory sources. The size of the shared sort memory area is statically predetermined at the time of the first connection to a database based on the value of sheapthres. The size of the private sort memory area is unrestricted.

The sheapthres parameter is used differently for private and shared sorts:

- For private sorts, this parameter is an instance-wide soft limit on the total amount of memory that can be consumed by private sorts at any given time. When the total private-sort memory consumption for an instance reaches this limit, the memory allocated for additional incoming
private-sort requests will be considerably reduced.

- For shared sorts, this parameter is a database-wide hard limit on the total amount of memory consumed by shared sorts at any given time. When this limit is reached, no further shared-sort memory requests will be allowed (until the total shared-sort memory consumption falls below the limit specified by sheapthres)."

----------------------------------------------------------------------

DBHEAP is allocated when the database is activated.

Last edited by Marcus_A; 11-06-03 at 09:02.
Reply With Quote
  #3 (permalink)  
Old 11-06-03, 09:12
zaxxon zaxxon is offline
Registered User
 
Join Date: Nov 2003
Location: Koblenz, Germany
Posts: 4
Thx for the answer,

BUFFPAGE
I know this explanation from the manual page and I know that I have the BUFFPAGE parameter activated. But the text doesn't say, when the pages I have set as value for BUFFPAGE are allocated and how many of them, if they are just allocated as needed or just all at once. Maybe I miss a sentence or misunderstand one.

SHEAPTHRES
Ok, so everything is allocated with the 1st connect to the DB.

DBHEAP
Clear to me now, thx.
Reply With Quote
  #4 (permalink)  
Old 11-06-03, 09:18
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
If BUFFPAGE is used to determine the bufferpool size (rather than NPAGES for each bufferpool), then it is used to allocate the bufferpools when database is activated. I know it doesn't explicitly say that, but that is how the bufferpools work.
Reply With Quote
  #5 (permalink)  
Old 11-06-03, 09:30
zaxxon zaxxon is offline
Registered User
 
Join Date: Nov 2003
Location: Koblenz, Germany
Posts: 4
Ok, thats a clear statement, thx
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