472,787 Members | 1,494 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Bufferpool reduces performance.


Folks,

I am not sure what I am doing wrong, but We have an transaction that
does some serious calculation on small chink of data over and over
again.

It selects few rows from the table several times and does different
calculations. It was taking about 45 seconds to run. I thought that
moving the file to its own tablespace and giving it large bufferpool
would improve the performance. I experienced exactly opposite, the
transaction now took 4 minutes instead of 45 seconds.

Initially table was created as follows:

CREATE TABLE APDEV15.AADMPF00
(KEY0 CHAR (31) NOT NULL,
REC VARCHAR(3000));

CREATE UNIQUE INDEX AADMPF00_ASC ON APDEV15.AADMPF00 (KEY0 ASC)
ALLOW REVERSE SCAN;

Then I changed it as follows:

CREATE BUFFERPOOL PLANFILEPOOL SIZE 40 PAGESIZE 4K;

CREATE REGULAR TABLESPACE PLANFILESPACE PAGESIZE 4K MANAGED BY SYSTEM
USING ('/f2/dbap15/dbap15/PLANFILESPACE') BUFFERPOOL PLANFILEPOOL;

CREATE TABLE APDEV15.AADMPF00
(KEY0 CHAR (31) NOT NULL,
REC VARCHAR(3000)) IN PLANFILESPACE INDEX IN PLANFILESPACE;

CREATE UNIQUE INDEX AADMPF00_ASC ON APDEV15.AADMPF00 (KEY0 ASC) ALLOW REVERSE SCAN;
What am I doing wrong?

I am running DB2 UDB 8.1 FP5 under AIX 5.1
Thanks.
--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Nov 12 '05 #1
5 3400

"Hemant Shah" <sh**@typhoon.xnet.com> wrote in message
news:cs**********@new7.xnet.com...

Folks,

I am not sure what I am doing wrong, but We have an transaction that
does some serious calculation on small chink of data over and over
again.

It selects few rows from the table several times and does different
calculations. It was taking about 45 seconds to run. I thought that
moving the file to its own tablespace and giving it large bufferpool
would improve the performance. I experienced exactly opposite, the
transaction now took 4 minutes instead of 45 seconds.

Initially table was created as follows:

CREATE TABLE APDEV15.AADMPF00
(KEY0 CHAR (31) NOT NULL,
REC VARCHAR(3000));

CREATE UNIQUE INDEX AADMPF00_ASC ON APDEV15.AADMPF00 (KEY0 ASC)
ALLOW REVERSE SCAN;

Then I changed it as follows:

CREATE BUFFERPOOL PLANFILEPOOL SIZE 40 PAGESIZE 4K;

CREATE REGULAR TABLESPACE PLANFILESPACE PAGESIZE 4K MANAGED BY SYSTEM
USING ('/f2/dbap15/dbap15/PLANFILESPACE') BUFFERPOOL PLANFILEPOOL;

CREATE TABLE APDEV15.AADMPF00
(KEY0 CHAR (31) NOT NULL,
REC VARCHAR(3000)) IN PLANFILESPACE INDEX IN PLANFILESPACE;

CREATE UNIQUE INDEX AADMPF00_ASC ON APDEV15.AADMPF00 (KEY0 ASC) ALLOW REVERSE SCAN;

What am I doing wrong?

I am running DB2 UDB 8.1 FP5 under AIX 5.1
Thanks.


The bufferpool has only 40 pages allocated to it. This is extremely small
and even less than the default size. Whether you should have a dedicated
bufferpool for this tablespace and make it much larger, or use and existing
bufferpool which has sufficient pages allocated, depends on many factors
including the total physical memory available, the database design, and the
workload.
Nov 12 '05 #2
While stranded on information super highway Mark A wrote:

"Hemant Shah" <sh**@typhoon.xnet.com> wrote in message
news:cs**********@new7.xnet.com...

Folks,

I am not sure what I am doing wrong, but We have an transaction that
does some serious calculation on small chink of data over and over
again.

It selects few rows from the table several times and does different
calculations. It was taking about 45 seconds to run. I thought that
moving the file to its own tablespace and giving it large bufferpool
would improve the performance. I experienced exactly opposite, the
transaction now took 4 minutes instead of 45 seconds.

Initially table was created as follows:

CREATE TABLE APDEV15.AADMPF00
(KEY0 CHAR (31) NOT NULL,
REC VARCHAR(3000));

CREATE UNIQUE INDEX AADMPF00_ASC ON APDEV15.AADMPF00 (KEY0 ASC)
ALLOW REVERSE SCAN;

Then I changed it as follows:

CREATE BUFFERPOOL PLANFILEPOOL SIZE 40 PAGESIZE 4K;

CREATE REGULAR TABLESPACE PLANFILESPACE PAGESIZE 4K MANAGED BY SYSTEM
USING ('/f2/dbap15/dbap15/PLANFILESPACE') BUFFERPOOL PLANFILEPOOL;

CREATE TABLE APDEV15.AADMPF00
(KEY0 CHAR (31) NOT NULL,
REC VARCHAR(3000)) IN PLANFILESPACE INDEX IN PLANFILESPACE;

