SQL Server Performance Tuning

Slides:



Advertisements
Similar presentations
DAT 342 Advanced SQL Server Performance and Tuning Bren Newman Program Manager SQL Server Development Microsoft Corporation.
Advertisements

Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
DBI402. SQL Server Specialist, Financial Industry Boston, MA Conference and INETA Speaker Connections, PASS, TechEd, DevTeach, etc. Author SQL Server.
SQL Server Wait Statistics Capture, Report, Analyse Rob Risetto Principal Consultant with StrataDB
Common Mistakes Developers Make By Bryan Oliver SQL Server Mentor at SolidQ.
ManageEngine ® SQLDBManager Plus - Product Overview.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Key Concepts About Performance Factors Affecting SQL Performance SQL Performance Tuning Methodologies SQL Performance Tuning Tools 1.
TEMPDB Capacity Planning. Indexing Advantages – Increases performance – SQL server do not have to search all the rows. – Performance, Concurrency, Required.
Intro to SQL Server Performance Tuning By Robert Biddle.
How to solve a SQL performance problem Paul Zgondea.
Improving Efficiency of I/O Bound Systems More Memory, Better Caching Newer and Faster Disk Drives Set Object Access (SETOBJACC) Reorganize (RGZPFM) w/
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
DONE-08 Sizing and Performance Tuning N-Tier Applications Mike Furgal Performance Manager Progress Software
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
© Dennis Shasha, Alberto Lerner, Philippe Bonnet 2004 DBMS Performance Monitoring.
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
Troubleshooting SQL Server Performance: Tips &Tools Amit Khandelwal.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Presented by Vishy Grandhi.  Lesson 1: AX Overview  Lesson 2: Role based security  Lesson 3: Monitoring  Troubleshooting.
Page 1 Monitoring, Optimization, and Troubleshooting Lecture 10 Hassan Shuja 11/30/2004.
Connect with life Praveen Srivatsa Founder and CEO – AstraSoft.NET Vinod Kumar Technology Evangelist – Databases and BI.
Diagnosing Performance with Wait Statistics Robert L Davis Principal Database
Dave LinkedIn
How to kill SQL Server Performance Håkan Winther.
Strategies for Working with Texas-sized Databases Robert L Davis Database Engineer
Scott Fallen Sales Engineer, SQL Sentry Blog: scottfallen.blogspot.com.
Linkedin: dennisegraham Dennis E Graham Reporting For SQL Health.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
No more waiting. Sponsors About me  Database Technology Specialist  MVP  Blogger  Author 3
This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information.
SQL Server Performance Tuning Starter Kit Randolph West | Born SQL.
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
An introduction to Wait Statistics
You Inherited a Database Now What?
Curacao SQL Saturday June 11, 2016
SQL Server Data Collector From Every Angle
Query Performance Tuning: Start to Finish
Hitting the SQL Server “Go Faster” Button
SQL Server Internals Overview
SQL Server Monitoring Overview
Designing Database Solutions for SQL Server
Summit Nashville /28/2018 8:42 PM
Where to Start, What You Need
Microsoft Dumps Question Answer - Dumps4download
Hustle and Bustle of SQL Pages
The Top 5 SQL Server Mistakes
Parallel Database Maintenance with 24/7 Systems and Huge DBs
Dynamics AX Performance
Troubleshooting SQL Server Basics
Hitting the SQL Server “Go Faster” Button
Performance Tuning for Mere Mortals Part II
Proving Hardware Bottlenecks &
Peter Shore SQL Saturday Cleveland 2016
Statistics: What are they and How do I use them
Performance Tuning for Mere Mortals Part II
TEMPDB – INTERNALS AND USAGE
SQL Server Performance Tuning Nowadays
මොඩියුල විශ්ලේෂණය SQL Server Waits. Tables රැසක් එකට එකතු කිරීම.
Troubleshooting Techniques(*)
It’s TEMPDB Why Should You Care?
You Inherited a Database Now What?
Jean Joseph DBA\DEVELOPER
By Convergence IT Services Pvt. Ltd
Using wait stats to determine why my server is slow
Developing Microsoft SQL Server Databases
Presentation transcript:

SQL Server Performance Tuning

ABOUT ME Aditya Badramraju Twitter: http://twitter.com/@aditya_feb22 Blog: http://adityabadramraju.wordpress.com

Agenda SQL Server Performance Tuning Overview CPU Input/output Memory Conclusion

I want application run in rocket speed Slow Performance !!! U DBA!! I want application run in rocket speed

So How Do I Do Implement Test Tune Troubleshoot/ Get the Victim Monitor Troubleshoot/ Get the Victim Tune Test Implement

Monitoring Analyze Collect Compare

Troubleshoot/Get the victim Identify Measure Dig in to details

Tune Correct it! Optimize it! Change your approach

Test and Implement

Get the victim!! The victim for performance majorly lies in any of these areas CPU IO Memory Temp DB Bottle Necks Poor Indexing ,query writing and maintenance

CPU Check the Task Manager Check Perfmon Counters If SQL Server is responsible for high CPU find the session which is consuming the CPU Dig in to details of the sessions Find the CPU costing queries If the environment is OLTP beware of MAXDOP

IO DMV sys.dm_os_wait_stats is the best thing which says you are at IO crunch Perfmon counters such as Diskreads/Sec, Diskwrites/Sec, IO queue also gives clear picture in this front. When you found IO as culprit Spread the data into different drives Check the queries which costs high Logical IO Check for DISK Defragmentation and Index Fragmentation

Memory We can get the very first glance of it through Task Manager Perfmon Counters like Page Life Expectancy, Buffer Cache Hit Ratio, Memory Grants Pending, Free Pages Page file configuration on the server Adhoc Queries Poor Query Writing Incorrect Memory Settings Lock of Memory Pages in 32 Bit System.

TEMPDB Bottle Necks Its used more than What we normally think It is responsible for all Sorts, Hashes, DBCC, Index Rebuilds and more. The bottle necks of TEMPDB are due to Incorrect tempdb configuration Incorrect usage of temporary variables Unnecessary Sorts on major tables etc.

Poor Indexing and maintenance The above said problems are inter related and basic problems will be Poor Query writing like using joins(Not appropriately of course ),Cursors, triggers etc. Having huge index fragmentation and huge page density No update for statistics And lastly not having a Dedicated DBA (ATLAST I HAVE SAID THAT )!!!!

Acknowledgements Paul Randal –SQL SKILLS Adam Machanic-Microsoft SQL Server Internals by Kalen Pinal Dave –SQL Authority SQL PASS and all SQL Organizations

LAST WORD I like to MAD and U??? ……