473,466 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

correlation between ipcs -mb and db2mtrk

I am running the following commands on an AIX 5.2 server, using db2 udb
v8.2.2.
my ipcs -mb command gives me the following:
IPC status from /dev/mem as of Mon Nov 20 12:47:25 EST 2006
T ID KEY MODE OWNER GROUP SEGSZ
Shared Memory:
m 0 0xffffffff --rw-rw---- root system 4096
m 1 0xffffffff D-rw-rw-rw- db2inst1 db2iadm1 140665792
m 70254596 0x0d00055c --rw-rw---- root system 1440
m 400556038 0x9efe1774 --rw-rw-rw- dbi1327 db2iadm1 140665792
m 211812360 0xffffffff D-rw-rw-rw- db2inst1 db2iadm1 140665792
m 573571084 0xffffffff --rw------- dbi1327 db2iadm1 245284864
m 697303053 0x9efe1761 --rw------- dbi1327 db2iadm1 29163520
m 973078544 0xffffffff --rw------- dbi1327 db2iadm1 1342177280
m 75497489 0xffffffff D-rw------- db2fenc1 db2fadm1 245284864
m 704643090 0x39220c68 --rw-rw---- db2inst1 db2iadm1 184549376
m 140509203 0x39220b74 --rw-rw-rw- db2inst1 db2iadm1 140665792
m 402653204 0x39220b61 --rw------- db2inst1 db2iadm1 29163520
m 449839126 0xffffffff --rw------- db2fenc1 db2fadm1 245284864
m 845152279 0xffffffff --rw------- db2inst1 db2iadm1 131072
and my db2mtrk -i -d -v command :

dbi1327@ep2pcdb14 db2mtrk -i -d -v
Tracking Memory on: 2006/11/20 at 13:00:53

Memory for instance

Database Monitor Heap is of size 212992 bytes
Other Memory is of size 1392640 bytes
Total: 1605632 bytes

Memory for database: DB1327PP

Backup/Restore/Util Heap is of size 131072 bytes
Package Cache is of size 7208960 bytes
Catalog Cache Heap is of size 2555904 bytes
Buffer Pool Heap is of size 42352640 bytes
Buffer Pool Heap is of size 84606976 bytes
Buffer Pool Heap is of size 8552448 bytes
Buffer Pool Heap is of size 69320704 bytes
Buffer Pool Heap is of size 43368448 bytes
Buffer Pool Heap is of size 138608640 bytes
Buffer Pool Heap is of size 136429568 bytes
Buffer Pool Heap is of size 950272 bytes
Buffer Pool Heap is of size 786432 bytes
Buffer Pool Heap is of size 138608640 bytes
Buffer Pool Heap is of size 655360 bytes
Buffer Pool Heap is of size 393216 bytes
Buffer Pool Heap is of size 262144 bytes
Buffer Pool Heap is of size 196608 bytes
Lock Manager Heap is of size 85147648 bytes
Database Heap is of size 7438336 bytes
Other Memory is of size 0 bytes
Total: 767574016 bytes
Is there any correlation between the two?
My general concept is to figure out, on a multi db2 instance box, the
total amount of memory used by db2. I am going through each instance
and running the db2mtrk command. and grabbing the Total bytes line for
the instance and the active databases ultimatedly aggregating for the
entire box.

my two commands are actually:

db2mtrk -i -d -v | egrep '^Memory|Total:' |perl -ane 'BEGIN {$sum=0;}
$sum+=$1 if (/Total: (\d+) /); END {print "Total: ${sum}\n"; };'

and

ipcs -mb |awk '/db2iadm/{sum+=$7}END{print sum/(1024*1024)}'

TIA,

Kermit
kermit dot lowry at s1 dot com

Nov 20 '06 #1
2 3323

tr*********@yahoo.com wrote:
I am running the following commands on an AIX 5.2 server, using db2 udb
v8.2.2.
my ipcs -mb command gives me the following:
IPC status from /dev/mem as of Mon Nov 20 12:47:25 EST 2006
T ID KEY MODE OWNER GROUP SEGSZ
Shared Memory:
m 0 0xffffffff --rw-rw---- root system 4096
m 1 0xffffffff D-rw-rw-rw- db2inst1 db2iadm1 140665792
m 70254596 0x0d00055c --rw-rw---- root system 1440
m 400556038 0x9efe1774 --rw-rw-rw- dbi1327 db2iadm1 140665792
m 211812360 0xffffffff D-rw-rw-rw- db2inst1 db2iadm1 140665792
m 573571084 0xffffffff --rw------- dbi1327 db2iadm1 245284864
m 697303053 0x9efe1761 --rw------- dbi1327 db2iadm1 29163520
m 973078544 0xffffffff --rw------- dbi1327 db2iadm1 1342177280
m 75497489 0xffffffff D-rw------- db2fenc1 db2fadm1 245284864
m 704643090 0x39220c68 --rw-rw---- db2inst1 db2iadm1 184549376
m 140509203 0x39220b74 --rw-rw-rw- db2inst1 db2iadm1 140665792
m 402653204 0x39220b61 --rw------- db2inst1 db2iadm1 29163520
m 449839126 0xffffffff --rw------- db2fenc1 db2fadm1 245284864
m 845152279 0xffffffff --rw------- db2inst1 db2iadm1 131072
and my db2mtrk -i -d -v command :

