SlideShare a Scribd company logo
Throwing Hardware at SQL Server Performance problems?
Think again, there’s a better way!
SQL Server Performance
Approaches to Performance Improvement
» Buy bigger, faster hardware
 Sometimes the only answer
 Often the easy way out
 Can be high risk
» New SQL Server features
 May help if your problem is one they address
» Make better use of existing resources
 Start by understanding the issues
 Gather and analyze information
 Make informed decisions
 Be proactive
Performance information
» Many sources
 Dynamic Management views
 System Tables
 WMI
 Performance counters
» Needs to be stored and correlated
 History
 Baselines
 Microsoft tools
• Often a “science project”
 Commercial tools
• History and correlation sometimes built in
• Help with analysis and resolution
• Database Performance Advisor (DPA) does both
Hardware Settings
» Power Saver Mode
 Defaults to Balanced
 SQL Server works better on High Power
 https://support.microsoft.com/kb/2207548?wa=wsignin1.0
» HBA Queue Depth
 Defaults to 16 or 32
 SQL Server needs 64 or 128
Storage Issues
» Data, Logs, and Tempdb on separate volumes
» RAID 10 for faster writes than RAID 5
» MPIO – load balanced
» Compression reduces IO by increasing rows per page
» Table and index scans increase IO
 Indexes
 Query tuning
» Disk Performance
 Seconds Per Read - < 10 ms
 Seconds Per Write < 5 ms
Parallelism
» Limits on speed of a core
» Adding cores to improve performance
 Multiple queries in parallel
 Multiple cores for a single query
• Scan in parallel
• Sort/filter in parallel
 Hyper-threading works in current versions
» CXPACKET wait type indicates parallelism is being used
 Not necessarily a bad thing
 Many large queries can produce high CXPACKET waits
MAXDOP
» Limits the number of schedulers for a query
 Set at instance level or query hint
 Defaults to 0 – all schedulers on system
 Too much parallelism can be bad
• Competition for processor resources
• Splitting and combining overhead
• Crossing NUMA boundaries
• Servers may have > 64 cores which is more than most queries can use effectively
 MAXDOP <= NUMA node size
 MAXDOP = 8 good place to start
Cost Threshold for Parallelism
» Optimizer creates serial plan first
» If the cost of the serial plan is greater than the Cost Threshold for Parallelism it
creates a parallel plan
» The lowest cost plan is used
» Cost Threshold default is 5
» With modern servers, 5 is much to small
 Waste time and processor cycles computing parallel plans
 May use parallel plan for very small queries
» Start with 25-30 and if it helps try 40 or 50
Buffer Cache
» Cache pages so query engine doesn’t have to go to disk
» Low buffer cache = increased IO
» Measure memory stress
 Page Life Expectancy (PLE) – estimated time page will stay in memory
• Larger the better
• Look for sudden drops in PLE
• Large table scans
• Lots of IO to reload cache
 Lazy Writes
• Short on memory – dirty pages flushed to disk between checkpoints
» Fix buffer cache issues
 Reduce table scans
 Increase memory
Plan Cache
» Compiled plans are stored in cache for possible reuse
 Lookup by hash of query text
• Must be exact match
 Plan not reused are gradually aged out of cache
» Single use plans
 Usually non-parameterized queries
 Waste cache space – slow search for plans
 OPTIMIZE FOR ADHOC QUERIES instance parameter
• Caches queries on second use
• Saves cache space
• Use routinely
 FORCED PARAMETERIZATION
• Makes optimizer more aggressive about parameterizing queries
• Use only after testing
• Only when rewriting queries isn’t possible
Table and Index Scans
» Query needs to access all rows
 Aggregates
 Reports
» Scan is the best way to execute the query
 Not many rows
 Most of the rows required
» No index on the column
» There is an index but it can’t be used
 Implicit datatype conversions
 Scalar functions
Wait Analysis
» SQL tasks are either executing or waiting
» Understanding what tasks are waiting for can help you find performance issues
» DPA offers several ways to analyze waits
 System wide waits – what does the system wait for
 Waits by query – what waits make up the response time of a query
» DPA helps analyze query performance
 Which queries take the most time
 Which queries run most often
 Which queries use the most resources
» DPA analyzes tends
 Resource usage changing
 Queries running slower
Database Performance Analyzer Demo
Janis Griffin
» Database Performance Evangelist
» SolarWinds – The Power to Manage IT
First steps
» Check Power Saver and HBA settings
» Implement data compression
» Set MAXDOP to 9 and Cost Threshold for Parallelism to 30
» SET OPTIMIZE FOR ADHOC QUERIES option
» Set up monitoring for (at least)
 Tables Scans
 PLE
 Lazy Writes
 Seconds per Write
 Seconds per Read
