170 likes | 275 Views
DBI317. Optimizing SQL Server Performance in a Virtual Environment. Denny Cherry Independent Consultant www.mrdenny.com. www.mrdenny.com. mrdenny@mrdenny.com. @mrdenny. Denny Cherry. Topics of Discussion. Diagnosing Performance Problems Balloon Memory Drivers
E N D
DBI317 Optimizing SQL Server Performance in a Virtual Environment Denny Cherry Independent Consultant www.mrdenny.com
www.mrdenny.com mrdenny@mrdenny.com @mrdenny Denny Cherry
Topics of Discussion • Diagnosing Performance Problems • Balloon Memory Drivers • Memory Deduplication Options • Storage Configuration Options
Diagnosing Performance Problems • Check Host and Guest CPU numbers • Check Host for CPU thrashing • Check Host and Guest for Disk IO latency
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
Memory Reservations • Forces the memory to be available for the guest • Recommended that it be set to a portion of the allocated memory
Memory Reservations • Forces the memory to be available for the guest • Recommended that it be set to a portion of the allocated memory
Memory DeduplicationOptions • Great for OS memory • Doesn’t work at all for SQL Server • Unless… multiple SQL Servers have the same pages in cache
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
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
Monitor, Monitor, Monitor • Did I mention that you need to monitor • Watch all levels of the environment • SQL Server • Guest • Hypervisor • Host • Storage
Related Content • Breakout Sessions (VIR401, VIR308, VIR 309, DBI313, DBI312) Hands-on Labs (DBI12-HOL, DBI11-HOL) Product Demo Stations (demo station title and location) MCSE SQL Server 2012 Find Me Later At the SQL Server Booth
DBI Track Resources @sqlserver @teched_europe #msTechEd SQL Server 2012 Eval Copy Hands-On Labs Get Certified! mva Microsoft Virtual Academy
Resources Learning TechNet • Connect. Share. Discuss. • Microsoft Certification & Training Resources http://europe.msteched.com www.microsoft.com/learning • Resources for IT Professionals • Resources for Developers http://microsoft.com/technet http://microsoft.com/msdn
Evaluations Submit your evals online http://europe.msteched.com/sessions
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.