473,395 Members | 1,554 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,395 software developers and data experts.

num_poolagents doesn't add up

Hi Everyone:

I was reading the IBM article "The DB2 UDB Memory Model" and it talks
about for aix, one memory segment 256mb is dedicated to agent private
memory. That seems very low if you have many concurrent users. Also as
each agent completes its task the agent private memory is not free up
but remains in the num_poolagent pool for quick restart. Fine and good
until I add up how much that is. We are using memmaxfree (8mb) and
memdisclaim as recommended, and keep the num_poolagent at a modest 60.
But having read that only one 256 mb segment is dedicated for all
agents, 60 times 8 mb is 480mb which is bigger than the entire Agent
Private Memory segment not counting appleheap...etc. Would someone
please clarify this situation? I must be getting wrong information.

Incidently in our OLTP environment no more than 4 or 5 agents would be
active at any moment. Most tasks are short and done in 1-2 sec. Longer
ones are 8 to 10 sec but less used. Is num_poolagent too big? I just
simply count up average no of connected application.

Thank you in advance.
Selma

Nov 12 '05 #1
2 2300

"selma" <se*********@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi Everyone:

I was reading the IBM article "The DB2 UDB Memory Model" and it talks
about for aix, one memory segment 256mb is dedicated to agent private
memory. That seems very low if you have many concurrent users. Also as
each agent completes its task the agent private memory is not free up
but remains in the num_poolagent pool for quick restart. Fine and good
until I add up how much that is. We are using memmaxfree (8mb) and
memdisclaim as recommended, and keep the num_poolagent at a modest 60.
But having read that only one 256 mb segment is dedicated for all
agents, 60 times 8 mb is 480mb which is bigger than the entire Agent
Private Memory segment not counting appleheap...etc. Would someone
please clarify this situation? I must be getting wrong information.
===========
The more concurrent users does not mean the more private memory each agent
will use. On aix, each agent can use up to 256MB private memory. Once
allocated for one db2 agent, it can't be shared by the other db2 agents. The
shared memory is db2 buffer pool, not each agent private memory. This is why
db2 private sort and shared sort go to different place.
Incidently in our OLTP environment no more than 4 or 5 agents would be
active at any moment. Most tasks are short and done in 1-2 sec. Longer
ones are 8 to 10 sec but less used. Is num_poolagent too big? I just
simply count up average no of connected application.

Thank you in advance.
Selma

Nov 12 '05 #2
Ruo Xin has answered part one.
As to num_poolagents at 60, as usual the answer is it depends.
1) If uni processor. Vlaue seems somewhat high as a connection has a
coordiantor agent from connect to until connect reset.
You also have to think about the idle connections. Your snapshot will
show you the high water of connections executing in the instance and
also the number of total remote/local connections. There's no need to
have many more pool agents than total number of connections.

2) With multi processors, each coordinator agents can dispatch subagents
so the number of agents initially available and also ket in the pool is
more important.

For an OLTP environment, you have few queries and therefore require
fewer add'l additional agents than the coordinators. With the numbers
you mention, I'd be comfortable with 20 agents in the pool unless your
snapshots tell you differently.
HTH, Pierre.

selma wrote:
Hi Everyone:

I was reading the IBM article "The DB2 UDB Memory Model" and it talks
about for aix, one memory segment 256mb is dedicated to agent private
memory. That seems very low if you have many concurrent users. Also as
each agent completes its task the agent private memory is not free up
but remains in the num_poolagent pool for quick restart. Fine and good
until I add up how much that is. We are using memmaxfree (8mb) and
memdisclaim as recommended, and keep the num_poolagent at a modest 60.
But having read that only one 256 mb segment is dedicated for all
agents, 60 times 8 mb is 480mb which is bigger than the entire Agent
Private Memory segment not counting appleheap...etc. Would someone
please clarify this situation? I must be getting wrong information.

Incidently in our OLTP environment no more than 4 or 5 agents would be
active at any moment. Most tasks are short and done in 1-2 sec. Longer
ones are 8 to 10 sec but less used. Is num_poolagent too big? I just
simply count up average no of connected application.

Thank you in advance.
Selma


--
Pierre Saint-Jacques - Reply to: sescons at attglobal dot net
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.
Nov 12 '05 #3

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

Similar topics

7
by: AnnMarie | last post by:
My JavaScript Form Validation doesn't work at all in Netscape, but it works fine in IE. I made some of the suggested changes which enabled it to work in IE. I couldn't make all the changes...
39
by: Mark Johnson | last post by:
It doesn't seem possible. But would the following also seem a violation of the general notions behind css? You have a DIV, say asociated with class, 'topdiv'. Inside of that you have an anchor...
4
by: Bob Bedford | last post by:
We have no access to a mysql NG on my provider's server, so we ask here: We have a long query (long in text) with a UNION between 2 select. We have been informed that some times the query...
1
by: David Franit | last post by:
Hello, I am looking at tuning NUM_POOLAGENTS for many v7.x and v8.x UDB instances. Aside from logging into each instance and running 'db2 list applications', or writing a script to do so, is...
149
by: Christopher Benson-Manica | last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.) strchr() is to strrchr() as strstr() is to strrstr(), but strrstr() isn't part of the standard. Why not? --...
43
by: Zeng | last post by:
It's so messy w/o the "friend" relationship. Does anyone know why it was not supported in C#. It's almost about as bad as it doesn't support the inheritance hierarchy and method reference...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
38
by: tshad | last post by:
In VS 2008, why doesn't ToString require "()". If I have Option Strict On on why can I do both: selectedIndex.ToString() selectedIndex.ToString or sQuery =...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...

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.