» Check for missing indexes and tune most expensive queries
Summary
» Investing in hardware without first understanding performance issues is a high risk
option
» Gathering performance information is key to understanding and resolving
performance issues
» Baselines and history are important to performance analysis
» Wait analysis can help diagnose performance issues
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Resolve performance issues quickly—free trial
» Try Database Performance Analyzer FREE for 14 days
» Improve root cause of slow performance
 Quickly identify root cause of issues that impact end-user response time
 See historical trends over days, months, and years
 Understand impact of VMware® performance
 Agentless architecture with no dependence on Oracle Packs, installs in minutes
www.solarwinds.com/dpa-download/
Questions?
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
© 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
Thank You!
The SOLARWINDS and SOLARWINDS & Design marks are the exclusive
property of SolarWinds Worldwide, LLC, are registered with the U.S.
Patent and Trademark Office, and may be registered or pending
registration in other countries. All other SolarWinds trademarks, service
marks, and logos may be common law marks, registered or pending
registration in the United States or in other countries. All other
trademarks mentioned herein are used for identification purposes only
and may be or are trademarks or registered trademarks of their respective
companies.
Ad

Recommended

The have no fear guide to virtualizing databases
The have no fear guide to virtualizing databases
SolarWinds
 
How to fix IO problems for faster SQL Server performance
How to fix IO problems for faster SQL Server performance
SolarWinds
 
Find and fix SQL Server performance problems faster
Find and fix SQL Server performance problems faster
SolarWinds
 
How to deploy SQL Server on an Microsoft Azure virtual machines
How to deploy SQL Server on an Microsoft Azure virtual machines
SolarWinds
 
Tulsa tech fest 2010 - web speed and scalability
Tulsa tech fest 2010 - web speed and scalability
Jason Ragsdale
 
Caching: A Guided Tour - 10/12/2010
Caching: A Guided Tour - 10/12/2010
Jason Ragsdale
 
Right-Sizing your SQL Server Virtual Machine
Right-Sizing your SQL Server Virtual Machine
heraflux
 
SQL Server Wait Types Everyone Should Know
SQL Server Wait Types Everyone Should Know
Dean Richards
 
Scaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL Servers
heraflux
 
VMworld 2014: Virtualizing Databases
VMworld 2014: Virtualizing Databases
VMworld
 
Scalabe MySQL Infrastructure
Scalabe MySQL Infrastructure
Balazs Pocze
 
Web20expo Filesystems
Web20expo Filesystems
royans
 
Web20expo Scalable Web Arch
Web20expo Scalable Web Arch
guest18a0f1
 
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld
 
SVC / Storwize: cache partition analysis (BVQ howto)
SVC / Storwize: cache partition analysis (BVQ howto)
Michael Pirker
 
How to Make SQL Server Go Faster
How to Make SQL Server Go Faster
Brent Ozar
 
Hardware planning & sizing for sql server
Hardware planning & sizing for sql server
Davide Mauri
 
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
VMworld
 
Top 10 Application Problems
Top 10 Application Problems
AppDynamics
 
Tech Talk Series, Part 3: Why is your CFO right to demand you scale down MySQL?
Tech Talk Series, Part 3: Why is your CFO right to demand you scale down MySQL?
Clustrix
 
Cohodatawebinar
Cohodatawebinar
Murugesan Arumugam
 
Sql saturday dc vm ware
Sql saturday dc vm ware
Joseph D'Antoni
 
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Michael Pirker
 
Scalable Web Arch
Scalable Web Arch
royans
 
South jersey sql virtualization
South jersey sql virtualization
Joseph D'Antoni
 
Linux internals for Database administrators at Linux Piter 2016
Linux internals for Database administrators at Linux Piter 2016
PostgreSQL-Consulting
 
Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
elliando dias
 
Breaking the Sound Barrier with Persistent Memory
Breaking the Sound Barrier with Persistent Memory
HBaseCon
 
SolarWinds Federal Webinar: Technical Update & Demo of New Features
SolarWinds Federal Webinar: Technical Update & Demo of New Features
SolarWinds
 
Easy way to do rolling upgrades for SQL Server
Easy way to do rolling upgrades for SQL Server
SolarWinds
 

More Related Content

What's hot (20)

Scaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL Servers
heraflux
 
VMworld 2014: Virtualizing Databases
VMworld 2014: Virtualizing Databases
VMworld
 
Scalabe MySQL Infrastructure
Scalabe MySQL Infrastructure
Balazs Pocze
 
