473,796 Members | 2,720 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Log write batch performance problem DB2 V8 for AIX

We are runing a critical batchjob in DB2 V8 fp4 for AIX on a p630 with
AIX 5.2
The job updates only 6 columns of the 100 columns in a 600 bytes wide
row.
The job is very IO bound because of log writes. We seems to be logging
full rows 600 bytes per updated row.
I thought DB2 should be clever enough to only log the modified columns
??
We also seems to write to the log with a lot of small writes, filemon
-v -O lf output indicates
that we write just 18 KB per IO.
The batchjob updates 290 000 rows (read/update) and it does just 58
commit
We can only reach a rate of 1000 rows/sec and we need to increase this.

I have tried to increase log buffer size, this is our values
DBHEAP 10000 logretain OFF LOGBUFSZ 4000
logprimary 14
logsecond 20 logfilsiz 8000
How can we get DB2 to log less and write more on each log write.

Mats Mohlin IBM Sweden

Nov 12 '05 #1
2 3593
Mats,
Just wondering:
Is the sequence of your updates the same as the physical sequence of the
rows in the database?
How exactly are you updating? Based on cursor or on key?

Mats Mohlin wrote:
We are runing a critical batchjob in DB2 V8 fp4 for AIX on a p630 with
AIX 5.2
The job updates only 6 columns of the 100 columns in a 600 bytes wide
row.
The job is very IO bound because of log writes. We seems to be logging
full rows 600 bytes per updated row.
I thought DB2 should be clever enough to only log the modified columns
??
We also seems to write to the log with a lot of small writes, filemon
-v -O lf output indicates
that we write just 18 KB per IO.
The batchjob updates 290 000 rows (read/update) and it does just 58
commit
We can only reach a rate of 1000 rows/sec and we need to increase this.

I have tried to increase log buffer size, this is our values
DBHEAP 10000 logretain OFF LOGBUFSZ 4000
logprimary 14
logsecond 20 logfilsiz 8000
How can we get DB2 to log less and write more on each log write.

Mats Mohlin IBM Sweden


--
Anton Versteeg
IBM Certified DB2 Specialist
IBM Netherlands
Nov 12 '05 #2
> >We are runing a critical batchjob in DB2 V8 fp4 for AIX on a p630 with
AIX 5.2
The job updates only 6 columns of the 100 columns in a 600 bytes wide
row.
The job is very IO bound because of log writes. We seems to be logging
full rows 600 bytes per updated row.
I thought DB2 should be clever enough to only log the modified columns
??
We also seems to write to the log with a lot of small writes, filemon
-v -O lf output indicates
that we write just 18 KB per IO.
The batchjob updates 290 000 rows (read/update) and it does just 58
commit
We can only reach a rate of 1000 rows/sec and we need to increase this.

I have tried to increase log buffer size, this is our values
DBHEAP 10000 logretain OFF LOGBUFSZ 4000
logprimary 14
logsecond 20 logfilsiz 8000
How can we get DB2 to log less and write more on each log write.

Mats Mohlin IBM Sweden

Doesn't DB2 log all data from the changed column to the end of the row? Or
maybe that has changed? I know that is how DB2 for OS/90 worked at one time.

I would do commits more often, perhaps once every 100-500 updates.

As previously mentioned, it is important to process the updates in the same
order as the physical sequence of the table, if possible. This is defined by
the clustering index, or the index used in a reorg if no clustering index is
defined.

Also if the varchar columns are updated (and made larger), make sure you
have enough percent free defined for the table to handle that, otherwise the
row many need to be relocated (very expensive).

Percent free on the indexes is also important if they are changed in the
update statement.
Nov 12 '05 #3

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

Similar topics

15
3337
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
4
2086
by: Asipu | last post by:
The problem is quite difficult and i'm starting to think that it's impossible to accomplish.. Suppose you have C.exe. When you run C.exe, it must change his 0x4e's byte into 0xff.. Of course, when doing so - exception is raised because file is in use.. Is there a way to do this without problems?
1
1131
by: smen | last post by:
hiye, i've got a list of distributers around 300++ and i need to mail each of them and i want performance should i a. loop through it all via stored proc or trigger and send the mail using sql mai b. using vb.net and send the mail through .ne any way besides looping smen
8
1443
by: John | last post by:
This is a simple, newbe question. In Asp/VB there are 2 ways to display message on page load I can double click on aspx page and aspx.vb file is created: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Here I can crete my message Response.Write("Page loaded") End Sub
3
2365
by: Carlos | last post by:
Hello Forum, I would appreciate it if you could recommend settings to use auto-vacuum in my version 7.4 database. I am uploading several thousands records in the database at a rate of ~1 second per record (the data is uploading from a different server). I have noticed that the performance of the uploading is improved if I vacuum the database every so often so I decided to take advantage of auto-vacuuming to maintain the best...
1
5397
by: matthias | last post by:
I have to execute fairly large batch files (200-300MB) with several million INSERT commands. When I do that from pgsql using the \i switch, I get the echo INSERT 0 1 for every single insert statement of my batch file. Since I assume that this slows down the whole process I would like to know if there is a way to suppress that echo and only get error messages and
7
7901
by: mark.a.lemoine | last post by:
Our application currently interfaces to SQL Server and Oracle, we're implementing it into DB2 currently and I have a question to ask. First a little background - We're interfacing into DB2 v8 on zOS (I hope the terminology is right - ours is a Windows client app, and the DB2 is at a customer site and they are taking care of the server), using ADO with the IBM OLE Db Provider (IBMDADB2). We don't use any vendor specific APIs, instead we...
0
1502
by: davearkley | last post by:
I'm writing an application to gather the inputs and outputs from a number of batch applications into one console. To do this I launch the batch application from mine and redirect STDIN, STDOUT and STDERROR. I can't change the batch apps so this seems the only option. By using Process.BeginOutputReadLine() I'm capturing the output from the batch applications (written to STDOUT and STDERROR) and this works just fine. I now need to create a...
1
3603
by: bravo | last post by:
hi using mysql 4.1 i wish to update records using batch update but for a batch of 100, records and table having only 5000 records execution time is approx 2.4 sec i want to know whether this time is fine or i can further reduce it with some performance tunning ... the table which i am using is having 19 columns the update is on a single column .... one more thing when i use the batch update for deletion batch size 100 along with update...
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9524
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10168
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9047
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.