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 > Log size impacting system performance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-25-03, 19:28
rwarshaw rwarshaw is offline
Registered User
 
Join Date: Oct 2003
Posts: 4
Question Log size impacting system performance

Usually I always use big database logs (200M - 50000 pages) . This time, increasing log size from 17M to 200M caused database to slow down significantly.

vmstat was showing lots of "b" processes

After log size was reduced, database went back to normal.

Can someone please comment why increasing log size cause Log I/O to conflict with the other database I/O?

Notice - database located on local storage array, RAID-5, same volume used for datafiles and logs.
Reply With Quote
  #2 (permalink)  
Old 10-25-03, 19:47
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I don't know what the performance problem is, but think you should try to move the logs to another array. You don't ever want to loose the logs and the data. I realize that it is Raid-5, but strange things can happen.

I assume that you can satisfy the same objective by using the smaller log file size, but define more log files.
Reply With Quote
  #3 (permalink)  
Old 10-25-03, 20:01
rwarshaw rwarshaw is offline
Registered User
 
Join Date: Oct 2003
Posts: 4
Hello Marcus,

The question is why reducing log size reduced Log I/O contention with other database I/O.

Having logs and datafiles in different palces is not a question for me, however at this point is not an option.

Also, preference is to have big logs - 17 M logs are switching almost every minute
Reply With Quote
  #4 (permalink)  
Old 10-26-03, 12:04
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally posted by rwarshaw
Hello Marcus,

The question is why reducing log size reduced Log I/O contention with other database I/O.

Having logs and datafiles in different palces is not a question for me, however at this point is not an option.

Also, preference is to have big logs - 17 M logs are switching almost every minute
I'd say, it's the log buffer size that's affecting performance in your case, not the log file size.
Reply With Quote
  #5 (permalink)  
Old 10-26-03, 16:05
rwarshaw rwarshaw is offline
Registered User
 
Join Date: Oct 2003
Posts: 4
Can you please explain why and how it can be confirmed from the database statistics?

Last edited by rwarshaw; 10-26-03 at 16:08.
Reply With Quote
  #6 (permalink)  
Old 10-27-03, 06:24
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Have a look at the thread
db2 -log pages read

for information on how to identify log buffering using snapshot ...

Cheers
Sathyaram

Quote:
Originally posted by rwarshaw
Can you please explain why and how it can be confirmed from the database statistics?
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 10-29-03, 01:11
rwarshaw rwarshaw is offline
Registered User
 
Join Date: Oct 2003
Posts: 4
Thanks for referring.

Still, since this parameter was not changed, it does not explain, why I/O contention happened
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