Web20expo Filesystems
Web20expo Filesystems
royans
 
Web20expo Scalable Web Arch
Web20expo Scalable Web Arch
guest18a0f1
 
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld
 
SVC / Storwize: cache partition analysis (BVQ howto)
SVC / Storwize: cache partition analysis (BVQ howto)
Michael Pirker
 
How to Make SQL Server Go Faster
How to Make SQL Server Go Faster
Brent Ozar
 
Hardware planning & sizing for sql server
Hardware planning & sizing for sql server
Davide Mauri
 
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
VMworld
 
Top 10 Application Problems
Top 10 Application Problems
AppDynamics
 
Tech Talk Series, Part 3: Why is your CFO right to demand you scale down MySQL?
Tech Talk Series, Part 3: Why is your CFO right to demand you scale down MySQL?
Clustrix
 
Cohodatawebinar
Cohodatawebinar
Murugesan Arumugam
 
Sql saturday dc vm ware
Sql saturday dc vm ware
Joseph D'Antoni
 
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Michael Pirker
 
Scalable Web Arch
Scalable Web Arch
royans
 
South jersey sql virtualization
South jersey sql virtualization
Joseph D'Antoni
 
Linux internals for Database administrators at Linux Piter 2016
Linux internals for Database administrators at Linux Piter 2016
PostgreSQL-Consulting
 
Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
elliando dias
 
Breaking the Sound Barrier with Persistent Memory
Breaking the Sound Barrier with Persistent Memory
HBaseCon
 
Scaling Up and Out your Virtualized SQL Servers
Scaling Up and Out your Virtualized SQL Servers
heraflux
 
VMworld 2014: Virtualizing Databases
VMworld 2014: Virtualizing Databases
VMworld
 
Scalabe MySQL Infrastructure
Scalabe MySQL Infrastructure
Balazs Pocze
 
Web20expo Filesystems
Web20expo Filesystems
royans
 
Web20expo Scalable Web Arch
Web20expo Scalable Web Arch
guest18a0f1
 
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld 2013: Storage DRS: Deep Dive and Best Practices to Suit Your Storage ...
VMworld
 
SVC / Storwize: cache partition analysis (BVQ howto)
SVC / Storwize: cache partition analysis (BVQ howto)
Michael Pirker
 
How to Make SQL Server Go Faster
How to Make SQL Server Go Faster
Brent Ozar
 
Hardware planning & sizing for sql server
Hardware planning & sizing for sql server
Davide Mauri
 
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
VMworld 2014: Advanced SQL Server on vSphere Techniques and Best Practices
VMworld
 
Top 10 Application Problems
Top 10 Application Problems
AppDynamics
 
Tech Talk Series, Part 3: Why is your CFO right to demand you scale down MySQL?
Tech Talk Series, Part 3: Why is your CFO right to demand you scale down MySQL?
Clustrix
 
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Analyze a SVC, STORWIZE metro/ global mirror performance problem-v58-20150818...
Michael Pirker
 
Scalable Web Arch
Scalable Web Arch
royans
 
South jersey sql virtualization
South jersey sql virtualization
Joseph D'Antoni
 
Linux internals for Database administrators at Linux Piter 2016
Linux internals for Database administrators at Linux Piter 2016
PostgreSQL-Consulting
 
Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
Distributed Caching Using the JCACHE API and ehcache, Including a Case Study ...
elliando dias
 
Breaking the Sound Barrier with Persistent Memory
Breaking the Sound Barrier with Persistent Memory
HBaseCon
 

Viewers also liked (20)

SolarWinds Federal Webinar: Technical Update & Demo of New Features
SolarWinds Federal Webinar: Technical Update & Demo of New Features
SolarWinds
 
Easy way to do rolling upgrades for SQL Server
Easy way to do rolling upgrades for SQL Server
SolarWinds
 
Survey: IT is Everywhere (End Users’ Perspective, UK)
Survey: IT is Everywhere (End Users’ Perspective, UK)
SolarWinds
 
The Fiction behind IT Security Confidence
The Fiction behind IT Security Confidence
SolarWinds
 
Advanced tips for making Oracle databases faster
Advanced tips for making Oracle databases faster
SolarWinds
 
Ending the Tyranny of Expensive Security Tools
Ending the Tyranny of Expensive Security Tools
SolarWinds
 
SolarWinds Federal Tools Webinar - Using Integrated Tools to Improve Federal ...
SolarWinds Federal Tools Webinar - Using Integrated Tools to Improve Federal ...
SolarWinds
 
