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

Many Direct Writes to SYSCATSPACE, and each very slow.

DB2 7.2 (ESE) on AIX 5.2.

In 3 weeks, we've seen the following :
Tablespace name = SYSCATSPACE
Direct writes = 150306
Direct write elapsed time (ms) = 4295071162

Each write takes on average 28,575 milliseconds!!

IBMDEFAULT BP = 1000 Pages.
SYSIBM tables were RUNSTAT'd 3 weeks ago.
SYSCATSPACE (SMS) container sits on a single (mirrored) disk (the same
disk holds the temporary tablespace, application logs).
NUM_IOSERVERS = 69, NUM_IOCLEANERS = 15.
CHNGPGS_THRESH = 40.
Machine has 4 CPUs.

Not sure if I should:-
1) increase the bufferpool.
2) run db2empfa.
3) relocate SYSCATSPACE to another less busy disk, and create over
more than one container.
4) do something else!

Any tips appreciated.

Many thanks
Bruce
Nov 12 '05 #1
5 3152
Bruce,

1000 pages for the default BP is only 4MB, that's mor than worse,
ioserver and iocleaner depends on the storage system, but it seems to me
that 69 ioserver is a lot.

First increase the bufferpool...

P.S. 7.2 is EEE or EE and 8.x is ESE.

regards,
Joachim Müller

"Bruce Pullen" <br**********@hotmail.com> schrieb im Newsbeitrag
news:9d**************************@posting.google.c om...
DB2 7.2 (ESE) on AIX 5.2.

In 3 weeks, we've seen the following :
Tablespace name = SYSCATSPACE
Direct writes = 150306
Direct write elapsed time (ms) = 4295071162

Each write takes on average 28,575 milliseconds!!

IBMDEFAULT BP = 1000 Pages.
SYSIBM tables were RUNSTAT'd 3 weeks ago.
SYSCATSPACE (SMS) container sits on a single (mirrored) disk (the same
disk holds the temporary tablespace, application logs).
NUM_IOSERVERS = 69, NUM_IOCLEANERS = 15.
CHNGPGS_THRESH = 40.
Machine has 4 CPUs.

Not sure if I should:-
1) increase the bufferpool.
2) run db2empfa.
3) relocate SYSCATSPACE to another less busy disk, and create over
more than one container.
4) do something else!

Any tips appreciated.

Many thanks
Bruce

Nov 12 '05 #2
You may force sync writes because you hit CHNGPGS_THRESH or some other
condition.
Get you a few snapshots and look for logging values and names like *time
waited*, *forced*, *threshold*, *stolen*, etc.

PM

"Bruce Pullen" <br**********@hotmail.com> a écrit dans le message de
news:9d**************************@posting.google.c om...
DB2 7.2 (ESE) on AIX 5.2.

In 3 weeks, we've seen the following :
Tablespace name = SYSCATSPACE
Direct writes = 150306
Direct write elapsed time (ms) = 4295071162

Each write takes on average 28,575 milliseconds!!

IBMDEFAULT BP = 1000 Pages.
SYSIBM tables were RUNSTAT'd 3 weeks ago.
SYSCATSPACE (SMS) container sits on a single (mirrored) disk (the same
disk holds the temporary tablespace, application logs).
NUM_IOSERVERS = 69, NUM_IOCLEANERS = 15.
CHNGPGS_THRESH = 40.
Machine has 4 CPUs.

Not sure if I should:-
1) increase the bufferpool.
2) run db2empfa.
3) relocate SYSCATSPACE to another less busy disk, and create over
more than one container.
4) do something else!

Any tips appreciated.

Many thanks
Bruce

Nov 12 '05 #3

The type of data you find in syscat.* may also explain why you get sync
io's.

PM
Nov 12 '05 #4
1000 pages is miniscule if you have everything else in it. Make it
500mb if that is the case, then monitor hit ratios and prefetch
performance. You should have one prefetcher per container....direct
reads read a sector at a time and do not use the bufferpool....you
have io bottleneck. Check you tablespace layout strategy, how many
disks and adapters do you have.....Either way, your database needs
major surgery if you math is write. Flick


"PM \(pm3iinc-nospam\) CGO" <PM (pm3iinc-nospam)@cgocable.ca> wrote in message news:<pq***************@charlie.risq.qc.ca>...
You may force sync writes because you hit CHNGPGS_THRESH or some other
condition.
Get you a few snapshots and look for logging values and names like *time
waited*, *forced*, *threshold*, *stolen*, etc.

