Fixing Page Life Expectancy Steve Hood Blog: SimpleSQLServer.com.

Slides:



Advertisements
Similar presentations
Advanced Tuning: Unconventional Solutions to Everyday Problems Robert L Davis.
Advertisements

ManageEngine ® SQLDBManager Plus - Product Overview.
ManageEngine ® SQLDBManager Plus - Product Overview.
Key Concepts About Performance Factors Affecting SQL Performance SQL Performance Tuning Methodologies SQL Performance Tuning Tools 1.
Intro to SQL Server Performance Tuning By Robert Biddle.
Performance Dash A free tool from Microsoft that provides some quick real time information about the status of your SQL Servers.
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
Effective Indexes For Beginners. Performance is slow Let’s add another index!
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
Amit Bansal CTO | Peopleware India (unit of eDominer Systems) | |
By Shanna Epstein IS 257 September 16, Cnet.com Provides information, tools, and advice to help customers decide what to buy and how to get the.
Troubleshooting SQL Server Performance: Tips &Tools Amit Khandelwal.
EOH: A Microsoft Partner INTRODUCTION TO EXTENDED EVENTS.
Indexing Fundamentals Steve Hood SimpleSQLServer.com.
Introduction to Utilities for New DBAs Session #332 4/19/2008 Erik Hobbs Introduction to Utilities for New DBAs.
Copyright Sammamish Software Services All rights reserved. 1 Prog 140  SQL Server Performance Monitoring and Tuning.
Common SQL Performance Issues AND HOW TO AVOID OR FIX THEM.
How to kill SQL Server Performance Håkan Winther.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information.
Chris Index Feng Shui Chris
An introduction to Wait Statistics
CygNet Database Service Diagnostics and Performance Tuning
Cleveland SQL Saturday Catch-All or Sometimes Queries
15.1 – Introduction to physical-Query-plan operators
SQL Server Performance Tuning
SQL Server Data Collector From Every Angle
Query Performance Tuning: Start to Finish
Query Tuning without Production Data
Very Large Databases in your future
Query Tuning without Production Data
Query Tuning without Production Data
SQL Server Monitoring Overview
Where to Start, What You Need
The Top 5 SQL Server Mistakes
Simplifying XEvents Management with dbatools
Peeking into the Plan Cache with SQL Server 2008
Introduction to Execution Plans
Dynamics AX Performance
Performance Tuning for Mere Mortals Part II
Cardinality Estimator 2014/2016
Scaling and Performance
Real world In-Memory OLTP
Azure SQL Data Warehouse Performance Tuning
SQL Server 2008 Systems Management
Fixing Page Life Expectancy
SQL Server 2016 Query Data Store
Steve Hood SimpleSQLServer.com
Very large Databases in your future Eric Peterson.
Performance Tuning for Mere Mortals Part II
SQL Server Query Plans Journeyman and Beyond
The 5 Hidden Performance Gems
Tools.
Steve Hood Blog: SimpleSQLServer.com
Targeting Wait Statistics with Extended Events
Troubleshooting Techniques(*)
SQL Server Performance Tuning
Moving from SQL Profiler to xEvents
Tools.
Recommending Materialized Views and Indexes with the IBM DB2 Design Advisor (Automating Physical Database Design) Jarek Gryz.
Kathi Kellenberger Kellenberger Consulting LLC
Introduction to Execution Plans
Kris Hokanson That’s bad mmmkay! …Or, how to know when your SQL Server isn’t working as well as it could.
Overview of Query Evaluation
Are you following SQL Server Development Best Practices?
Introduction to Execution Plans
Sourav Mukherjee Are you following SQL Server Development Best Practices? March 30, 2019 Cincinnati.
The Five Mistakes You are Probably Making with SQL Server
Introduction to Execution Plans
Managing the mystery database
Presentation transcript:

Fixing Page Life Expectancy Steve Hood Blog: SimpleSQLServer.com

What is PLE? Duration in seconds data stays in memory References Monitor PLE in OS Perf CountersPLE in OS Perf Counters

It’s just a counter May always be low on OLAP environments Are you waiting on PAGEIOLATCH_SH? Monitor your Wait Stats Faster disks can help compensate References Monitor your Wait StatsWait Stats

Ideal Value Common advice of PLE > 300 is outdated Cache Size In GB / 4 * 300 Best generic formula References Jonathan Kehayias discusses the plan cache and PLEdiscusses the plan cache and PLE Comment discussion with Brent Ozar is as good at the article Jonathan Kehayias’s free book: Troubleshooting SQL ServerTroubleshooting SQL Server

Increase PLE More memory Query Tuning Query Justification Indexing Changes Data Cleanup

More Memory 64 GB in 2008 and 2012 Standard 128 GB in 2014 Standard Unlimited in Enterprise 768 GB is reasonable per physical box

What DBs are in cache? References Script: CacheSizeByDB

What Indexes are in Cache? References Script: CacheSizeByIndex (in speaker notes)

Finding Queries to Tune Look in the Proc Cache (not 100% reliable) Most Expensive Queries Index Usage in Proc Cache Server-Side Trace or Extended Events

Proc Cache Limitations Data since last compile Can monitor it better than that Only cacheable plans

Most Expensive Queries Uses Proc Cache For PLE focus on Physical Reads References Query Stats Monitoring – know your stats beyond your current cache Query Stats Monitoring Script: Most Expensive Queries (in speaker notes)

Index Usage in Proc Cache Uses Proc Cache Goes along with “What indexes are in cache” Gives Estimated IO cost Gives Seek and Scan Predicates References Script: Index Usage in Proc Cache (in speaker notes) Script: Table Usage in Proc Cache (in speaker notes)

Server-Side Trace or EE Duration over X seconds (5) Reads over X (100,000) References Tracing Introduction – Creating your first Server-Side Trace Tracing Introduction Reading Traces – Querying your Server-Side Trace Reading Traces Erin Stellato Making the Leap from Profiler to Extended EventsMaking the Leap from Profiler to Extended Events

How To Tune Beyond the scope of this presentation Execution Plans – Grant Fritchey Execution Plans Google SARGability BrentOzar.com SQLskills.com

Appropriate Queries? Did this query need to run? …in prod? …during peak hours?

Indexes – Drop Unused Data modifications pull data into cache Index maintenance pulls data into cache References Indexes – Unused and Duplicated

Indexes – Remove Dupes First couple key fields match Two indexes that could almost replace each other References Indexes – Unused and Duplicated

Indexes – Compression Enterprise only Some don’t compress at all Some compress by 90%

Data Cleanup Any data has potential to use cache If you can purge 25% of your data…

Fixing Page Life Expectancy Steve Hood Blog: SimpleSQLServer.com