Survey: IT is Everywhere (End Users’ Perspective, Singapore)
Survey: IT is Everywhere (End Users’ Perspective, Singapore)
SolarWinds
 
Get High-Octane Virtual Datacenter Performance
Get High-Octane Virtual Datacenter Performance
SolarWinds
 
National Government Webinar: Reap the Rewards of IT Consolidation
National Government Webinar: Reap the Rewards of IT Consolidation
SolarWinds
 
SolarWinds Federal User Group 2016 - Optimizing SolarWinds Orion
SolarWinds Federal User Group 2016 - Optimizing SolarWinds Orion
SolarWinds
 
Survey: IT is Everywhere (End Users’ Perspective, Hong Kong)
Survey: IT is Everywhere (End Users’ Perspective, Hong Kong)
SolarWinds
 
SolarWinds Federal User Group 2016 - SolarWinds Network Management Products U...
SolarWinds Federal User Group 2016 - SolarWinds Network Management Products U...
SolarWinds
 
SAM Webinar - Keep Your Web Apps Running Lean & Mean
SAM Webinar - Keep Your Web Apps Running Lean & Mean
SolarWinds
 
Air Force Webinar: Using a SIEM to Improve Your IT Security
Air Force Webinar: Using a SIEM to Improve Your IT Security
SolarWinds
 
Federal Tools Webinar: Leveraging Affordable Tools to Enhance Your Orion Impl...
Federal Tools Webinar: Leveraging Affordable Tools to Enhance Your Orion Impl...
SolarWinds
 
Why SQL Server 2014 Cardinality Estimator is *the* killer feature
Why SQL Server 2014 Cardinality Estimator is *the* killer feature
SolarWinds
 
Survey: IT is Everywhere (End Users’ Perspective, Brazil)
Survey: IT is Everywhere (End Users’ Perspective, Brazil)
SolarWinds
 
Survey: IT is Everywhere (End Users’ Perspective, Australia)
Survey: IT is Everywhere (End Users’ Perspective, Australia)
SolarWinds
 
SolarWinds Application Performance End User Survey (Public Sector Results)
SolarWinds Application Performance End User Survey (Public Sector Results)
SolarWinds
 
SolarWinds Federal Webinar: Technical Update & Demo of New Features
SolarWinds Federal Webinar: Technical Update & Demo of New Features
SolarWinds
 
Easy way to do rolling upgrades for SQL Server
Easy way to do rolling upgrades for SQL Server
SolarWinds
 
Survey: IT is Everywhere (End Users’ Perspective, UK)
Survey: IT is Everywhere (End Users’ Perspective, UK)
SolarWinds
 
The Fiction behind IT Security Confidence
The Fiction behind IT Security Confidence
SolarWinds
 
Advanced tips for making Oracle databases faster
Advanced tips for making Oracle databases faster
SolarWinds
 
Ending the Tyranny of Expensive Security Tools
Ending the Tyranny of Expensive Security Tools
SolarWinds
 
SolarWinds Federal Tools Webinar - Using Integrated Tools to Improve Federal ...
SolarWinds Federal Tools Webinar - Using Integrated Tools to Improve Federal ...
SolarWinds
 
Survey: IT is Everywhere (End Users’ Perspective, Singapore)
Survey: IT is Everywhere (End Users’ Perspective, Singapore)
SolarWinds
 
Get High-Octane Virtual Datacenter Performance
Get High-Octane Virtual Datacenter Performance
SolarWinds
 
National Government Webinar: Reap the Rewards of IT Consolidation
National Government Webinar: Reap the Rewards of IT Consolidation
SolarWinds
 
SolarWinds Federal User Group 2016 - Optimizing SolarWinds Orion
SolarWinds Federal User Group 2016 - Optimizing SolarWinds Orion
SolarWinds
 
Survey: IT is Everywhere (End Users’ Perspective, Hong Kong)
Survey: IT is Everywhere (End Users’ Perspective, Hong Kong)
SolarWinds
 
SolarWinds Federal User Group 2016 - SolarWinds Network Management Products U...
SolarWinds Federal User Group 2016 - SolarWinds Network Management Products U...
SolarWinds
 
SAM Webinar - Keep Your Web Apps Running Lean & Mean
SAM Webinar - Keep Your Web Apps Running Lean & Mean
SolarWinds
 
Air Force Webinar: Using a SIEM to Improve Your IT Security
Air Force Webinar: Using a SIEM to Improve Your IT Security
SolarWinds
 
Federal Tools Webinar: Leveraging Affordable Tools to Enhance Your Orion Impl...
Federal Tools Webinar: Leveraging Affordable Tools to Enhance Your Orion Impl...
SolarWinds
 
