473,405 Members | 2,167 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,405 software developers and data experts.

memeory usage

Raj
I am trying to find the memory usage in db2, i've posted several topics
here but never found the answer,I would really appreciate any help ...
my question is i see 95 % of memory on my production machine being
used, but can't find what db2 processes are using it up?

even with a db2stop i see 50 % memory being used ( i used nmon, vmstat
to find the memory usage [all i can see is some db2sysc and db2fmp
process use up the mem]...
i don't have access to svmon) below are the output of vmstat, and
db2mtrk

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
************************************************** ****************************

from db2 ( for 6 partitions)
----------------------------------------------------------------------------------------------------------------------------

Mem Memory # of Current
Type Pool Pool(s) Size
---- -------------------- ------- ------------
Inst Monitor 6 1M
Inst FCMBP 6 483.8M
Inst Other 6 167.4M
Db Database 6 110M
Db Appl Control 60 367.9M
Db Lock Mgr 6 248.2M
Db Utility 6 96K
Db Package Cache 6 20.1M
Db Catalog Cache 6 2.7M
Db Other 6 192K
Db BufferPool 60 4.6G
Db ApplGroup 12 849.7M
Db SharedSort 6 0
Appl Applications 260 19.7M
Appl Other 260 371.9M
Total memory 7.7G
(sheptesth 4.5G )
--------------------------------------------------------------------------------------------------------------------------

Thanks,
Raj

Feb 24 '06 #1
6 3155
Raj wrote:
I am trying to find the memory usage in db2, i've posted several topics
here but never found the answer,I would really appreciate any help ...
my question is i see 95 % of memory on my production machine being
used, but can't find what db2 processes are using it up?


You have several processes in DB2 that work together via shared memory. So
you can't simply say that xxx MB belong to this process and yyy MB to
another process. Therefore, the db2mtrk tool shows you which memory heap
(or memory pool) takes how much space - regardless of the processes.

Did you already have a look at the db2top tool? http://tinyurl.com/g92t8

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Feb 24 '06 #2
Raj
Yeah i used that too .. what i don't understand is even with a db2stop
nmon shows 50 % memory as being used... ( all i can see is db2sysc
process....

Feb 24 '06 #3
Raj wrote:
Yeah i used that too .. what i don't understand is even with a db2stop
nmon shows 50 % memory as being used... ( all i can see is db2sysc
process....


After a db2stop there shouldn't be any db2sysc processes left over. At
least there are none on Unix systems, except the db2fmcd.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Feb 24 '06 #4
Hi Raj,

Look at the numperm setting from your vmstat output - that shows that
49.6% of memory is being consumed for the file cache. Your maxperm
setting looks a little high for a database server - database servers
have their own form of cacheing for database files - i.e. the DB2
buffer pools. Since numperm is higher than maxperm, my guess is that
there isn't that strong of a demand for memory on the system at the
time. However, it will still show up as memory being used until some
other process needs it (at which time, clean file cache pages will
likely just be discarded, lowering numperm).

You should look into CIO/DIO support in DB2, since that avoids double
buffering - i.e. a database file being cached both in the OS file
cache, and in the DB2 buffer pools. CIO/DIO circumvents the file
cache, meaning the page will only be cached once in the DB2 buffer
pools.

Cheers,
Liam.

Feb 24 '06 #5
Raj
Thanks a lot Liam... we had to reboot our server now i see with out
db2start % free mem is 90, after db2start and activating the databse it
gets to about 40 %, which makes more sense ... but i am sure it will
get back to 95 % used in few days...

what is CIO/DIO support?

Feb 27 '06 #6
From the online information center; search on "CIO":

Direct I/O (DIO) and concurrent I/O (CIO) support

Direct I/O (DIO) improves memory performance because it bypasses caching
at the file system level. This process reduces CPU overhead and makes
more memory available to the database instance.

Concurrent I/O (CIO) includes the advantages of DIO and also relieves
the serialization of write accesses.

DB2 Universal Database(TM) (UDB) supports DIO and CIO on AIX(R); and DIO
on HP-UX, Solaris Operating Environment, Linux(TM), and Windows(R).

The keywords NO FILE SYSTEM CACHING and FILE SYSTEM CACHING are part of
the CREATE and ALTER TABLESPACE SQL statements to allow you to specify
whether DIO or CIO is to be used with each table space. When NO FILE
SYSTEM CACHING is in effect, DB2(R) UDB attempts to use concurrent I/O
wherever possible. In cases, where CIO is not supported (for example, if
JFS is used), DIO is used instead.
Philip Sherman
Raj wrote:
Thanks a lot Liam... we had to reboot our server now i see with out
db2start % free mem is 90, after db2start and activating the databse it
gets to about 40 %, which makes more sense ... but i am sure it will
get back to 95 % used in few days...

what is CIO/DIO support?

Feb 27 '06 #7

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...
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...
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...
26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
10
by: rdemyan via AccessMonster.com | last post by:
My app contains utility meter usage. One of the things we have to deal with is when a usage is clearly incorrect. Perhaps someone wrote the meter reading down incorrectly or made a factor of 10...
3
by: Sirisha | last post by:
I am using the following code to get the CPU usage PerformanceCounter myCounter; myCounter = new PerformanceCounter(); myCounter.CategoryName = "Processor"; myCounter.CounterName = "%...
1
by: tarunjindal | last post by:
Hi I am Tarun Jindal a s/w engineer working in Satyam computers I would like to ask some question from you. We at Satyam is developing a software which will built xml for out clients. ...
2
by: jld | last post by:
Hi, I developed an asp.net based eCommerce Website for a client and it is hosted at discount asp. The site is quite interactive, queries a database a lot and uses ajax.asp.net to spice up...
7
by: globalrev | last post by:
if i do something like while 1: print "x" will the program ever stop because it runs out of memory? or is the print x never stored somewhere? if u do soemhting like add element to a list it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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...

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.