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

Home Posts Topics Members FAQ

Performance parameters in db2

Hi
Everyone looks at some 5 parameters if they are going to deal with
db performance, like the sortheap, stmt heap, appl heap etc. I just
have one small doubt(big it may be).. If I give a value of say 64000 -
4k pages to sortheap, does it mean I am giving 256 megs for the db as
a whole to use for sorting or am I giving 256 Megs for each sort
operation? I have this doubt from the first time I read about the
parameters and ppl have given me both answers.
Thanks
Arun

Apr 6 '07 #1
5 2106
ar*******@gmail.com wrote:
Hi
Everyone looks at some 5 parameters if they are going to deal with
db performance, like the sortheap, stmt heap, appl heap etc. I just
have one small doubt(big it may be).. If I give a value of say 64000 -
4k pages to sortheap, does it mean I am giving 256 megs for the db as
a whole to use for sorting or am I giving 256 Megs for each sort
operation? I have this doubt from the first time I read about the
parameters and ppl have given me both answers.
Thanks
Arun
Hi Arun,

check the Info Center, both on "sortheap":
http://publib.boulder.ibm.com/infoce...n/r0000259.htm
and on "sheapthres":
http://publib.boulder.ibm.com/infoce...n/r0000260.htm
and maybe also on "sheapthres_shr":
http://publib.boulder.ibm.com/infoce...n/r0006014.htm

HTH.

--
Jeroen
Apr 6 '07 #2
Hi,

Sortheap is a database level parameter.
so it is not for each operation. it is for db as a whole.
On Apr 7, 2:42 am, "The Boss" <use...@No.Spam.Please.invalidwrote:
arunro...@gmail.com wrote:
Hi
Everyone looks at some 5 parameters if they are going to deal with
db performance, like the sortheap, stmt heap, appl heap etc. I just
have one small doubt(big it may be).. If I give a value of say 64000 -
4k pages to sortheap, does it mean I am giving 256 megs for the db as
a whole to use for sorting or am I giving 256 Megs for each sort
operation? I have this doubt from the first time I read about the
parameters and ppl have given me both answers.
Thanks
Arun

Hi Arun,

check the Info Center, both on "sortheap":http://publib.boulder.ibm.com/infoce...ic/com.ibm.db2...
and on "sheapthres":http://publib.boulder.ibm.com/infoce...ic/com.ibm.db2...
and maybe also on "sheapthres_shr":http://publib.boulder.ibm.com/infoce...ic/com.ibm.db2...

HTH.

--
Jeroen

Apr 7 '07 #3
Ian
swami wrote:
Hi,

Sortheap is a database level parameter.
so it is not for each operation. it is for db as a whole.
You are incorrect. Please read the documentation that Jeroen referenced
below.

The fact that it is defined in the database configuration only means
that the setting applies each sorts that take place in the database.
Apr 7 '07 #4
On Apr 7, 9:04 am, Ian <ianb...@mobileaudio.comwrote:
swami wrote:
Hi,
Sortheap is a database level parameter.
so it is not for each operation. it is for db as a whole.

You are incorrect. Please read the documentation that Jeroen referenced
below.

The fact that it is defined in the database configuration only means
that the setting applies each sorts that take place in the database.
Hah.. I thought I was asking dumb question.. It is not

Apr 9 '07 #5
On 6 Apr, 21:12, arunro...@gmail.com wrote:
Hi
Everyone looks at some 5 parameters if they are going to deal with
db performance, like the sortheap, stmt heap, appl heap etc. I just
have one small doubt(big it may be).. If I give a value of say 64000 -
4k pages to sortheap, does it mean I am giving 256 megs for the db as
a whole to use for sorting or am I giving 256 Megs for each sort
operation? I have this doubt from the first time I read about the
parameters and ppl have given me both answers.
Thanks
Arun
Arun, the manual usually says that each private sort will allocate up
to 256Mb. i.e. if you have 4 concurrent private sorts, then it can use
up to 1Gb of memory. From what I can tell, by monitoring sort memory,
in most situations, the sort will use all (not up to) the SORTHEAP
parameter.

Apr 10 '07 #6

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

Similar topics

1
by: Putz Ronald | last post by:
Hy! We got the same datamodell on Solaris and on WindowsXP. But there is a mojor difference in the Performance. The database on Windows is much faster than the one on Solaris although the...
11
by: Michael Bader | last post by:
Hi, I'm currently working on a matrix multiplication code (matrix times matrix), and have come along some interesting/confusing results concerning the running time of the (apparently) same...
6
by: pragile | last post by:
I have a stored procedure that has some problems with slow performance. The procedure has 2 parameters @firstname varchar(100) @lastname varchar(100) These parameters can have values like a%,...
6
by: AC Slater | last post by:
Hi All, Out of nowhere my udb system (v8) performance has went terrible. Its gotten about 10x worse, (some tests that used to take 2 seconds to run now take 20)... I'm not sure what happened. ...
3
by: Mario.Reif | last post by:
We have developed an application which was running under DB2 v7.2.5 quite well for some years. Four weeks ago we installed DB2 v8.1.5 Express Fixpak 5 on a new Server (hardware is nearly the same...
1
by: Guru | last post by:
Hi All Can anyone guide me to analysis the Performance of DB2. What all are the parameters need to monitor and how to do the monitor the things? How to capature the executed SQL queries and...
6
by: Alex | last post by:
Hi... I have a stored procedure that takes in a large number of parameters (around 30) and returns (as output parameters) another 10 or so. At the moment, each parameter is declared, defined...
9
by: Frank | last post by:
Hi, imagine there's a WEB application reading data from an Oracle database to visualize in using DataGrids in the clients browser. Yes, sounds simple, just create OracleConnection + OracleCommand...
5
by: Sanjay Pais | last post by:
I have a table with over 1.3 million rows. I am retrieving only 20 at a time using the with - over clauses In query analyser, the data is retrieved in under a second. When retrieving using the...
12
by: Ilyas | last post by:
Hi all I have an application which brings back 1000 records from a sql server database. Under the local asp.net development server provided with Visual Studio 2008, it takes about 1.8 seconds ...
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,...
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.