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 > memory used by database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-19-09, 14:29
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
memory used by database

what database configuration parameters can I use to calculate total amount of memory used by the database?

Thanks
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
  #2 (permalink)  
Old 02-19-09, 14:31
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
db2mtrk is one tool. db2pd also has provides information on memory. Check with the Comand Reference manual to see which options to use with these tools to get the information that you need.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 02-19-09, 14:37
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
Quote:
Originally Posted by Marcus_A
db2mtrk is one tool. db2pd also has provides information on memory. Check with the Comand Reference manual to see which options to use with these tools to get the information that you need.
those 2 commands give me a snapshot of what is being currently used now. may be I should rephrase my question - how much max memory would the database use based on db cfg parameters? what db cfg params can I add up to calculate it?

Thanks
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
  #4 (permalink)  
Old 02-19-09, 15:44
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
please check this article:
The DB2 UDB memory model


There is a formula you can use to estimate your db shared memory (ie. bufferpools, locklist, dbheap, etc...). This is what gets allocated when the db is started.
Reply With Quote
  #5 (permalink)  
Old 02-20-09, 00:45
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by MarkhamDBA
those 2 commands give me a snapshot of what is being currently used now. may be I should rephrase my question - how much max memory would the database use based on db cfg parameters? what db cfg params can I add up to calculate it?
Thanks
A lot of that depends on which version of DB2 you are using (whether you have Self Tunning Memory Manager in the version you are using), and whether you have each parameter set to automatic or not. With automatic memory you can actually specify a maximum value that will be used in total for all the various database shared memory components (controlled by the database_memory configuration parameter).

I assume you know that in addition to database memory, there is memory at the instance level, including memory required for each connection to a database.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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