SlideShare a Scribd company logo
2
Most read
SQL Server : 
Performance and Baseline 
Measurements 
Mike Walsh – Linchpin People
Mike Walsh 
 SQL Server MVP since 2011 
 Seacoast SQL User Group 
 SQL Server Consultant 
 Partner at Linchpin People 
 Blog: 
 Straightpath SQL Blog 
 Linchpin People Blog
Agenda 
 Baselines – What/Why/How are they? 
 Tools and Scripts 
 PAL 
 Wait and IO Statistics Collection 
 “Glenn Berry Scripts” 
 Telling a performance story
PAL – Part 1 
 Performance Analysis For Logs 
 Perfmon 
 Template Files 
 PAL Demo 
 Show the tool 
 Talk about perfmon 
 Start collection and kick off a workload
Baseline & 
Benchmark 
Discussion 
 While our workload runs.. Let’s talk about baselines… 
 What are they? 
 What can they do for us? 
 How can we review and use them? 
 Why should you all be collecting and reviewing them?
Wait Statistics 
 What are they? 
 What do we do with the information? 
 Trending vs Static 
 DEMO 
 Look at wait statistics 
 Look at interval wait statistics
File/IO Stats 
 SQL Server’s View into Latency 
 Doesn’t always match perfmon… Why? 
 Perfmon doesn’t always match SAN stats… Why? 
 DEMO 
 Looking at Static Stats with Glenn Berry Scripts 
 Looking at interval stats
How’s Your 
Server? 
 Glenn Berry Scripts – Are you shooting yourself in the foot? 
 Quick Talk about the Linchpin People WellDBA™ Exam 
 (not marketeering.. Talk about why it’s good to check your own 
servers from time to time.. No matter how you do it.) 
 What we are looking for that affects performance 
 DEMO 
 Running through Glenn Berry Diagnostic Scripts Live 
 Looking at CPU-Z for CPU Power Saving (it really does kill 
performance!)
PAL Part 2 
 Workload is probably done now. 
 Let’s talk about how to use PAL to analyze our log file. 
 Instead of talking, let’s show it… 
 DEMO 
 Hopefully use the real file from the workload 
 If not review some already staged files (ala Julia Child) 
 Look at the insight in PAL for us 
 Pay attention to the lessons you can get just using PAL (e.g 
Forwarded Records definition and solution.. Batch Requests/sec 
ratios to other counters, etc)
Putting it all 
together 
 What’s the performance story from everything we looked at? 
 Getting into monthly or quarterly reviews 
 Picking counters to trend the story over time 
 Batch requests/sec – busier now than then? 
 User connections then/now 
 Basic metrics then/now – capacity planning proactively 
 Fixing where it hurts 
 When isn’t it the database/code? 
 When isn’t it the server? 
 When is it both? (hint – most of the time)
Resources 
 Blog Posts/How-To Videos 
 My post on using PAL to generate template with video walkthrough. 
 My post on how to use CPU-Z to look for dangers of CPU Power saving with video walkthrough. 
 Old post of mine talking about some other free tools that are great. 
 Brent Ozar post on doing some perfmon analysis in Excel/CSV format. 
 Old PAL/Baseline blog post on my blog. 
 Glenn Berry Diagnostic Scripts 
 PAL 
 John Sterrett Wait and IO Statistics Interval Scripts – 
 Waits File/IO 
 Great Books 
 Professional SQL Server 2008 Internals and Troubleshooting (still great– even now) 
 Professional SQL Server 2012 Internals and Troubleshooting. 
 DVD Store –What we used to generate load on the server. Great blog post walk through on 
setting up from David Klee. 
 Relog –Tool we discussed to turn blg into CSV (so you never have to store in CSV format from 
perfmon…) 
 CPU-Z –Tool I talk about in the presentation and blog post above. 
 SP_Whoisactive – Anytime I deliver this session I imagine I’ll always mention this amazing 
