Wait Statistics

Collecting and interpreting wait statistics for performance triage.

56 associated posts51 primary posts

Performance Tuning

In Review: SQL Server 2005 Waits and Queues

Back in November of 2006, Microsoft released "SQL Server 2005 Waits and Queues" as a best practices article. Many people in the SQL Server community have referenced this article as a great place to get started with understanding waits in SQL Server. Heck, I've recommend it on a regular basis.

The last time I recommended it I told the recipient, "This is great, but only read it from page X to Y."

Read more about In Review: SQL Server 2005 Waits and Queues 7 comments — Join the discussion
Performance Tuning

When Did My Azure SQL Database Server Restart?

In Azure SQL Database, no one can hear you scream query common system objects that tell you when a restart happened. You don't get the access you need to sys.dm_os_sys_info, sys.dm_exec_sessions, sys.traces, or sys.databases. The closest I've been able to get is to query sys.dm_os_wait_stats for several common wait types that seem to correspond with…

Read more about When Did My Azure SQL Database Server Restart? 22 comments — Join the discussion

What is the PREEMPTIVE_DEBUG Wait in SQL Server?

Recently we got an email asking for help from a DBA who was concerned about a high percentage of the PREEMPTIVE_DEBUG wait on a SQL Server. They were investigating poor performance and had searched the internet high and low and not found information on what this wait means. They were stumped. What to Do When You Find an Unusual…

Read more about What is the PREEMPTIVE_DEBUG Wait in SQL Server? 2 comments — Join the discussion
Performance Tuning

T-SQL Tuesday: Stop Tuning with Wait Stats Percentages

For this month's T-SQL Tuesday topic, Michael J. Swart told us to argue against a popular opinion, and man, is that right up my alley. I've told you to stop worrying about index fragmentation, stop backing up your logs once an hour, and to stop running $14k of licensing on $3k of hardware. You're probably checking…

Read more about T-SQL Tuesday: Stop Tuning with Wait Stats Percentages 12 comments — Join the discussion
Performance Tuning

What is the CXPACKET Wait Type, and How Do You Reduce It?

When you query sys.dm_os_wait_stats, or check your waits with sp_Blitz® or sp_BlitzFirst®, one of your biggest wait types is probably CXPACKET. Let's talk about what's really going on. Our SQL Server Stand-In: a Class. Pretend that you're a schoolteacher in a classroom with a couple dozen students. You've got a class project that you need to…

Read more about What is the CXPACKET Wait Type, and How Do You Reduce It? 122 comments — Join the discussion

An Introduction to SQL Server IO for Developers (video)

Developers frequently make a big mistake: they tune out on discussions of storage performance and IO. Don't fall into this trap! Understanding how storage impacts SQL Server performance helps you tune the right parts of your code and focus on what really matters. In this 30 minute video, Microsoft Certified Master Kendra Little demonstrates why developers need to understand the IO impact on writes and reads in SQL Server. She'll show you how simple configuration changes can sometimes save hundreds of hours of developer time.

Read more about An Introduction to SQL Server IO for Developers (video) 2 comments — Join the discussion
Performance Tuning

The Ozar Family Tradition of Performance Monitoring

When my Grandpa Ozar wanted to find out if his 10 megabyte 5.25" hard drive was responding fast enough to handle his database loads, he monitored the Perfmon counter Physical Disk: Disk Queue Length. Things have changed since Grandpa's time, though, and now it's time to learn a new performance tuning trick - SQL Server waits.

Read more about The Ozar Family Tradition of Performance Monitoring 14 comments — Join the discussion