Presentation is loading. Please wait.

Presentation is loading. Please wait.

Optimizing SQL Server Performance in a Virtual Environment Denny Cherry twitter.com/mrdenny.

Similar presentations


Presentation on theme: "Optimizing SQL Server Performance in a Virtual Environment Denny Cherry twitter.com/mrdenny."— Presentation transcript:

1 Optimizing SQL Server Performance in a Virtual Environment Denny Cherry mrdenny@dcac.co www.dcac.co twitter.com/mrdenny

2 About Me  Denny Cherry & Associates Consulting  6 books  Dozens of articles  Microsoft MVP  Microsoft Certified Master  VMware vExpert 2

3 Topics of Discussion Diagnosing Performance ProblemsBalloon Memory DriversMemory Deduplication OptionsStorage Configuration Options

4 Tuning Differences in T-SQL

5 Diagnosing Performance Problems Check Host and Guest CPU numbers Check Host for CPU thrashing Check Host and Guest for Disk IO latency

6 Balloon Memory Drivers Used by host OS to request memory back from the guest OS Prevents host of from paging physical memory to the hosts swap file Should be enabled Lock pages in memory should be disabled, unless enabled for a specific reason

7 Memory Reservations - VMware Forces the memory to be available for the guest Recommended that it be set to a portion of the allocated memory

8 Memory Deduplication Options Great for OS memory Unless… multiple SQL Servers have the same pages in cache Doesn’t work at all for SQL Server

9 Storage Configuration Options IO is the same if the disks are physical or virtual Use automatic tier adjusting technology if possible Keep OS, data, logs, tempdb on separate disks if possible VMDKs or vDisks only have a 1-2% performance penalty

10 Storage Deduplication Can greatly improve overall performance By deduplicating OS virtual disks, we save much less data to the array As less data is written to the array, less OS data is loaded into cache on the array Can increase risk of corruption

11 VMware Paravirtualization Driver Optional Driver for vSphere Virtual Machines Recommended for high IO workloadsConfigured via VM Properties Select SCSI Controller Change Type

12 Monitor, Monitor, Monitor Did I mention that you need to monitorWatch all levels of the environment SQL Server GuestHypervisorHostStorage Correlate Numbers Together

13 Some Perfmon Counters to Monitor Reads & Writes / SecSeconds / Read & WriteDisk QueuePage Life ExpectancySystem Processor QueueVM Disk (VMware)VM Memory (VMware)

14 Thanks to our platinum sponsors : PASS SQL Saturday – Holland - 201514 |

15 Thanks to our silver and gold sponsors : PASS SQL Saturday – Holland - 201515 |

16 Please review the event and sessions  http://www.sqlsaturday.com/434/eventeval.aspx http://www.sqlsaturday.com/434/eventeval.aspx  http://www.sqlsaturday.com/434/sessions/sessionevaluation.aspx http://www.sqlsaturday.com/434/sessions/sessionevaluation.aspx PASS SQL Saturday – Holland - 201516 |

17 Denny Cherry mrdenny@dcac.co www.dcac.co twitter.com/mrdenny Please fill out the survey at http://speakerrate.com/mrdenny.


Download ppt "Optimizing SQL Server Performance in a Virtual Environment Denny Cherry twitter.com/mrdenny."

Similar presentations


Ads by Google