CREATE UNIQUE INDEX AADMPF00_ASC ON APDEV15.AADMPF00 (KEY0 ASC) ALLOW REVERSE SCAN;


What am I doing wrong?

I am running DB2 UDB 8.1 FP5 under AIX 5.1
Thanks.


The bufferpool has only 40 pages allocated to it. This is extremely small
and even less than the default size. Whether you should have a dedicated
bufferpool for this tablespace and make it much larger, or use and existing
bufferpool which has sufficient pages allocated, depends on many factors
including the total physical memory available, the database design, and the
workload.

Thanks. After more monitoring/debugging I found out that I needed to
create bufferpool of 1000 pages.



--
Hemant Shah /"\ ASCII ribbon campaign
E-mail: No************@xnet.com \ / ---------------------
X against HTML mail
TO REPLY, REMOVE NoJunkMail / \ and postings
FROM MY E-MAIL ADDRESS.
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind, Above opinions are mine only.
it's backed up on tape somewhere. Others can have their own.
Nov 12 '05 #3
"Hemant Shah" <sh**@typhoon.xnet.com> wrote in message
news:cs**********@new7.xnet.com...

Thanks. After more monitoring/debugging I found out that I needed to
create bufferpool of 1000 pages.

NO. A bufferpool of 1000 pages is only 4 MB of memory. This is very small.
The total of all your bufferpools on that server should be about 50% of the
total available memory (allowing some memory for use by other DB2 resources,
the OS, and other non-DB2 application processes) on that machine.

So if your database server has 1024 MB (1 GB) of memory, and it is used only
as a DB2 database server, the total of all bufferpools should be about 512
MB or about 128,000 4K pages. Of course, there is no use in making the
bufferpools larger than the total size of all your tablespaces.
Nov 12 '05 #4

"Mark A" <no****@nowhere.com> wrote in message
news:9P********************@comcast.com...
"Hemant Shah" <sh**@typhoon.xnet.com> wrote in message
news:cs**********@new7.xnet.com...

Thanks. After more monitoring/debugging I found out that I needed to
create bufferpool of 1000 pages.
NO. A bufferpool of 1000 pages is only 4 MB of memory. This is very small.


But it's obviously probably enough to satisfy the usage requirements of this
frequently-updated table which has it's own bufferpool.
The total of all your bufferpools on that server should be about 50% of the total available memory (allowing some memory for use by other DB2 resources, the OS, and other non-DB2 application processes) on that machine.


YMMV. This really depends on how much memory your system has and the amount
of non-database processing you are hosing.

--
Matt Emmerton
Nov 12 '05 #5
>
But it's obviously probably enough to satisfy the usage requirements of this frequently-updated table which has it's own bufferpool.
Obviously? Just how did you come to that conclusion? It is an SMS tablespace
for a table of unspecified number of rows. The row size is quite large.
YMMV. This really depends on how much memory your system has and the amount of non-database processing you are hosing.


That's what I said if you bothered to read my post. I said:

"allowing some memory for use by other DB2 resources, the OS, and other
non-DB2 application processes"

I also said to use about 50% of the available memory, which obviously is
dependent on the amount of memory for the system.
Nov 12 '05 #6

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

Similar topics

1
by: Li Kao | last post by:
After incrementally increasing SORTHEAP (and the commensurate increase in SHEAPTHRES) and *slightly* reducing the bufferpool size, I find that my query is no longer taking advantage of async IO for...
12
by: xixi | last post by:
i am trying to get snapshot for buffpool, but all i get is "not collected", is there anyway i can collect the data?
5
by: Paul | last post by:
Hi, is there any way to know the content of the bufferpool : - space usage not present in snapshot - tables actually cached in and number of pages, same for index ... thx
1
by: Christian Berg | last post by:
Hi, I have got a problem with resizing the bufferpool of a DB2 v.8.2 instance. The DB2 runs on an AIX 5.x platform. Problem is that an "ALTER BUFFERPOOL ..." command is not persistent if...
20
by: Hemant Shah | last post by:
Folks, I am using DB2 UDB 8.2 on AIX 5.1. How large of a bufferpool can you create? I tried to create a 4GB bufferpool db2 complained that is cannot allocate enogth memory. I have 16GB on this...
3
by: dotyet | last post by:
Hi Everyone, I am in a very strange situation, and am looking for suggestions to tackle it. I have a 10 gig database on 64-bit windows 2003 running platform. The database has about 5 gigs of...
1
by: Raja Shekar | last post by:
HI Every body , I would like to know whether is it mandatory to give Tablespace page size and Bufferpool page size equal..? i also heard like while creating tablespace if pages size of tablespace...
3
by: dunleav1 | last post by:
In 9.1 and 9.5 (Linux 64 bit) when a buffer pool is set to self- tuning, how are blocks configured in respect to blocked vs non-blocked when self-tuning is set to on? (ie) I have one bufferpool...
0
by: dot.yet | last post by:
Hi Everyone, environment: DB2 9.5 WSE with FP 2a Solaris 10 u5 - 64-bit SMP - 2 Quad CPUS - total 8 cores 16 GB RAM SAMPLE database Solaris Containers
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.