SlideShare una empresa de Scribd logo
1 de 24
“The Day After Tomorrow”;
why you need to baseline
Richard Douglas
Dell Software
Who’s this guy?
•
•
•
•
•
•
•

Richard Douglas
Editor in Chief – ToadWorld.com
MCITPro
Maidenhead PASS Chapter Leader
Blog: http://SQL.RichardDouglas.co.uk
Twitter: @SQLRich
Email: Richard.Douglas@Software.dell.com
Agenda
•
•
•
•
•
•

What is a “baseline”?
What is “benchmarking”?
Where do I start?
What should I capture?
What should I capture it with?
Summary
What is a “baseline”?
• Typical state
• Average over a time period
• Multiple baselines

Why baseline?
• Line in the sand
• Usage patterns

A measurement
or calculation
used as a basis
for comparison.
What is “benchmarking”?
A level by
which
something can
be measured
or judged

Allows you to make
informed decisions
Performance tuning lifecycle
Obligatory analogy
When should I capture it?

It depends

• Consider different baselines for different business periods
– Maintenance windows
– Month/Quarter/Year end
– Seasonal peaks

• After Windows and SQL Server patches
• After failovers / DR scenarios
• After any new project deployment
What should I capture?

System
Configuration

Windows OS
Counters

SQL Server
Counters

Wait
statistics
What should I capture?

System configuration
•
•
•
•
•

Infrastructure diagrams.
Windows and SQL Server version information.
Driver information.
IO Subsystem information.
System catalogue information:
– Sys.configurations
– Sys.databases
– Sys.master_files
What should I capture?
Operating System / SQL Server Counters - Memory
•
•
•
•
•
•

Memory: Available Mbytes
Paging File: %Usage
0
SQL Server Memory Manager: Target Server Memory(KB)
SQL Server Memory Manager: Total Server Memory(KB)
SQL Server Memory Manager: Memory Grants Pending
SQL Server Buffer Manager: Buffer cache hit ratio
300
SQL Server Buffer Manager: Page Life Expectancy
• SQL Server Buffer Manager: Extension Page Unreferenced Time PLE * 16 or 32
• SQL Server Buffer Manager: Database Pages
• SQL Server Buffer Manager: Procedure Cache Pages
Virtualisation Considerations - VMWare
• Memory Limit (MB)
• Memory Reservation (MB)
• Memory Ballooned (MB)

• Memory Swapped (MB)
Read more about VMWare memory settings here:
http://www.vmware.com/files/pdf/techpaper/vsp_41_perf_memory_mgmt.
pdf
What should I capture?
Operating System / SQL Server Counters - CPU
• Processor: % Processor Time

LT 80%

• Process: % Processor Time (SQLServr)

LT 80%
LT 12 good
ideally LT 4
LT 3000 good
ideally LT 1500

• System: Processor Queue Length
• System: Context Switches/Sec
• SQL Server SQL Statistics: SQL Compilations/Sec

• SQL Server SQL Statistics: SQL ReCompilations/Sec
What should I capture?
Operating System / SQL Server Counters - IO
• Physical Disk: Current Disk Queue Length

?

• Physical Disk: Avg. Disk Sec/Read

LT 20ms

• Physical Disk: Avg. Disk Sec/Write

LT 10ms

• Physical Disk: Avg. Bytes/Read
• Physical Disk: Avg. Bytes/Write
SAN Considerations
• Virtualised storage
– How is it connected?
– How many spindles?
– How many other servers share this?

• Dynamic storage
– Your data may move!!!!!

• What’s a good way to test for consistency?
– Baseline your maintenance window(s)
What should I capture?
SQL Server Counters

•

SQL Server Access Method: Forwarded Records/Sec

•

SQL Server Access Method: Page Splits/Sec

•

SQL Server General Statistics: User Connections

•

SQL Server SQL Statistics: Batch Requests/Sec

•

SQL Server Buffer Manager: Page Reads/Sec

•

SQL Server Buffer Manager: Page Writes/Sec

Ideally 0
It depends*
Beware pooling
LT 90
LT 90 **

