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

DB2 8.1.4 I/O Performance

Hello,
we have quite a lot of troubles with our new installation of DB2 8.1.4
on a Linux-System. The server is a Dual-Xeon with 2.4 GHz and 2GB Ram,
with installed Raid 1 mirrored 75 GB harddisks.
The system itself is performing very fast but in combination with DB2
we are facing an I/O-problem.
Our DB-scenaio is as follows:

Loading a flat table over JDBC and splitting it into a more detailed
datastructure. We are commiting after every successful transformation
(no autocommit). What we now see is that the DB is doing almost
nothing and the server itself is also more or less idle.

We check everything we thought of and we found the following things:

up to 4 blocked processes (see VMSTAT result)
very low buffer-out rate (see VMSTAT result)
terribly high time of asynchronous write (see BUFFERPOOL
snapshot)

Has anbody an idea how to solve this problem ?

Thanks

Joerg

Result of VMSTAT

procs -----------memory---------- ---swap-- -----io---- --system--
----cpu----
r b swpd free buff cache si so bi bo in cs us
sy id wa
0 2 29156 75196 217096 2063308 0 0 17 33 17 9 1
1 98 0
0 1 29156 75196 217104 2063656 0 0 0 930 803 945 3
3 94 0
0 3 29156 73700 217104 2063816 0 0 0 895 770 910 3
1 96 0
0 4 29156 73700 217104 2064144 0 0 2 926 783 946 2
1 97 0

Result of BUFFERPOOL-snapshot

Buffer pool data logical reads = 1368786
Buffer pool data physical reads = 40172
Buffer pool temporary data logical reads = 0
Buffer pool temporary data physical reads = 0
Buffer pool data writes = 18557
Buffer pool index logical reads = 21874494
Buffer pool index physical reads = 686
Buffer pool temporary index logical reads = 0
Buffer pool temporary index physical reads = 0
Total buffer pool read time (ms) = 13395
Total buffer pool write time (ms) = 1792986
Asynchronous pool data page reads = 27476
Asynchronous pool data page writes = 15658
Buffer pool index writes = 19106
Asynchronous pool index page reads = 0
Asynchronous pool index page writes = 11751
Total elapsed asynchronous read time = 3329
Total elapsed asynchronous write time = 1308907
Asynchronous data read requests = 1718
Asynchronous index read requests = 0
No victim buffers available = 18560
Direct reads = 0
Direct writes = 0
Direct read requests = 0
Direct write requests = 0
Direct reads elapsed time (ms) = 0
Direct write elapsed time (ms) = 0
Database files closed = 3
Data pages copied to extended storage = 0
Index pages copied to extended storage = 0
Data pages copied from extended storage = 0
Index pages copied from extended storage = 0
Unread prefetch pages = 0
Vectored IOs = 1718
Pages from vectored IOs = 27476
Block IOs = 0
Pages from block IOs = 0
Physical page maps = 0
Nov 12 '05 #1
2 4730
Sounds like your disk controller. Try adding battery-backed memory to the
SCSI RAID controller, or updating the RAID controller card to one that can
manage better write performance.

(I've assume you have SCSI RAID as you said Dual Xeon and RAID-1. If you
don't, that's probably your problem).