script from Adam Machanic. Link goes to lots of posts on his blog about the tool and download 
link.

More Related Content

PDF
Making cross browser tests beautiful
PPTX
Automated Testing but like for PowerShell (April 2012)
PPT
Next generation frontend tooling
PPTX
Day 8 - jRuby
PDF
C++ 11 Style : A Touch of Class
PDF
Unit Testing in JavaScript
PDF
Why use Go for web development?
PDF
Gemboys
Making cross browser tests beautiful
Automated Testing but like for PowerShell (April 2012)
Next generation frontend tooling
Day 8 - jRuby
C++ 11 Style : A Touch of Class
Unit Testing in JavaScript
Why use Go for web development?
Gemboys

What's hot (20)

PDF
JSFoo-2017 Takeaways
PPTX
Test automation with cucumber jvm
PPTX
Test Automation Framework with BDD and Cucumber
PDF
Migrate PHP E-Commerce Site to Go
PPTX
Introduction to Coffeescript
PPTX
Day 9 - PostgreSQL Application Architecture
PPTX
Cypress test techniques cucumber bdd framework,tdd,api tests course
PDF
Promoting Agility with Running Tested Features - Lightening Talk
PDF
Performant Django - Ara Anjargolian
PPT
Coffee script final
PPTX
Test Driven Development in CQ5/AEM
PDF
Intro to DooPHP
ZIP
Promises in JavaScript with jQuery
PPTX
Day 1 - Intro to Ruby
PDF
Test-driven development with Node.js
PPTX
Bdd – with cucumber and gherkin
PDF
5 hs mpostcustomizationrenefonseca
PPT
Practical TDD Demonstrated
PPTX
How to Automate Practically Anything with FME Server (Technical Webinar)
JSFoo-2017 Takeaways
Test automation with cucumber jvm
Test Automation Framework with BDD and Cucumber
Migrate PHP E-Commerce Site to Go
Introduction to Coffeescript
Day 9 - PostgreSQL Application Architecture
Cypress test techniques cucumber bdd framework,tdd,api tests course
Promoting Agility with Running Tested Features - Lightening Talk
Performant Django - Ara Anjargolian
Coffee script final
Test Driven Development in CQ5/AEM
Intro to DooPHP
Promises in JavaScript with jQuery
Day 1 - Intro to Ruby
Test-driven development with Node.js
Bdd – with cucumber and gherkin
5 hs mpostcustomizationrenefonseca
Practical TDD Demonstrated
How to Automate Practically Anything with FME Server (Technical Webinar)
Ad

Viewers also liked (20)

PPSX
C:\Fakepath\Promote Awud
PPT
Think Mobile April 2010_Michael Boord_Ap mobile
PDF
Haaga helia msl_tehtaevae_atte_jaervelae_arvioitu-1
PPTX
juliana delgado s.s. work
PDF
Pixel Deployment Guide
PPTX
is globalization the new colonization of the new era?
PDF
Veto-hanke OAKK loppuraportti
PDF
Ssc guidelines
PDF
Presentation progress academy 2013 uk v0
PPTX
what is excel??
PPTX
Haaga Helia Kehittamistyo Atte Jarvela
PPT
Sws Event
PPT
Trabajo De Sociales Campo Elias
PPT
Presentatie Ifrs En Sox
PPT
Rural tech
PPT
Parameter Passing & Session Tracking in PHP
PDF
css navigation
PDF
Kuormausnosturin käyttö Volvo FH12 ja Hiab 330
PPTX
Digital media and Namibian youth
C:\Fakepath\Promote Awud
Think Mobile April 2010_Michael Boord_Ap mobile
Haaga helia msl_tehtaevae_atte_jaervelae_arvioitu-1
juliana delgado s.s. work
Pixel Deployment Guide
is globalization the new colonization of the new era?
Veto-hanke OAKK loppuraportti
Ssc guidelines
Presentation progress academy 2013 uk v0
what is excel??
Haaga Helia Kehittamistyo Atte Jarvela
Sws Event
Trabajo De Sociales Campo Elias
Presentatie Ifrs En Sox
Rural tech
Parameter Passing & Session Tracking in PHP
css navigation
Kuormausnosturin käyttö Volvo FH12 ja Hiab 330
Digital media and Namibian youth
Ad

