473,416 Members | 1,731 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

memory usage in db2

Raj
Hi Guys,

We are on db2 udb v8.2 64 bit,partitioned (5 nodes)
on AIX 5.2 ( intra parllelism is enabled).

I have a question, i am trying to find the memory usage on my
production machine, we 32 gb memory and the memory used bufferpools is
very low (around 720 mb). I wonder where is all the other memory being
used? (from nmon i see that 90% of the memory is being used)

I googled and found out that db2mtrk -i -d -v shows the memory usage in

db2, after i add all the numbers i got a very low value of 1 GB( this
includes BP)

I ran ps -e -o "%z %U %c" | sort -n i see lot of db2sysc processes
which cosume all the memory what are these processes?

what is the best way to find the bufferpool size?
select * from syscat.bufferpool * number of nodes???

Thanks,
Raj

Jan 18 '06 #1
7 4056
TO calculate buffer pools size in MB, use :
select BPNAME, NPAGES*PAGES*PAGESIZE/1024/1024 AS size_in_MB
from
SYSCAT.BUFFERPOOLS

Does this answer your question?

Mike

Raj wrote:
Hi Guys,

We are on db2 udb v8.2 64 bit,partitioned (5 nodes)
on AIX 5.2 ( intra parllelism is enabled).

I have a question, i am trying to find the memory usage on my
production machine, we 32 gb memory and the memory used bufferpools is
very low (around 720 mb). I wonder where is all the other memory being
used? (from nmon i see that 90% of the memory is being used)

I googled and found out that db2mtrk -i -d -v shows the memory usage in

db2, after i add all the numbers i got a very low value of 1 GB( this
includes BP)

I ran ps -e -o "%z %U %c" | sort -n i see lot of db2sysc processes
which cosume all the memory what are these processes?

what is the best way to find the bufferpool size?
select * from syscat.bufferpool * number of nodes???

Thanks,
Raj


Jan 18 '06 #2
This shell script will tell you the real memory being used on your
server -> not real + cached like the nmon display

You can also add to the grep a specific process name, for example, your
instance name, or db2sysc

#!/usr/bin/sh
FIELD6=`ps auxw | grep -v defunct |sed -n '2,$'p | awk '{ print $5 }'`
TOTAL=0
for P in `echo $FIELD6`
do
TOTAL=`expr $TOTAL + $P`
done
echo "$TOTAL" KB

Jan 18 '06 #3
DB2 Memory Tracker: db2mtrk

-Eugene

Jan 18 '06 #4
Raj
would'nt that give the size of BP for one node???

Jan 18 '06 #5
Raj wrote:
would'nt that give the size of BP for one node???


I don't know if this is already the accumulated number in SYSCAT.BUFFERPOOLS
(you could probably just have a look and see). If it isn't then you can
simply calculate it yourself:

SELECT bpname, n.npages * p.pagesize / 1024 / 1024 AS size_in_MB
FROM syscat.bufferpools AS p JOIN syscat.bufferpooldbpartitions AS n ON
( p.bufferpoolid = n.bufferpoolid )

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Jan 18 '06 #6
Hi,
I guess your memory is consumed by file system cache.. Can you paste
the output of "vmstat -v"?

Cheers,
Thiru.
DB2 DBA.
WantedToBeDBA {at} gmail {dot} com

Jan 19 '06 #7
Raj
The vmstat -v o/p
************************************************** ************************************************** ************************************************** ******
8388608 memory pages
7945351 lruable pages
324911 free pages
1 memory pools
791671 pinned pages
80.1 maxpin percentage
5.0 minperm percentage
40.0 maxperm percentage
49.6 numperm percentage
3942204 file pages
0.0 compressed percentage
0 compressed pages
39.3 numclient percentage
40.0 maxclient percentage
3122831 client pages
0 remote pageouts scheduled
0 pending disk I/Os blocked with no pbuf
6841 paging space I/Os blocked with no psbuf
961934 filesystem I/Os blocked with no fsbuf
0 client filesystem I/Os blocked with no fsbuf
411762361 external pager filesystem I/Os blocked with no
fsbuf
************************************************** ************************************************** ************************************************** ******
with the script posted by leomard the o/p was 18 GB used
************************************************** ************************************************** ************************************************** ******

nmon shows memory used as 31.9 GB
************************************************** ************************************************** ************************************************** ******

from db2
Mem Memory #
of Current
Type Level Pool
Pool(s) Size
---- ---------- --------------------
------- ------------
Inst EIAINST1 Monitor
6 1.1M
Inst EIAINST1 FCMBP
6 483.8M
Inst EIAINST1 Other
6 168.3M
Db EIA Database
6 113.8M
Db EIA Appl Control
125 765.5M
Db EIA Lock Mgr
6 248.2M
Db EIA Utility
6 96K
Db EIA Package Cache
6 55.8M
Db EIA Catalog Cache
6 3.5M
Db EIA Other
6 432K
Db EIA BufferPool
60 4.6G
Db EIA ApplGroup
25 1.7G
Db EIA SharedSort
6 0
Appl EIA Applications
248 16.8M
Appl EIA Other
248 14.3M
sheptesth 4.5G
Total memory 12.2G
************************************************** ************************************************** ************************************************** ******

are my memory calculations correct? our db is partitioned (6 logical
nodes)

Feb 17 '06 #8

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

Similar topics

8
by: rbt | last post by:
Would a Python process consume more memory on a PC with lots of memory? For example, say I have the same Python script running on two WinXP computers that both have Python 2.4.0. One computer has...
5
by: Justice | last post by:
Currently I'm doing some experimenting with the XMLHTTP object in Javascript. Now, the XMLHttp object is asynchronous (at least in this case), and the following code causes a significant memory...
2
by: tomvr | last post by:
Hello I have noticed some 'weird' memory usage in a vb.net windows app The situation is as follows I have an app (heavy on images) with 2 forms (actually there are more forms and on starting...
6
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that,...
2
by: Jarvis | last post by:
I've made a testing program to test the memory usage of some Data Forms. I create a MDI parent form with one single MDI child form, which is a Data Form generated by .NET Data Form Wizard. To...
3
by: Ian Taite | last post by:
Hello, I'm exploring why one of my C# .NET apps has "high" memory usage, and whether I can reduce the memory usage. I have an app that wakes up and processes text files into a database...
20
by: Philip Carnstam | last post by:
How come .Net applications use so much memory? Every application I compile uses at least 10 MB of memory, even the ones consisting of only a form and nothing else. If I minimize them though the...
13
by: Ilias Lazaridis | last post by:
How to detect memory leaks of python programms, which run in an environment like this: * Suse Linux 9.3 * Apache * mod_python The problem occoured after some updates on the infrastructure....
1
by: yzghan | last post by:
Hi all, I feel that my python script is leaking memory. And this is a test I have: log.write(" " + "test() ... memory usage: " + " ".join(repr(i/(1024*1024)) for i in getMemInfo()) + "\n") m...
1
by: Jean-Paul Calderone | last post by:
On Tue, 22 Apr 2008 14:54:37 -0700 (PDT), yzghan@gmail.com wrote: The test doesn't demonstrate any leaks. It does demonstrate that memory usage can remain at or near peak memory usage even after...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.