SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


writelog wait_type sys.dm_os_wait_stats reasonable number


writelog wait_type sys.dm_os_wait_stats reasonable number

Author
Message
dweil
dweil
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1292 Visits: 3403
I found a simple query on the web to evaluate my waitstats for log writes.

SELECT wait_time_ms
FROM sys.dm_os_wait_stats
WHERE wait_type = 'WRITELOG'

I am not having a performance issue but I noticed the results for the above query were in the millions of mili seconds.

What is a reasonable number for writelog waitstats and am I missing something obvious?

thanks

David



Jack Corbett
  Jack Corbett
SSC Guru
SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)SSC Guru (104K reputation)

Group: General Forum Members
Points: 104593 Visits: 15049
You have to keep in mind that this value is an accumulation since the last server restart, so if your server has been up for months a wait time in the millions isn't that much. I've got a server that's been up since December and the WRITELOG wait is over 6 million but that is only about 0.06% of the time the server has been up. You'd be better off looking at the % of total waits that WRITELOG is using.

Also a reasonable number for your system may not be a reasonable number for someone else's. You need a baseline and then you can find what is not reasonable (normal). If my logs are on SSD's and your's are on 7500RPM spinning disks, your number is not what I should be getting.



Jack Corbett
Consultant Straight Path Solutions
Dont let the good be the enemy of the best. -- Paul Fleming
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a QuestionHow to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search