PowerPivot for DBAs

12
PowerPivot for DBA’s 4/3/2015 www.linchpinpeople.com 1

Transcript of PowerPivot for DBAs

PowerPivot for DBA’s

4/3/2015 www.linchpinpeople.com 1

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”

Austin SQL Server User Group

4/3/2015 www.linchpinpeople.com 4

This Months Presentation

4/3/2015 www.linchpinpeople.com 5

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.

Performance Tuning Process…

Generate workload

Capture workload

Analyze captured workload

Make Changes

7

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/

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/

Wait Types Explained..

4/3/2015 www.linchpinpeople.com 10

Suspended

Running

Runnable

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/

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.

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