BTW, how large are your buffer pools? (If they're too small that can also
produce problems, but probably isn't your problem here).

"joerg" <jo**********@publica.de> wrote in message
news:47**************************@posting.google.c om...
Hello,
we have quite a lot of troubles with our new installation of DB2 8.1.4
on a Linux-System. The server is a Dual-Xeon with 2.4 GHz and 2GB Ram,
with installed Raid 1 mirrored 75 GB harddisks.
The system itself is performing very fast but in combination with DB2
we are facing an I/O-problem.
Our DB-scenaio is as follows:

Loading a flat table over JDBC and splitting it into a more detailed
datastructure. We are commiting after every successful transformation
(no autocommit). What we now see is that the DB is doing almost
nothing and the server itself is also more or less idle.

We check everything we thought of and we found the following things:

up to 4 blocked processes (see VMSTAT result)
very low buffer-out rate (see VMSTAT result)
terribly high time of asynchronous write (see BUFFERPOOL
snapshot)

Has anbody an idea how to solve this problem ?

Thanks

Joerg

Result of VMSTAT

procs -----------memory---------- ---swap-- -----io---- --system--
----cpu----
r b swpd free buff cache si so bi bo in cs us
sy id wa
0 2 29156 75196 217096 2063308 0 0 17 33 17 9 1
1 98 0
0 1 29156 75196 217104 2063656 0 0 0 930 803 945 3
3 94 0
0 3 29156 73700 217104 2063816 0 0 0 895 770 910 3
1 96 0
0 4 29156 73700 217104 2064144 0 0 2 926 783 946 2
1 97 0

Result of BUFFERPOOL-snapshot

Buffer pool data logical reads = 1368786
Buffer pool data physical reads = 40172
Buffer pool temporary data logical reads = 0
Buffer pool temporary data physical reads = 0
Buffer pool data writes = 18557
Buffer pool index logical reads = 21874494
Buffer pool index physical reads = 686
Buffer pool temporary index logical reads = 0
Buffer pool temporary index physical reads = 0
Total buffer pool read time (ms) = 13395
Total buffer pool write time (ms) = 1792986
Asynchronous pool data page reads = 27476
Asynchronous pool data page writes = 15658
Buffer pool index writes = 19106
Asynchronous pool index page reads = 0
Asynchronous pool index page writes = 11751
Total elapsed asynchronous read time = 3329
Total elapsed asynchronous write time = 1308907
Asynchronous data read requests = 1718
Asynchronous index read requests = 0
No victim buffers available = 18560
Direct reads = 0
Direct writes = 0
Direct read requests = 0
Direct write requests = 0
Direct reads elapsed time (ms) = 0
Direct write elapsed time (ms) = 0
Database files closed = 3
Data pages copied to extended storage = 0
Index pages copied to extended storage = 0
Data pages copied from extended storage = 0
Index pages copied from extended storage = 0
Unread prefetch pages = 0
Vectored IOs = 1718
Pages from vectored IOs = 27476
Block IOs = 0
Pages from block IOs = 0
Physical page maps = 0

Nov 12 '05 #2
NUM_IOCLEANERS = ?

Command :
get db cfg for dbname

You can also get a few snapshots to investigate
*log*
Dirty page steal cleaner triggers
Agents stolen
Database files closed
Number of files closed
etc.
PM

"joerg" <jo**********@publica.de> a écrit dans le message de
news:47**************************@posting.google.c om...
Hello,
we have quite a lot of troubles with our new installation of DB2 8.1.4
on a Linux-System. The server is a Dual-Xeon with 2.4 GHz and 2GB Ram,
with installed Raid 1 mirrored 75 GB harddisks.
The system itself is performing very fast but in combination with DB2
we are facing an I/O-problem.
Our DB-scenaio is as follows:

Loading a flat table over JDBC and splitting it into a more detailed
datastructure. We are commiting after every successful transformation
(no autocommit). What we now see is that the DB is doing almost
nothing and the server itself is also more or less idle.

We check everything we thought of and we found the following things:

up to 4 blocked processes (see VMSTAT result)
very low buffer-out rate (see VMSTAT result)
terribly high time of asynchronous write (see BUFFERPOOL
snapshot)

Has anbody an idea how to solve this problem ?

Thanks

Joerg

Result of VMSTAT

procs -----------memory---------- ---swap-- -----io---- --system--
----cpu----
r b swpd free buff cache si so bi bo in cs us
sy id wa
0 2 29156 75196 217096 2063308 0 0 17 33 17 9 1
1 98 0
0 1 29156 75196 217104 2063656 0 0 0 930 803 945 3
3 94 0
0 3 29156 73700 217104 2063816 0 0 0 895 770 910 3
1 96 0
0 4 29156 73700 217104 2064144 0 0 2 926 783 946 2
1 97 0

Result of BUFFERPOOL-snapshot

Buffer pool data logical reads = 1368786
Buffer pool data physical reads = 40172
Buffer pool temporary data logical reads = 0
Buffer pool temporary data physical reads = 0
Buffer pool data writes = 18557
Buffer pool index logical reads = 21874494
Buffer pool index physical reads = 686
Buffer pool temporary index logical reads = 0
Buffer pool temporary index physical reads = 0
Total buffer pool read time (ms) = 13395
Total buffer pool write time (ms) = 1792986
Asynchronous pool data page reads = 27476
Asynchronous pool data page writes = 15658
Buffer pool index writes = 19106
Asynchronous pool index page reads = 0
Asynchronous pool index page writes = 11751
Total elapsed asynchronous read time = 3329
Total elapsed asynchronous write time = 1308907
Asynchronous data read requests = 1718
Asynchronous index read requests = 0
No victim buffers available = 18560
Direct reads = 0
Direct writes = 0
Direct read requests = 0
Direct write requests = 0
Direct reads elapsed time (ms) = 0
Direct write elapsed time (ms) = 0
Database files closed = 3
Data pages copied to extended storage = 0
Index pages copied to extended storage = 0
Data pages copied from extended storage = 0
Index pages copied from extended storage = 0
Unread prefetch pages = 0
Vectored IOs = 1718
Pages from vectored IOs = 27476
Block IOs = 0
Pages from block IOs = 0
Physical page maps = 0

Nov 12 '05 #3

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

Similar topics

25
by: Brian Patterson | last post by:
I have noticed in the book of words that hasattr works by calling getattr and raising an exception if no such attribute exists. If I need the value in any case, am I better off using getattr...
12
by: Fred | last post by:
Has anyone a link or any information comparing c and c++ as far as execution speed is concerned? Signal Processing algorithms would be welcome... Thanks Fred
12
by: serge | last post by:
I have an SP that is big, huge, 700-800 lines. I am not an expert but I need to figure out every possible way that I can improve the performance speed of this SP. In the next couple of weeks I...
6
by: teedilo | last post by:
We have an application with a SQL Server 2000 back end that is fairly database intensive -- lots of fairly frequent queries, inserts, updates -- the gamut. The application does not make use of...
5
by: Scott | last post by:
I have a customer that had developed an Access97 application to track their business information. The application grew significantly and they used the Upsizing Wizard to move the tables to SQL...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
7
by: Michael D. Ober | last post by:
When calling Enqueue, the internal array may need to be reallocated. My question is by how much? In the old MFC array classes, you could tell MFC how many additional elements to add to the array...
1
by: jvn | last post by:
I am experiencing a particular problem with performance counters. I have created a set of classes, that uses System.Diagnostics.PerformanceCounter to increment custom performance counters (using...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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
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.