This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
Ace waits at the top of dark basement stairs for ingredients, then a whole crate of lettuce arrives for a single leaf and knocks the salsa jar off the counter into Quinn's hands. Casey says, "A whole crate for one leaf? Fix the reads first."

PAGEIOLATCH Wait Stats: Waiting for Data From Disk

February 9, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Memory, SQL Scripts, SQL Wait Stats

PAGEIOLATCH wait stats measure queries waiting while data pages are read from disk into memory. On Night 9 at the Clipboard Diner, the prep counter is too small for the menu and the cooks keep sending for things from the basement. Learn the two causes, how to read file latency per file, and the fixes in order.

Read More
The cooks keep trading burners in a square dance called by Quinn, and Casey finds Jesse searching a towering stack of cheese slices with tweezers for four slices. Casey explains, "Not too few burners. Too much work on each."

SOS_SCHEDULER_YIELD Wait Stats: Reading CPU Pressure

February 8, 2011
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Wait Stats

SOS_SCHEDULER_YIELD wait stats count the moments a query gives up the CPU after its 4 ms turn and waits to get it back. On Night 8 at the Clipboard Diner, every cook steps on and off the burners all night. Learn when this wait is harmless, when it means CPU pressure, and how to find the queries that burn the most CPU.

Read More
Dee splits a tour bus order across four cooks; three finish fast while Jesse disappears behind a mountain of pancakes and Dee taps a foot at the pass. Casey sums it up: "The team worked. The split didn't."

CXPACKET Wait Stats: What Parallel Waits Mean

February 6, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Scripts, SQL Wait Stats

CXPACKET wait stats measure the threads of a parallel query waiting on each other. On Night 6 at the Clipboard Diner, a tour bus of forty shows why splitting work helps, and how one overloaded cook holds everyone up. Learn CXPACKET, CXCONSUMER and the two CXSYNC waits, and how to spot skew.

Read More
Casey refuses to erase the clipboard, photographs it before and after the dinner rush, and subtracts, while Ace photobombs both pictures. Casey finds the answer: "Dinner belonged to the stairs, not the night truck."

Wait Stats Over Time: Measuring One Time Window

February 5, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Scripts, SQL Wait Stats

Wait stats over time means measuring the waits of one window, such as your busy hour, instead of reading totals since the last restart. On Night 5 at the Clipboard Diner, Casey photographs the clipboard at 6:00 and at 7:00 and subtracts. Then one script does the same thing with two snapshots of sys.dm_os_wait_stats.

Read More
During the Saturday rush Casey asks each ticket what it waits for, finds three orders stuck behind a finished party in the corner booth, and clears the booth so Ace can fire all three plates. Casey says, "The quiet booth was the head blocker."

Live Wait Stats: What Is Waiting Right Now

February 4, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Scripts, SQL Wait Stats

Live wait stats show what every request in SQL Server is waiting on at this moment, and who is in its way. On Night 4 at the Clipboard Diner, the Saturday rush stalls behind a party in booth 7 that isn’t waiting for anything. Then three queries find the waiting tasks, the head blocker and one session’s own waits.

Read More
Late at night Casey reads the whole clipboard, finds the biggest line belongs to the sleeping night baker, and slashes it out with a giant red pen while Ace and Quinn duck. Casey says, "Cross out the sleepers first. Then read."

sys.dm_os_wait_stats: Reading the Wait Stats List

February 3, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Scripts, SQL Wait Stats

sys.dm_os_wait_stats is the running list of every wait SQL Server has recorded since its last restart. On Night 3 at the Clipboard Diner, Casey reads the clipboard at 2 AM and crosses out the sleepers. Then one query filters out the harmless waits and shows the share, the average and the signal part of every wait that matters.

Read More
Kit gets the potatoes fast, but every burner is busy, so the order waits on the rail while the potatoes grow bored little faces and Casey hangs a second stopwatch. Quinn sums it up: "Ready to cook, stuck in line. That's a signal wait!"

Signal Wait Stats: CPU Waits vs Resource Waits

February 2, 2011
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Wait Stats

Signal wait stats show how long a SQL Server query sat ready to run, waiting in line for a CPU. On Night 2 at the Clipboard Diner, the potatoes arrive on time and the Garden Hash waits anyway. Then two queries split your server’s waits into the CPU part and the resource part.

Read More
Previous 1 … 34 35 36 37 38 39 40 … 45 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com