Similar to Sql server baselines (20)

PDF
Beat the devil: towards a Drupal performance benchmark
ODP
Python for Data Logistics
PPTX
Online Reporting Architectures Behind Load Balancers
PPTX
PPTX
Replay your workload as it's your actual one
PPTX
Replay your workload as it is your actual one!
PPT
Supporting SQLserver
PDF
Replay your workload as it is your actual one!
PPTX
So Your Boss Wants You to Performance Test Blackboard
ODP
The OpenOffice.org specification process demystified
PDF
Pitchero - Increasing agility through DevOps - Leeds DevOps November 2016
PPTX
Replay your workload as it is your actual one!
PPT
ActiveWarehouse/ETL - BI & DW for Ruby/Rails
PPTX
Feature vs component
PPT
Migraine Drupal - syncing your staging and live sites
PPTX
SharePoint Performance
PPTX
Performance Tuning with XHProf
PDF
Synergy 2015 Session Slides: SYN408 XenDesktop 7.6 Architecture - Dealing Wit...
PPTX
Swiss pass chapter deck - zurich - april 2011
PPT
Metamorphosis from Forms to Java: a technical lead's perspective
Beat the devil: towards a Drupal performance benchmark
Python for Data Logistics
Online Reporting Architectures Behind Load Balancers
Replay your workload as it's your actual one
Replay your workload as it is your actual one!
Supporting SQLserver
Replay your workload as it is your actual one!
So Your Boss Wants You to Performance Test Blackboard
The OpenOffice.org specification process demystified
Pitchero - Increasing agility through DevOps - Leeds DevOps November 2016
Replay your workload as it is your actual one!
ActiveWarehouse/ETL - BI & DW for Ruby/Rails
Feature vs component
Migraine Drupal - syncing your staging and live sites
SharePoint Performance
Performance Tuning with XHProf
Synergy 2015 Session Slides: SYN408 XenDesktop 7.6 Architecture - Dealing Wit...
Swiss pass chapter deck - zurich - april 2011
Metamorphosis from Forms to Java: a technical lead's perspective

More from Mike Walsh (6)

PPTX
Mike walsh hadr_toomanychoices_20191107
PPTX
Simplifying sql server upgrades
PPTX
SQL Server High Availability and DR - Too Many Choices!
PPTX
Iceberg, Dead Ahead - Lessons From Aviation Disasters
PPTX
You Can Tune Your Own SQL Code
PPTX
As a DBA, Where Do I Start? (1.0)
Mike walsh hadr_toomanychoices_20191107
Simplifying sql server upgrades
SQL Server High Availability and DR - Too Many Choices!
Iceberg, Dead Ahead - Lessons From Aviation Disasters
You Can Tune Your Own SQL Code
As a DBA, Where Do I Start? (1.0)

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Machine learning based COVID-19 study performance prediction
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Cloud computing and distributed systems.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
cuic standard and advanced reporting.pdf
PPT
Teaching material agriculture food technology
PPTX
Spectroscopy.pptx food analysis technology
PDF
Approach and Philosophy of On baking technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation_ Review paper, used for researhc scholars
Dropbox Q2 2025 Financial Results & Investor Presentation
Machine learning based COVID-19 study performance prediction
“AI and Expert System Decision Support & Business Intelligence Systems”
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Understanding_Digital_Forensics_Presentation.pptx
sap open course for s4hana steps from ECC to s4
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
Network Security Unit 5.pdf for BCA BBA.
Cloud computing and distributed systems.
Digital-Transformation-Roadmap-for-Companies.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
cuic standard and advanced reporting.pdf
Teaching material agriculture food technology
Spectroscopy.pptx food analysis technology
Approach and Philosophy of On baking technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation_ Review paper, used for researhc scholars

