Top Banner
PowerPivot for DBA’s 4/3/2015 www.linchpinpeople.com 1
12
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: PowerPivot for DBAs

PowerPivot for DBA’s

4/3/2015 www.linchpinpeople.com 1

Page 2: PowerPivot for DBAs

www.linchpinpeople.com 2

John Sterrett

@johnsterrettJohnSterrett.comlinked.com/in/johnsterrettgoogle.com/+JohnSterrett

Specialties / Focus Areas / Passions:

• Performance Tuning & Troubleshooting

• Virtualization• Infrastructure• Architecture

• High Availability• Disaster Recovery• Health Monitoring• Capacity Management• License Efficiency

Linchpin Group Principal

Virtual Chapter Leader “High Availability and Disaster

Recovery”Pass Regional Mentor “South Central USA”

Page 3: PowerPivot for DBAs

Austin SQL Server User Group

4/3/2015 www.linchpinpeople.com 4

Page 4: PowerPivot for DBAs

This Months Presentation

4/3/2015 www.linchpinpeople.com 5

Page 5: PowerPivot for DBAs

THE DBAs Case Study…

I have been doing performance analysis health checks for years. I used to have several scripts that would be executed to do analysis on collected data. I wanted a better way to show the data in real time with customers as I am telling the story of their servers performance.

Page 6: PowerPivot for DBAs

Performance Tuning Process…

Generate workload

Capture workload

Analyze captured workload

Make Changes

7

Page 7: PowerPivot for DBAs

Data Used for Health Check

• Wait Stats

• Disk Latency

• Performance Counters

• SQL Trace / Extended Event

http://johnsterrett.com/blog-series/sql-server-performance-root-cause-analysis/

Page 8: PowerPivot for DBAs

Wait Statistics

• SQL Server has a dynamic management view (DMV) that information about waits that have encountered by currently executing threads. This data is kept until cleared or by a restart of the instance.

• This wait statistics data can be periodically snapped and compared to get deltas.

• http://johnsterrett.com/2013/10/08/benchmark-sql-server-wait-statistics/

Page 9: PowerPivot for DBAs

Wait Types Explained..

4/3/2015 www.linchpinpeople.com 10

Suspended

Running

Runnable

Page 10: PowerPivot for DBAs

Disk Latency with SQL Server

• Disk latency is typically one of the biggest weakest links with performance. You can take snapshots to create a delta of the DMV (sys.dm_io_virtual_file_stats) to get disk latency, reads and writes for database files. This will help you identify if the disk latency is system related or related to specific database files.

• http://johnsterrett.com/2013/02/25/benchmark-sql-server-disk-latency/

Page 11: PowerPivot for DBAs

Performance Analysis of Logs (PAL)• Gives you templates for monitoring and establishing

baselines.• https://pal.codeplex.com/• http://www.linchpinpeople.com/how-create-sql-server-

baseline-using-pal/

• Use Relog to load Perfmon data into SQL Server via ODBC

relog PROD-SQL01.csv -f SQL -o SQL:Toolbox!PRODSQL01• ODBC is Toolbox• PRDSQL01 is LogCollectionName can be server name.• Use Stored Procedure for filtering out zeros.

Page 12: PowerPivot for DBAs

DEMO!

• Use Power Pivot to Connect to SQL Server

• Use Filters and Slicers to dynamically filter data

• Build Power Pivot Charts to help us do DBA Performance Analysis• Wait Stats Analysis

• Disk Latency Analysis

• Performance Counter Analysis