Why SQL Server 2014 Cardinality Estimator is *the* killer feature
Why SQL Server 2014 Cardinality Estimator is *the* killer feature
SolarWinds
 
Survey: IT is Everywhere (End Users’ Perspective, Brazil)
Survey: IT is Everywhere (End Users’ Perspective, Brazil)
SolarWinds
 
Survey: IT is Everywhere (End Users’ Perspective, Australia)
Survey: IT is Everywhere (End Users’ Perspective, Australia)
SolarWinds
 
SolarWinds Application Performance End User Survey (Public Sector Results)
SolarWinds Application Performance End User Survey (Public Sector Results)
SolarWinds
 
Ad

Similar to Why new hardware may not make SQL Server faster (20)

Performance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL Database
Tung Nguyen Thanh
 
Doc 2011101412020074
Doc 2011101412020074
Rhythm Sun
 
Dynamics ax performance tuning
Dynamics ax performance tuning
OutsourceAX
 
Sql server performance tuning
Sql server performance tuning
ngupt28
 
Sql server performance tuning
Sql server performance tuning
Jugal Shah
 
Dmv's & Performance Monitor in SQL Server
Dmv's & Performance Monitor in SQL Server
Zeba Ansari
 
Geek Sync | Performance Tune Like an MVP
Geek Sync | Performance Tune Like an MVP
IDERA Software
 
Sql server lesson13
Sql server lesson13
Ala Qunaibi
 