Sql server baselines

  • 1. SQL Server : Performance and Baseline Measurements Mike Walsh – Linchpin People
  • 2. Mike Walsh  SQL Server MVP since 2011  Seacoast SQL User Group  SQL Server Consultant  Partner at Linchpin People  Blog:  Straightpath SQL Blog  Linchpin People Blog
  • 3. Agenda  Baselines – What/Why/How are they?  Tools and Scripts  PAL  Wait and IO Statistics Collection  “Glenn Berry Scripts”  Telling a performance story
  • 4. PAL – Part 1  Performance Analysis For Logs  Perfmon  Template Files  PAL Demo  Show the tool  Talk about perfmon  Start collection and kick off a workload
  • 5. Baseline & Benchmark Discussion  While our workload runs.. Let’s talk about baselines…  What are they?  What can they do for us?  How can we review and use them?  Why should you all be collecting and reviewing them?
  • 6. Wait Statistics  What are they?  What do we do with the information?  Trending vs Static  DEMO  Look at wait statistics  Look at interval wait statistics
  • 7. File/IO Stats  SQL Server’s View into Latency  Doesn’t always match perfmon… Why?  Perfmon doesn’t always match SAN stats… Why?  DEMO  Looking at Static Stats with Glenn Berry Scripts  Looking at interval stats
  • 8. How’s Your Server?  Glenn Berry Scripts – Are you shooting yourself in the foot?  Quick Talk about the Linchpin People WellDBA™ Exam  (not marketeering.. Talk about why it’s good to check your own servers from time to time.. No matter how you do it.)  What we are looking for that affects performance  DEMO  Running through Glenn Berry Diagnostic Scripts Live  Looking at CPU-Z for CPU Power Saving (it really does kill performance!)
  • 9. PAL Part 2  Workload is probably done now.  Let’s talk about how to use PAL to analyze our log file.  Instead of talking, let’s show it…  DEMO  Hopefully use the real file from the workload  If not review some already staged files (ala Julia Child)  Look at the insight in PAL for us  Pay attention to the lessons you can get just using PAL (e.g Forwarded Records definition and solution.. Batch Requests/sec ratios to other counters, etc)
  • 10. Putting it all together  What’s the performance story from everything we looked at?  Getting into monthly or quarterly reviews  Picking counters to trend the story over time  Batch requests/sec – busier now than then?  User connections then/now  Basic metrics then/now – capacity planning proactively  Fixing where it hurts  When isn’t it the database/code?  When isn’t it the server?  When is it both? (hint – most of the time)
  • 11. Resources  Blog Posts/How-To Videos  My post on using PAL to generate template with video walkthrough.  My post on how to use CPU-Z to look for dangers of CPU Power saving with video walkthrough.  Old post of mine talking about some other free tools that are great.  Brent Ozar post on doing some perfmon analysis in Excel/CSV format.  Old PAL/Baseline blog post on my blog.  Glenn Berry Diagnostic Scripts  PAL  John Sterrett Wait and IO Statistics Interval Scripts –  Waits File/IO  Great Books  Professional SQL Server 2008 Internals and Troubleshooting (still great– even now)  Professional SQL Server 2012 Internals and Troubleshooting.  DVD Store –What we used to generate load on the server. Great blog post walk through on setting up from David Klee.  Relog –Tool we discussed to turn blg into CSV (so you never have to store in CSV format from perfmon…)  CPU-Z –Tool I talk about in the presentation and blog post above.  SP_Whoisactive – Anytime I deliver this session I imagine I’ll always mention this amazing script from Adam Machanic. Link goes to lots of posts on his blog about the tool and download link.