dbTalk Databases Forums  

Large transaction log causing write performance hit on cluster

microsoft.public.sqlserver.clustering microsoft.public.sqlserver.clustering


Discuss Large transaction log causing write performance hit on cluster in the microsoft.public.sqlserver.clustering forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christian Bouche
 
Posts: n/a

Default Large transaction log causing write performance hit on cluster - 02-26-2004 , 11:50 AM






Hi,

I really would appreciate any help on this. Can a very
large transaction log have a negative impact on write
performance?? We were having a problem with VERY slow
writes (30 seconds each) to a database. Reads were very
fast (0 ms). The app is running on a Windows 2000/SQL
2000 Active/Passive cluster. Each server has 2 G of ram
and disk space is absolutely not an issue. The only other
applications that run on the server are Mcaffee (but this
is disabled from the data/log directories).

We noticed that the log file for the affected database was
EXTREMELY large (3G). TONS of leftover disk space for the
log. There's not a whole lot of updates that occur in
this database. The database was in Full recovery mode.
We usually rely on nightly backups due to the sparse
update/inserts/deletes.

After encountering this problem, I failed over the node
(restarted the SQL services, and writes became fast again,
but this was only temporary (lasted a couple hours), which
led me to believe that it could be a memory issue.

Anyway, after that, I made the following changes: 1.
Backed up the database, then the log, shrank the log
(now .99MB) and temporarily put set the recovery mode to
simple. 2. Reduced the max SQL server memory setting to 1
G.

Writes are again very fast. I have seen no problems for a
day and a half under a normal load. It would really help
to know if the large tlog could have actually been the
problem? Or the if the memory settings may have done
the trick and why? Then we can rest assured that the
issue will not crop
up again later!

Thanks,
Chris


Reply With Quote
  #2  
Old   
Stephen Strong
 
Posts: n/a

Default RE: Large transaction log causing write performance hit on cluster - 02-29-2004 , 07:41 PM






It is unlikely that you have enough information to decide what action you should take. If you are not already collecting stats on Physical Disk Average Disk Write Queue Length, Memory Available MBytes, [SQL Instance] Cache Manager Buffer Hit Ratio, [SQL Instance] Memory Manager Target Server Memory(kb) and [SQL Instance] Memory Manager Target Server Memory(kb). This perfmon counters will give you a better picture of what is happening

You didn't mention if your data/logs/backup disks were on the same physical disks. If the logwriter has to compete with data retieval and updates this will result in some of the symptons that you are experiencing



Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.