If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 9.7 performance vs DB2 9.5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-14-09, 01:56
mowry_889 mowry_889 is offline
Registered User
 
Join Date: Aug 2009
Posts: 13
DB2 9.7 performance vs DB2 9.5

DB2 9.7 table scanning is changed from previous versions. Now it doesn't block reders from writers.

Does anybody know how much cost with this approach compare to DB2 9.5?

I am thinking there will be some performance effect on this approach. I am curious to know how much percentage?

Thanks,
Reply With Quote
  #2 (permalink)  
Old 09-14-09, 02:15
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The default isolation level of CS is modified in 9.7 by something called Currently Committed. This is controlled by the cur_commit db config parm which is set to ON for new databases in 9.7. If the database is upgraded to 9.7 from a previously release it is set to OFF, and of course you can change it if you want for new or upgraded databases.

If cur_commit is ON, and a select statement encounters a locked row and puts the transaction in lockwait mode, DB2 will immediately go to transaction log to find the previous value of the data before it was locked instead of waiting for the lock to be released. IBM claims that most of the time the data is still in the log buffer, so there is very little performance hit. However, I personally believe that is only true for well-written applications that don't need cur_commit to begin with, and for a poorly written application (with lockwait problems) DB2 will have to go to the log files on disk, which could impact performance.

Even if I were to use cur_commit ON in production, I would probably set cur_commit OFF in development environments in order to flush out poor coding techniques (lack of commits or delay in closing transactions).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390

Last edited by Marcus_A; 09-14-09 at 02:19.
Reply With Quote
  #3 (permalink)  
Old 06-08-11, 13:45
rpm2203 rpm2203 is offline
Registered User
 
Join Date: Oct 2002
Location: Toronto, Canada
Posts: 8
From personal experience,

1. I agree that you must use care when using this parameter. Should not be used in development and maybe even testing so that the problems can be identified.
2. My personal experience was that it impacted performance on my badly written app quite a lot. Other than fixing code, you need to increase 'buffpage' value to compensate.
3. keep an eye on 'log pages read' and 'log data found in buffer' to see how things are going. If you have a log of log pages read, you will be getting into trouble area.
4. increase 'buffpage' if you find to many log pages read.
5. make sure your logs are on the fastest device to improve performance

..... imho

Good luck
Reply With Quote
  #4 (permalink)  
Old 06-08-11, 14:08
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by rpm2203 View Post
4. increase 'buffpage' if you find to many log pages read.
You probably meant LOGBUFSZ
Reply With Quote
  #5 (permalink)  
Old 06-09-11, 05:47
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
db2 9.7 currently committed = Oracle undo tablespaces ??

regds
Paul
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On