6 Query Tuning Introduction m06 Performance Tuning Checklist Slides

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Performance Tuning - Checklist

Pinal Dave
http://blog.sqlauthority.com

Vinod Kumar M
http://blogs.extremeexperts.com
Don’t think
outside the box,
think as if no box exits.
Simple Cyclic process

Baseline Server

Apply on Production
in maintenance Collect Perf Data
window

Script out all Isolate problem code /


Optimizations objects

Optimize for
Apply on a test server workload and
scenario
Areas of concerns

 Severe performance degradation and system crashes


 Slow and resource-intensive queries
 Long-running locks and deadlocks
 Long-running batch jobs
 High-CPU utilization on the server
 Poor cache-hits ratio and memory pressure
 Sub-optimal scalability patterns
 Inefficient use of parallel processing
 Transaction rollbacks and failures
Where to use which tool
 Proactive tools  Post-Mortem
 Profiler Trace / Extended
 SQLDiag
Events
 SQL Error Logs  Perfmon
 PerfMon  Snapshots of DMVs
 SQL Server BPA  PAL
 Live Debugging  Misc
 SQL Wait Stats  SQL Space Map
 SSMS Activity Monitor  SSMS Standard Reports
 Dynamic Management Views  Extended Events
 Performance Dashboard  Database Tuning Advisor
Reports
Start

Proactive Monitoring

Post mortem
NO
Known problem? Decide Approach

Live approachConfiguration

Get Trace files


Perf Dashboard
CPU Perfmon Details
Indexes Problem Complete
Yes

DMV Snapshot
Activity Monitor
Memory

PAL
DMV / SQL Wait Stats
Disk IO

Get Help
Network
DTA Execution Plans Statistics Indexes

http://bit.ly/sql-perf
Summary

 Use an systematic approach


 Performance tuning is all about Planning
 Proactive, Reactive and Live
 Cycle - Monitor, Plan, Implement, Test

Remember: 80%-20% Rule. There are always special cases.

You might also like