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 > Best way to calculate memory utilization

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-08, 19:01
db2udbgirl db2udbgirl is offline
Registered User
 
Join Date: Mar 2006
Location: Tuticorin, India
Posts: 100
Best way to calculate memory utilization

Which is the reliable/trusted/suggested method to calculate the memory utilization by a DB2 Instance (assuming there is just one instance of DB2 on a server) ?

Env : DB2 V8.2 / AIX 5.3

Option 1: Using db2mtrk
MEMORY=`db2mtrk -i -d -p -v | grep Total | awk '{ print $2 }'`

TOTAL_MEMORY=0
for i in `echo $MEMORY`
do
TOTAL_MEMORY=`expr $TOTAL_MEMORY + $i`
done

Option 2: Using ps as instance owner.
DB2_MEM_LIST=$( ps gux | grep db2 | awk '{ print $6 }' | tr '\012' ' ' )

DB2MEM=0
for db2_mem in $DB2_MEM_LIST
do
(( DB2MEM=DB2MEM + $db2_mem ))
done

Pls advice. Thanks
Reply With Quote
  #2 (permalink)  
Old 10-21-08, 02:55
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 10-21-08, 13:24
db2udbgirl db2udbgirl is offline
Registered User
 
Join Date: Mar 2006
Location: Tuticorin, India
Posts: 100
I try to use db2pd on a test environment but I have the following questions
[1] What is Memory Pools and Memory sets ?
[2] What is the difference between mempool & memsets ?
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