dbi1327@ep2pcdb14 db2mtrk -i -d -v
Tracking Memory on: 2006/11/20 at 13:00:53

Memory for instance

Database Monitor Heap is of size 212992 bytes
Other Memory is of size 1392640 bytes
Total: 1605632 bytes

Memory for database: DB1327PP

Backup/Restore/Util Heap is of size 131072 bytes
Package Cache is of size 7208960 bytes
Catalog Cache Heap is of size 2555904 bytes
Buffer Pool Heap is of size 42352640 bytes
Buffer Pool Heap is of size 84606976 bytes
Buffer Pool Heap is of size 8552448 bytes
Buffer Pool Heap is of size 69320704 bytes
Buffer Pool Heap is of size 43368448 bytes
Buffer Pool Heap is of size 138608640 bytes
Buffer Pool Heap is of size 136429568 bytes
Buffer Pool Heap is of size 950272 bytes
Buffer Pool Heap is of size 786432 bytes
Buffer Pool Heap is of size 138608640 bytes
Buffer Pool Heap is of size 655360 bytes
Buffer Pool Heap is of size 393216 bytes
Buffer Pool Heap is of size 262144 bytes
Buffer Pool Heap is of size 196608 bytes
Lock Manager Heap is of size 85147648 bytes
Database Heap is of size 7438336 bytes
Other Memory is of size 0 bytes
Total: 767574016 bytes
Is there any correlation between the two?
My general concept is to figure out, on a multi db2 instance box, the
total amount of memory used by db2. I am going through each instance
and running the db2mtrk command. and grabbing the Total bytes line for
the instance and the active databases ultimatedly aggregating for the
entire box.

my two commands are actually:

db2mtrk -i -d -v | egrep '^Memory|Total:' |perl -ane 'BEGIN {$sum=0;}
$sum+=$1 if (/Total: (\d+) /); END {print "Total: ${sum}\n"; };'

and

ipcs -mb |awk '/db2iadm/{sum+=$7}END{print sum/(1024*1024)}'

TIA,

Kermit
kermit dot lowry at s1 dot com
Hi Kermit,

The rough correlation between the two is that the ipcs output will be
an upper bound on shared memory consumption, but db2mtrk will report on
the current usage of that shared memory. If DB2 hasn't touched all the
pages in a shared memory segment, then on AIX, no physical memory or
paging space is consumed for those untouched pages (this behaviour
varies by platform).

db2mtrk will also give you private memory consumption by db2 agents,
which can amount to a significant total amount of memory depending on
your configuration.

If you haven't already done so, you should check out the following
article that gives a good overview of the DB2 memory model:

http://www-128.ibm.com/developerwork...6qi/index.html

Cheers,
Liam.

Nov 21 '06 #2
Thank you very much.

Nov 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Prince Kumar | last post by:
I have the following query, which is takling couple of minutes to return 500+ rows! I have all the proper indexes and statistics is upto date. I correlation after the OR clause is the culprit....
0
by: Erik Hendrix | last post by:
Hi, I was wondering if some people could help me here, I've been trying to use pmap on the DB2 processes to determine how much memory in total we are consuming for DB2 (shared + private). Now...
8
by: Jean-Marc Blaise | last post by:
Hi, I'm on Linux Intel, V8.1 / FP4. I have an instance crash. The test case: db2set DB2_FMP_COMM_HEAPSZ = 0 db2stop db2start db2mtrk -i -d -p -v ==> Instance is crashed.
2
by: nek | last post by:
Would someone care to comment the following results of DB2MTRK execution, thanks. The platform is W2K SP with DB2 V8.1, SP2. We have this result when running db2mtrk -i Appctlh ...
14
by: Ed L. | last post by:
A power failure led to failed postmaster restart using 7.4.6 (see output below). The short-term fix is usually to delete the pid file and restart. I often wonder why ipcs never seems to show the...
0
by: cbielins | last post by:
We are about to 'stress test' our DB2 environment. I've played with db2mtrk off and on, trying to figure out how it's mapping the memory to its components. If I have the following output: ...
18
by: robert | last post by:
Is there a ready made function in numpy/scipy to compute the correlation y=mx+o of an X and Y fast: m, m-err, o, o-err, r-coef,r-coef-err ? Or a formula to to compute the 3 error ranges? ...
6
by: dunleav1 | last post by:
I have a db2 9 FP3a installation with one instance and one database installed. I have 4G of physical RAM and I have enabled the /3G switch in boot.ini. I am using STTM. If I run db2mtrk the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.