*Page splits include “regular” new page allocations
** Cross reference this with Checkpoint and Lazy Writer counters
What should I capture?

• Query information

– Understand the server workload
– Consider exporting plans from the cache.

• Job information
– Are my jobs taking longer?

• Wait statistics
– What is SQL Server waiting on?
What free tools can I capture it with?
• Performance Monitor (OS + SQL Server Counters)

• Your favourite T-SQL editor - SSMS or Toad for
SQL Server freeware (Dynamic Management
Objects)
• Profiler / Extended events (Query information)
How do I analyse?
• Import data into Microsoft Excel
– http://www.toadworld.com/platforms/sqlserver/w/wiki/10421.performance-monitor.aspx
– http://bit.ly/YXOfZD - Brent Ozar at SQLBits
Demo
Mature Information Management Processes

Level 1
Reactive

Level 0
Chaotic











Ad hoc
Undocumented
Unpredictable
Multiple help
desks
Minimal IT
operations
User call
notification







Level 3
Service

Level 2
Proactive



Fight fires

Inventory

Desktop sw
distribution

Initiate

problem mgt
process
Alert and
event mgt
Monitor component
availability



Analyze trends
Set thresholds
Predict problems
Monitor end-user
response time
Automate
Mature
problem, configura
tion, change, asse
t and performance
mgt processes










IT as strategic
business partner
IT and business
metric linkage
IT/business
collaboration
improves business
process
Real-time
infrastructure
Business planning


IT as a service
provider

Define
services, classes, p
ricing
Understand costs

Guarantee SLAs
Monitor and report

service availability
Manage IT as a Business
Capacity
mgt
Service and Account Management

Service Delivery Process Engineering

Operational Process Engineering

Tool Leverage

Level 4
Value
“The Day After Tomorrow”;
why you need to baseline
Summary
• What a “baseline” is.
• What “benchmarking” means.
• How to plan your baseline.
• How to choose your measures.
• Native tools.
THANK YOU!
• For attending this session and
PASS SQLRally Nordic 2013, Stockholm
Richard Douglas
@SQLRich
http://SQL.RichardDouglas.co.uk
Richard.Douglas@Software.Dell.com

Más contenido relacionado

Último

Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

Último (20)

Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