PM

"Bruce Pullen" <br**********@hotmail.com> a écrit dans le message de
news:9d**************************@posting.google.c om...
DB2 7.2 (ESE) on AIX 5.2.

In 3 weeks, we've seen the following :
Tablespace name = SYSCATSPACE
Direct writes = 150306
Direct write elapsed time (ms) = 4295071162

Each write takes on average 28,575 milliseconds!!

IBMDEFAULT BP = 1000 Pages.
SYSIBM tables were RUNSTAT'd 3 weeks ago.
SYSCATSPACE (SMS) container sits on a single (mirrored) disk (the same
disk holds the temporary tablespace, application logs).
NUM_IOSERVERS = 69, NUM_IOCLEANERS = 15.
CHNGPGS_THRESH = 40.
Machine has 4 CPUs.

Not sure if I should:-
1) increase the bufferpool.
2) run db2empfa.
3) relocate SYSCATSPACE to another less busy disk, and create over
more than one container.
4) do something else!

Any tips appreciated.

Many thanks
Bruce

Nov 12 '05 #5
EE.

Thanks for eveyones' comments. I'm learning.

With no config changes, latest snapshot reveals that each write has
taken on average 3,287 milliseconds - down from 28,575 milliseconds.

Only the system catalog tables sit in the IBMDEFAULT bufferpool (this
bufferpool is used by tempspace and userspace although these do not
contain any tables). Unfortunately, I'm restricted memory-wise by
32-bit AIX (other bufferpools are using most of the available memory
segments).

Looking at IO, the SYSCATSPACE resides on the same disks as other
filesystems (not any other tablespaces), so I'm looking at ways to
reduce/spread IO. From the below, BP hit ratios, asynchronous vv.
synchronous writes, the prefetching looks ok I think:-

IBMDEFAULT BP read hit ratios (%):-
Data+Index Data Index
95.06 94.65 95.82
IBMDEFAULT BP writes (asynchronous vv. synchronous variation %):-
Data Index
1.69 4.77
IBMDEFAULT direct reads/writes
Direct Reads Direct Writes
Time Time
Number Total Avg Number Total Avg
19144112 2299507 0.12 2612718 8590287387 3287.87

Any more tips (especially if you disagree with my comments!) much
appreciated.

Thanks, Bruce.
Nov 12 '05 #6

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

Similar topics

0
by: Mario T. Lanza | last post by:
Seasoned ASP Developers, I have developed an ASP page that displays multiple rows of data with which the user may work. As each row is updated, the graphical info displayed immediately beside...
10
by: Alex Greem | last post by:
Dear all, Our database (DB2 Workgroup 7.2 FP12) is constantly under heavy load. Most time CPU usage (1 Pentium3 1Ghz) is more 50% busy. We have 3GB RAM memory Our normal workload is 200-300...
0
by: Mark | last post by:
I understand the concept of catalog cache (memory allocated from the dbheap to allow catalog lookups without the need to access disk each time). But the DB2 catalog tablespace (SYSCATSPACE) is...
0
by: clintonG | last post by:
I applied aspnet_regsql to SQL2K which was working fine throughout Beta 2 development. After installing Visual Studio and SQL Express RTM my application has blown up. Logging in to the application...
3
by: john.enevoldson | last post by:
Hi, When running a job that inserts data into a particular table we are seeing a significant number of direct writes against the tablespace containing the table. This is the only table in the...
3
by: Asphalt Blazer | last post by:
hi, the problem i am having is that the SYSCATSPACE of one of the ODS's growing overnight. I am sure no new objects are being created. What can be the cause of this? I am on db2udb for aix 8.2 fp...
34
by: Larry Hastings | last post by:
This is such a long posting that I've broken it out into sections. Note that while developing this patch I discovered a Subtle Bug in CPython, which I have discussed in its own section below. ...
9
by: | last post by:
I am interested in scanning web pages for content of interest, and then auto-classifying that content. I have tables of metadata that I can use for the classification, e.g. : "John P. Jones" "Jane...
4
by: Bryan Parkoff | last post by:
We discussed about the union keyword on the previous threads 2-3 days earlier. I want to add. Two byte data inside struct and one word data are inside union. You modify word data. Then two byte...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.