30.06.2013 Views

Performance Tuning with SQL Server Dynamic Management Views

Performance Tuning with SQL Server Dynamic Management Views

Performance Tuning with SQL Server Dynamic Management Views

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Getting Stats about tempdb Usage ....................................................................................257<br />

Summary ............................................................................................................................... 260<br />

Chapter 7: OS and Hardware Interaction ...................................262<br />

Wait Statistics .......................................................................................................................263<br />

A brief overview of sys.dm_os_wait_stats .................................................................265<br />

Finding the most common waits ................................................................................ 267<br />

Finding the longest cumulative waits ........................................................................ 270<br />

Investigating locking waits ...........................................................................................271<br />

Investigating CPU pressure ..........................................................................................273<br />

<strong>SQL</strong> <strong>Server</strong> <strong>Performance</strong> Counters ...................................................................................274<br />

Directly usable counter types .......................................................................................277<br />

Ratios ...............................................................................................................................280<br />

Per second averages........................................................................................................283<br />

Average number of operations .................................................................................... 286<br />

Monitoring Machine Characteristics ............................................................................... 288<br />

Investigating CPU Usage .....................................................................................................292<br />

An overview of sys.dm_os_schedulers .......................................................................293<br />

CPU waits ....................................................................................................................... 295<br />

Insufficient threads ....................................................................................................... 297<br />

Context switching ......................................................................................................... 297<br />

Is NUMA enabled? ........................................................................................................299<br />

CPU utilization history ................................................................................................300<br />

Investigating Memory Usage .............................................................................................. 301<br />

System-wide memory use .............................................................................................303<br />

Process memory use ......................................................................................................305<br />

Memory use in the buffer pool .................................................................................... 306<br />

Memory clerks and memory grants ........................................................................... 308<br />

Investigate memory using cache counters .................................................................310<br />

Investigating Latching ..........................................................................................................315<br />

Summary ................................................................................................................................ 319

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!