SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field...
-
Upload
craig-cade -
Category
Documents
-
view
225 -
download
0
Transcript of SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field...
![Page 1: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/1.jpg)
SQL Server 2012 New Performance
Tuning Tools
![Page 2: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/2.jpg)
Who am I?
Menzo SteinhorstSenior Premier Field Engineer
SQLRAP,WS+ SQL Server Performance Tuning,WS+ SQL Server 2008 Admin,WS SSIS 2008 for DBA’sFocus area: Performance Tuning SQL Server
Introduction
![Page 3: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/3.jpg)
Agenda
New Tools and Features Overview
XEvents (Extended Events) Introduction Practical Uses
![Page 4: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/4.jpg)
New Tools and Features
Performance Data Warehouse
Faster Spatial Performance
Paging for Result Sets
Partitioning
Faster Full Text Search
Column Store Index
Distributed Replay
XEvents
![Page 5: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/5.jpg)
What is XEvents?
A general event-handling system
There since SQL Server 2008 Foundation of auditing Used for problem diagnosis and info gathering
Engine lives in sqlserver.exe Consumers can be in-proc or out of proc ETW consumer is provided
•Enables correlation between SQL Server and Windows trace information.•But....classic provider. Not very useful!
![Page 6: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/6.jpg)
Extended Events in SQL Server 2012
SQL Trace (Profiler) is on the deprecated list! See Mike Wachal blog: “Migrating from SQL Trace to
Extended Events”Extended Events are supported in SSMS
Extended Events included in SMO Extended Events object model
Extended Events in PowerShell provider
![Page 7: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/7.jpg)
SQL Server Diagnostics
SQL Server pre-2008 supports: Performance monitor counters
•Counters are cumulative•Little/no buil in filtering
SQL Profiler•Granular events•Column filters•Automated via server-side trace queues
SQL DMVs and DMFs•Detailed•No persisted info
Event Tracing for Windows (ETW)•Exposed profiler events
![Page 8: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/8.jpg)
Demo XPerf
![Page 9: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/9.jpg)
SQL Server 2012: Extended Events come of age!
Extended Events Less overhead than server-side trace queues
•Single event cost is ~2us on a 2GHz processor
Event and consumer agnostic•Any event can be processed by any consumer•New events can be added, immediatly useable
Allow actions to be taken when an event fires•Additional information can be included
Rich predicate system for filtering
![Page 10: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/10.jpg)
Extended Events Explained
Event sessions specify Events
•The actual trigger•The payload of the event
Actions•The extra data that is collected
Targets•Where you send the data
![Page 11: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/11.jpg)
Demo XEvent GUI in SQL 2012
![Page 12: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/12.jpg)
XEvents Targets
Old Target Name New Target Name
asynchronous_file_target event_file
synchronous_event_counter event_counter
asynchronous_bucketizer histogram
synchronous_bucketizer
etw_classic_sync_target etw_classic_sync_target
pair_matching pair_matching
ring_buffer ring_buffer
event_stream
![Page 13: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/13.jpg)
Demo Targets
![Page 14: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/14.jpg)
XEvents Predicates
Filters are server-side
Occurences of events can be restricted pred_source object types
•counter and partitioned counter
![Page 15: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/15.jpg)
Demo Predicates
![Page 16: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/16.jpg)
Practical Uses: Troubleshooting Blocking
Demo
![Page 17: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/17.jpg)
Practical Uses: Page Splits
Page Splits Explained
![Page 18: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/18.jpg)
Practical Uses: Tracking Session and Statement Level Waits
2 Events: wait_info
•For SQLOS controlled resource
wait_info_external•Occurs when a SQLOS Task switches to preemptive mode.
![Page 19: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/19.jpg)
Q & A
![Page 20: SQL Server 2012 New Performance Tuning Tools. Who am I? Menzo Steinhorst Senior Premier Field Engineer SQLRAP, WS+ SQL Server Performance Tuning, WS+](https://reader036.fdocuments.net/reader036/viewer/2022062619/5518a1e5550346a61f8b48e2/html5/thumbnails/20.jpg)
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after
the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.