The Day After Tomorrow; why you need to baseline - PASS SQL Rally Nordic - 2013

  • 1. “The Day After Tomorrow”; why you need to baseline Richard Douglas Dell Software
  • 2. Who’s this guy? • • • • • • • Richard Douglas Editor in Chief – ToadWorld.com MCITPro Maidenhead PASS Chapter Leader Blog: http://SQL.RichardDouglas.co.uk Twitter: @SQLRich Email: Richard.Douglas@Software.dell.com
  • 3. Agenda • • • • • • What is a “baseline”? What is “benchmarking”? Where do I start? What should I capture? What should I capture it with? Summary
  • 4. What is a “baseline”? • Typical state • Average over a time period • Multiple baselines Why baseline? • Line in the sand • Usage patterns A measurement or calculation used as a basis for comparison.
  • 5. What is “benchmarking”? A level by which something can be measured or judged Allows you to make informed decisions
  • 8. When should I capture it? It depends • Consider different baselines for different business periods – Maintenance windows – Month/Quarter/Year end – Seasonal peaks • After Windows and SQL Server patches • After failovers / DR scenarios • After any new project deployment
  • 9. What should I capture? System Configuration Windows OS Counters SQL Server Counters Wait statistics
  • 10. What should I capture? System configuration • • • • • Infrastructure diagrams. Windows and SQL Server version information. Driver information. IO Subsystem information. System catalogue information: – Sys.configurations – Sys.databases – Sys.master_files
  • 11. What should I capture? Operating System / SQL Server Counters - Memory • • • • • • Memory: Available Mbytes Paging File: %Usage 0 SQL Server Memory Manager: Target Server Memory(KB) SQL Server Memory Manager: Total Server Memory(KB) SQL Server Memory Manager: Memory Grants Pending SQL Server Buffer Manager: Buffer cache hit ratio 300 SQL Server Buffer Manager: Page Life Expectancy • SQL Server Buffer Manager: Extension Page Unreferenced Time PLE * 16 or 32 • SQL Server Buffer Manager: Database Pages • SQL Server Buffer Manager: Procedure Cache Pages
  • 12. Virtualisation Considerations - VMWare • Memory Limit (MB) • Memory Reservation (MB) • Memory Ballooned (MB) • Memory Swapped (MB) Read more about VMWare memory settings here: http://www.vmware.com/files/pdf/techpaper/vsp_41_perf_memory_mgmt. pdf
  • 13. What should I capture? Operating System / SQL Server Counters - CPU • Processor: % Processor Time LT 80% • Process: % Processor Time (SQLServr) LT 80% LT 12 good ideally LT 4 LT 3000 good ideally LT 1500 • System: Processor Queue Length • System: Context Switches/Sec • SQL Server SQL Statistics: SQL Compilations/Sec • SQL Server SQL Statistics: SQL ReCompilations/Sec
  • 14. What should I capture? Operating System / SQL Server Counters - IO • Physical Disk: Current Disk Queue Length ? • Physical Disk: Avg. Disk Sec/Read LT 20ms • Physical Disk: Avg. Disk Sec/Write LT 10ms • Physical Disk: Avg. Bytes/Read • Physical Disk: Avg. Bytes/Write
  • 15. SAN Considerations • Virtualised storage – How is it connected? – How many spindles? – How many other servers share this? • Dynamic storage – Your data may move!!!!! • What’s a good way to test for consistency? – Baseline your maintenance window(s)
  • 16. What should I capture? SQL Server Counters • SQL Server Access Method: Forwarded Records/Sec • SQL Server Access Method: Page Splits/Sec • SQL Server General Statistics: User Connections • SQL Server SQL Statistics: Batch Requests/Sec • SQL Server Buffer Manager: Page Reads/Sec • SQL Server Buffer Manager: Page Writes/Sec Ideally 0 It depends* Beware pooling LT 90 LT 90 ** *Page splits include “regular” new page allocations ** Cross reference this with Checkpoint and Lazy Writer counters
  • 17. What should I capture? • Query information – Understand the server workload – Consider exporting plans from the cache. • Job information – Are my jobs taking longer? • Wait statistics – What is SQL Server waiting on?
  • 18. What free tools can I capture it with? • Performance Monitor (OS + SQL Server Counters) • Your favourite T-SQL editor - SSMS or Toad for SQL Server freeware (Dynamic Management Objects) • Profiler / Extended events (Query information)
  • 19. How do I analyse? • Import data into Microsoft Excel – http://www.toadworld.com/platforms/sqlserver/w/wiki/10421.performance-monitor.aspx – http://bit.ly/YXOfZD - Brent Ozar at SQLBits
  • 20. Demo
  • 21. Mature Information Management Processes Level 1 Reactive Level 0 Chaotic         Ad hoc Undocumented Unpredictable Multiple help desks Minimal IT operations User call notification     Level 3 Service Level 2 Proactive   Fight fires  Inventory  Desktop sw distribution  Initiate  problem mgt process Alert and event mgt Monitor component availability  Analyze trends Set thresholds Predict problems Monitor end-user response time Automate Mature problem, configura tion, change, asse t and performance mgt processes       IT as strategic business partner IT and business metric linkage IT/business collaboration improves business process Real-time infrastructure Business planning  IT as a service provider  Define services, classes, p ricing Understand costs  Guarantee SLAs Monitor and report  service availability Manage IT as a Business Capacity mgt Service and Account Management Service Delivery Process Engineering Operational Process Engineering Tool Leverage Level 4 Value
  • 22. “The Day After Tomorrow”; why you need to baseline Summary • What a “baseline” is. • What “benchmarking” means. • How to plan your baseline. • How to choose your measures. • Native tools.
  • 23.
  • 24. THANK YOU! • For attending this session and PASS SQLRally Nordic 2013, Stockholm Richard Douglas @SQLRich http://SQL.RichardDouglas.co.uk Richard.Douglas@Software.Dell.com