Discovering the Plan Cache (#SQLSat 206)
Discovering the Plan Cache (#SQLSat 206)
Jason Strate
 
Optimising Queries - Series 1 Query Optimiser Architecture
Optimising Queries - Series 1 Query Optimiser Architecture
DAGEOP LTD
 
Tips and Tricks for SAP Sybase ASE
Tips and Tricks for SAP Sybase ASE
Don Brizendine
 
Troubleshooting SQL Server
Troubleshooting SQL Server
Stephen Rose
 
Dbms 3 sem
Dbms 3 sem
Anusha Adhikar
 
Configuring Sage 500 for Performance
Configuring Sage 500 for Performance
RKLeSolutions
 
SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1
sqlserver.co.il
 
Optimizing Application Performance - 2022.pptx
Optimizing Application Performance - 2022.pptx
JasonTuran2
 
Why & how to optimize sql server for performance from design to query
Why & how to optimize sql server for performance from design to query
Antonios Chatzipavlis
 
Objective SQL Server Performance
Objective SQL Server Performance
David Klee
 
Dba lounge-sql server-performance-troubleshooting
Dba lounge-sql server-performance-troubleshooting
Dan Andrei Stefan
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi Vončina
SPC Adriatics
 
Performance Tuning And Optimization Microsoft SQL Database
Performance Tuning And Optimization Microsoft SQL Database
Tung Nguyen Thanh
 
Doc 2011101412020074
Doc 2011101412020074
Rhythm Sun
 
Dynamics ax performance tuning
Dynamics ax performance tuning
OutsourceAX
 
Sql server performance tuning
Sql server performance tuning
ngupt28
 
Sql server performance tuning
Sql server performance tuning
Jugal Shah
 
Dmv's & Performance Monitor in SQL Server
Dmv's & Performance Monitor in SQL Server
Zeba Ansari
 
Geek Sync | Performance Tune Like an MVP
Geek Sync | Performance Tune Like an MVP
IDERA Software
 
Sql server lesson13
Sql server lesson13
Ala Qunaibi
 
Discovering the Plan Cache (#SQLSat 206)
Discovering the Plan Cache (#SQLSat 206)
Jason Strate
 
Optimising Queries - Series 1 Query Optimiser Architecture
Optimising Queries - Series 1 Query Optimiser Architecture
DAGEOP LTD
 
Tips and Tricks for SAP Sybase ASE
Tips and Tricks for SAP Sybase ASE
Don Brizendine
 
Troubleshooting SQL Server
Troubleshooting SQL Server
Stephen Rose
 
Configuring Sage 500 for Performance
Configuring Sage 500 for Performance
RKLeSolutions
 
SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1
sqlserver.co.il
 
Optimizing Application Performance - 2022.pptx
Optimizing Application Performance - 2022.pptx
JasonTuran2
 
Why & how to optimize sql server for performance from design to query
Why & how to optimize sql server for performance from design to query
Antonios Chatzipavlis
 
Objective SQL Server Performance
Objective SQL Server Performance
David Klee
 
Dba lounge-sql server-performance-troubleshooting
Dba lounge-sql server-performance-troubleshooting
Dan Andrei Stefan
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi Vončina
SPC Adriatics
 
Ad

More from SolarWinds (20)

SolarWinds Government and Education Webinar: Greatest SolarWinds Features I N...
SolarWinds Government and Education Webinar: Greatest SolarWinds Features I N...
SolarWinds
 
SolarWinds Government and Education Webinar: Gaps Exist in Your Monitoring In...
SolarWinds Government and Education Webinar: Gaps Exist in Your Monitoring In...
SolarWinds
 
Government Webinar: Alerting and Reporting in the Age of Observability
Government Webinar: Alerting and Reporting in the Age of Observability
SolarWinds
 
Government and Education Webinar: Full Stack Observability
Government and Education Webinar: Full Stack Observability
SolarWinds
 
Government and Education Webinar: Public Sector Cybersecurity Survey - What I...
Government and Education Webinar: Public Sector Cybersecurity Survey - What I...
SolarWinds
 
Becoming Secure By Design: Questions You Should Ask Your Software Vendors
Becoming Secure By Design: Questions You Should Ask Your Software Vendors
SolarWinds
 
Government and Education Webinar: Real-Time Mission, CIO, and Command Dashboards
Government and Education Webinar: Real-Time Mission, CIO, and Command Dashboards
SolarWinds
 
Government and Education Webinar: Simplify Your Database Performance Manageme...
Government and Education Webinar: Simplify Your Database Performance Manageme...
SolarWinds
 
Government and Education Webinar: SolarWinds Orion Platform: Audit and Stream...
Government and Education Webinar: SolarWinds Orion Platform: Audit and Stream...
SolarWinds
 
Government and Education Webinar: Leverage Automation to Improve IT Operations
Government and Education Webinar: Leverage Automation to Improve IT Operations
SolarWinds
 
Government and Education Webinar: Improving Application Performance
Government and Education Webinar: Improving Application Performance
SolarWinds
 
Government and Education: IT Tools to Support Your Hybrid Workforce
Government and Education: IT Tools to Support Your Hybrid Workforce
SolarWinds
 
Government and Education Webinar: There's More Than One Way to Monitor SQL Da...
Government and Education Webinar: There's More Than One Way to Monitor SQL Da...
SolarWinds
 
SolarWinds Government and Education Webinar: Virtual Technology Briefing 08.0...
SolarWinds Government and Education Webinar: Virtual Technology Briefing 08.0...
SolarWinds
 
Government and Education Webinar: Zero-Trust Panel Discussion
Government and Education Webinar: Zero-Trust Panel Discussion
SolarWinds
 
Government and Education: Leveraging The SolarWinds Orion Assistance Program ...
Government and Education: Leveraging The SolarWinds Orion Assistance Program ...
SolarWinds
 
Government and Education Webinar: SQL Server—Advanced Performance Tuning
Government and Education Webinar: SQL Server—Advanced Performance Tuning
SolarWinds
 
Government and Education Webinar: Recovering IP Addresses on Your Network
Government and Education Webinar: Recovering IP Addresses on Your Network
SolarWinds
 
Government and Education Webinar: Optimize Performance With Advanced Host Mon...
Government and Education Webinar: Optimize Performance With Advanced Host Mon...
SolarWinds
 
Government and Education Webinar: Conquering Remote Work IT Challenges
Government and Education Webinar: Conquering Remote Work IT Challenges
SolarWinds
 
SolarWinds Government and Education Webinar: Greatest SolarWinds Features I N...
SolarWinds Government and Education Webinar: Greatest SolarWinds Features I N...
SolarWinds
 
SolarWinds Government and Education Webinar: Gaps Exist in Your Monitoring In...
SolarWinds Government and Education Webinar: Gaps Exist in Your Monitoring In...
SolarWinds
 
Government Webinar: Alerting and Reporting in the Age of Observability
Government Webinar: Alerting and Reporting in the Age of Observability
SolarWinds
 
Government and Education Webinar: Full Stack Observability
Government and Education Webinar: Full Stack Observability
SolarWinds
 
Government and Education Webinar: Public Sector Cybersecurity Survey - What I...
Government and Education Webinar: Public Sector Cybersecurity Survey - What I...
SolarWinds
 
Becoming Secure By Design: Questions You Should Ask Your Software Vendors
Becoming Secure By Design: Questions You Should Ask Your Software Vendors
SolarWinds
 
Government and Education Webinar: Real-Time Mission, CIO, and Command Dashboards
Government and Education Webinar: Real-Time Mission, CIO, and Command Dashboards
SolarWinds
 
Government and Education Webinar: Simplify Your Database Performance Manageme...
Government and Education Webinar: Simplify Your Database Performance Manageme...
SolarWinds
 
Government and Education Webinar: SolarWinds Orion Platform: Audit and Stream...
Government and Education Webinar: SolarWinds Orion Platform: Audit and Stream...
SolarWinds
 
Government and Education Webinar: Leverage Automation to Improve IT Operations
Government and Education Webinar: Leverage Automation to Improve IT Operations
SolarWinds
 
Government and Education Webinar: Improving Application Performance
Government and Education Webinar: Improving Application Performance
SolarWinds
 
Government and Education: IT Tools to Support Your Hybrid Workforce
Government and Education: IT Tools to Support Your Hybrid Workforce
SolarWinds
 
Government and Education Webinar: There's More Than One Way to Monitor SQL Da...
Government and Education Webinar: There's More Than One Way to Monitor SQL Da...
SolarWinds
 
SolarWinds Government and Education Webinar: Virtual Technology Briefing 08.0...
SolarWinds Government and Education Webinar: Virtual Technology Briefing 08.0...
SolarWinds
 
Government and Education Webinar: Zero-Trust Panel Discussion
Government and Education Webinar: Zero-Trust Panel Discussion
SolarWinds
 
Government and Education: Leveraging The SolarWinds Orion Assistance Program ...
Government and Education: Leveraging The SolarWinds Orion Assistance Program ...
SolarWinds
 
Government and Education Webinar: SQL Server—Advanced Performance Tuning
Government and Education Webinar: SQL Server—Advanced Performance Tuning
SolarWinds
 
Government and Education Webinar: Recovering IP Addresses on Your Network
Government and Education Webinar: Recovering IP Addresses on Your Network
SolarWinds
 
Government and Education Webinar: Optimize Performance With Advanced Host Mon...
Government and Education Webinar: Optimize Performance With Advanced Host Mon...
SolarWinds
 
Government and Education Webinar: Conquering Remote Work IT Challenges
Government and Education Webinar: Conquering Remote Work IT Challenges
SolarWinds
 

Recently uploaded (20)

“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
Edge AI and Vision Alliance
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
Edge AI and Vision Alliance
 
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
Safe Software
 
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
Safe Software
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
Safe Software
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Safe Software
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
Improving Data Integrity: Synchronization between EAM and ArcGIS Utility Netw...
Improving Data Integrity: Synchronization between EAM and ArcGIS Utility Netw...
Safe Software
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
“From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
Edge AI and Vision Alliance
 
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
Edge AI and Vision Alliance
 
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
No-Code Workflows for CAD & 3D Data: Scaling AI-Driven Infrastructure
Safe Software
 
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
Safe Software
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
The Future of Data, AI, and AR: Innovation Inspired by You.pdf
Safe Software
 
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Wenn alles versagt - IBM Tape schützt, was zählt! Und besonders mit dem neust...
Josef Weingand
 
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Safe Software
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
Artificial Intelligence in the Nonprofit Boardroom.pdf
Artificial Intelligence in the Nonprofit Boardroom.pdf
OnBoard
 
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
 
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
 
Improving Data Integrity: Synchronization between EAM and ArcGIS Utility Netw...
Improving Data Integrity: Synchronization between EAM and ArcGIS Utility Netw...
Safe Software
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 

Why new hardware may not make SQL Server faster

  • 1. Throwing Hardware at SQL Server Performance problems? Think again, there’s a better way! SQL Server Performance
  • 2. Approaches to Performance Improvement » Buy bigger, faster hardware  Sometimes the only answer  Often the easy way out  Can be high risk » New SQL Server features  May help if your problem is one they address » Make better use of existing resources  Start by understanding the issues  Gather and analyze information  Make informed decisions  Be proactive
  • 3. Performance information » Many sources  Dynamic Management views  System Tables  WMI  Performance counters » Needs to be stored and correlated  History  Baselines  Microsoft tools • Often a “science project”  Commercial tools • History and correlation sometimes built in • Help with analysis and resolution • Database Performance Advisor (DPA) does both
  • 4. Hardware Settings » Power Saver Mode  Defaults to Balanced  SQL Server works better on High Power  https://support.microsoft.com/kb/2207548?wa=wsignin1.0 » HBA Queue Depth  Defaults to 16 or 32  SQL Server needs 64 or 128
  • 5. Storage Issues » Data, Logs, and Tempdb on separate volumes » RAID 10 for faster writes than RAID 5 » MPIO – load balanced » Compression reduces IO by increasing rows per page » Table and index scans increase IO  Indexes  Query tuning » Disk Performance  Seconds Per Read - < 10 ms  Seconds Per Write < 5 ms
  • 6. Parallelism » Limits on speed of a core » Adding cores to improve performance  Multiple queries in parallel  Multiple cores for a single query • Scan in parallel • Sort/filter in parallel  Hyper-threading works in current versions » CXPACKET wait type indicates parallelism is being used  Not necessarily a bad thing  Many large queries can produce high CXPACKET waits
  • 7. MAXDOP » Limits the number of schedulers for a query  Set at instance level or query hint  Defaults to 0 – all schedulers on system  Too much parallelism can be bad • Competition for processor resources • Splitting and combining overhead • Crossing NUMA boundaries • Servers may have > 64 cores which is more than most queries can use effectively  MAXDOP <= NUMA node size  MAXDOP = 8 good place to start
  • 8. Cost Threshold for Parallelism » Optimizer creates serial plan first » If the cost of the serial plan is greater than the Cost Threshold for Parallelism it creates a parallel plan » The lowest cost plan is used » Cost Threshold default is 5 » With modern servers, 5 is much to small  Waste time and processor cycles computing parallel plans  May use parallel plan for very small queries » Start with 25-30 and if it helps try 40 or 50
  • 9. Buffer Cache » Cache pages so query engine doesn’t have to go to disk » Low buffer cache = increased IO » Measure memory stress  Page Life Expectancy (PLE) – estimated time page will stay in memory • Larger the better • Look for sudden drops in PLE • Large table scans • Lots of IO to reload cache  Lazy Writes • Short on memory – dirty pages flushed to disk between checkpoints » Fix buffer cache issues  Reduce table scans  Increase memory
  • 10. Plan Cache » Compiled plans are stored in cache for possible reuse  Lookup by hash of query text • Must be exact match  Plan not reused are gradually aged out of cache » Single use plans  Usually non-parameterized queries  Waste cache space – slow search for plans  OPTIMIZE FOR ADHOC QUERIES instance parameter • Caches queries on second use • Saves cache space • Use routinely  FORCED PARAMETERIZATION • Makes optimizer more aggressive about parameterizing queries • Use only after testing • Only when rewriting queries isn’t possible
  • 11. Table and Index Scans » Query needs to access all rows  Aggregates  Reports » Scan is the best way to execute the query  Not many rows  Most of the rows required » No index on the column » There is an index but it can’t be used  Implicit datatype conversions  Scalar functions
  • 12. Wait Analysis » SQL tasks are either executing or waiting » Understanding what tasks are waiting for can help you find performance issues » DPA offers several ways to analyze waits  System wide waits – what does the system wait for  Waits by query – what waits make up the response time of a query » DPA helps analyze query performance  Which queries take the most time  Which queries run most often  Which queries use the most resources » DPA analyzes tends  Resource usage changing  Queries running slower
  • 13. Database Performance Analyzer Demo Janis Griffin » Database Performance Evangelist » SolarWinds – The Power to Manage IT
  • 14. First steps » Check Power Saver and HBA settings » Implement data compression » Set MAXDOP to 9 and Cost Threshold for Parallelism to 30 » SET OPTIMIZE FOR ADHOC QUERIES option » Set up monitoring for (at least)  Tables Scans  PLE  Lazy Writes  Seconds per Write  Seconds per Read » Check for missing indexes and tune most expensive queries
  • 15. Summary » Investing in hardware without first understanding performance issues is a high risk option » Gathering performance information is key to understanding and resolving performance issues » Baselines and history are important to performance analysis » Wait analysis can help diagnose performance issues
  • 16. © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. Resolve performance issues quickly—free trial » Try Database Performance Analyzer FREE for 14 days » Improve root cause of slow performance  Quickly identify root cause of issues that impact end-user response time  See historical trends over days, months, and years  Understand impact of VMware® performance  Agentless architecture with no dependence on Oracle Packs, installs in minutes www.solarwinds.com/dpa-download/
  • 17. Questions? © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED.
  • 18. © 2014 SOLARWINDS WORLDWIDE, LLC. ALL RIGHTS RESERVED. Thank You! The SOLARWINDS and SOLARWINDS & Design marks are the exclusive property of SolarWinds Worldwide, LLC, are registered with the U.S. Patent and Trademark Office, and may be registered or pending registration in other countries. All other SolarWinds trademarks, service marks, and logos may be common law marks, registered or pending registration in the United States or in other countries. All other trademarks mentioned herein are used for identification purposes only and may be or are trademarks or registered trademarks of their respective companies.