Optimizing SQL Server Performance in a Virtual Environment

Slides:



Advertisements
Similar presentations
Denny Cherry twitter.com/mrdenny.
Advertisements

© 2010 Quest Software, Inc. ALL RIGHTS RESERVED Quest vRanger / Architecture.
Virtual Machine Technology Dr. Gregor von Laszewski Dr. Lizhe Wang.
What’s New: Windows Server 2012 R2 Tim Vander Kooi Systems Architect
© 2010 VMware Inc. All rights reserved Confidential Performance Tuning for Windows Guest OS IT Pro Camp Presented by: Matthew Mitchell.
VSphere vs. Hyper-V Metron Performance Showdown. Objectives Architecture Available metrics Challenges in virtual environments Test environment and methods.
SQL Server on VMware Jonathan Kehayias (MCTS, MCITP) SQL Database Administrator Tampa, FL.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 11 Windows Server 2008 Virtualization.
Denny Cherry Senior Database Administrator / Architect Awareness Technologies MVP, MCSA, MCDBA, MCTS, MCITP.
Denny Cherry Manager of Information Systems MVP, MCSA, MCDBA, MCTS, MCITP.
Denny Cherry Manager of Information Systems MVP, MCSA, MCDBA, MCTS, MCITP.
Denny Cherry MVP, MCSA, MCDBA, MCTS, MCITP.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 2: Managing Hardware Devices.
Denny Cherry twitter.com/mrdenny.
Virtualization Infrastructure Administration Cluster Jakub Yaghob.
Implementing Failover Clustering with Hyper-V
SQL SERVER DAYS 2011 Optimizing SQL Server Performance in a Virtual Environment Denny Cherry twitter.com/mrdenny.
VMware vCenter Server Module 4.
1© Copyright 2013 EMC Corporation. All rights reserved. EMC XtremSW Cache Performance. Intelligence. Protection.
1 © 2001, Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID 8.6(2) OVAs UCBU Platform Team.
Tales from the Trenches About
1 Some Context for This Session…  Performance historically a concern for virtualized applications  By 2009, VMware (through vSphere) and hardware vendors.
Sponsored by: PASS Summit 2010 Preview Storage for the DBA Denny Cherry MVP, MCSA, MCDBA, MCTS, MCITP.
Denny Cherry Senior Database Administrator / Architect MVP, MCSA, MCDBA, MCTS, MCITP.

SAIGONTECH COPPERATIVE EDUCATION NETWORKING Spring 2010 Seminar #1 VIRTUALIZATION EVERYWHERE.
SAIGONTECH COPPERATIVE EDUCATION NETWORKING Spring 2009 Seminar #1 VIRTUALIZATION EVERYWHERE.
Appendix B Planning a Virtualization Strategy for Exchange Server 2010.
Improving Disk Latency and Throughput with VMware Presented by Raxco Software, Inc. March 11, 2011.
Session objectives Discuss whether or not virtualization makes sense for Exchange 2013 Describe supportability of virtualization features Explain sizing.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
VMWare Troubleshooting Basics Lewis Talley. Memory ESXi incorporates a number of memory management techniques such as (transparent page sharing, Ballooning,
Accelerator for VMware backup
1 | SharePoint Saturday Calgary – 31 MAY 2014 About Me.
Full and Para Virtualization
1 Best Practices for Monitoring Databases on VMware Dean Richards Senior DBA, Confio Software.
REMINDER Check in on the COLLABORATE mobile app Best Practices for Oracle on VMware - Deep Dive Darryl Smith Chief Database Architect Distinguished Engineer.
Course 03 Basic Concepts assist. eng. Jánó Rajmond, PhD
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
1 SQL Server on VMware? Rob Mandeville Senior DBA, Confio Software 1 Virtualizing Our Environment: Lessons Learned Rob Mandeville.
Optimizing SQL Server Performance in a Virtual Environment Denny Cherry twitter.com/mrdenny.
Database Administration for the Non-DBA Denny Cherry twitter.com/mrdenny.
VIRTUAL MACHINE – VMWARE. VIRTUAL MACHINE (VM) What is a VM? – A virtual machine (VM) is a software implementation of a computing environment in which.
Windows Server 2003 { First Steps and Administration} Benedikt Riedel MCSE + Messaging
Virtualization Fundamentals for DBAs Joey D’Antoni February 3, 2015 DBA Fundamentals VC.
1 SQL Server on VMware? Rob Mandeville Senior DBA, Confio Software.
PHD Virtual Technologies “Reader’s Choice” Preferred product.
Virtualization for Cloud Computing
OnCommand Insight Host File System Utilization
Don’t Panic, DBAs! Databases on Vmware made easy Janis Griffin Senior DBA, Confio Software 1.
Hitting the SQL Server “Go Faster” Button
Windows Azure Migrating SQL Server Workloads
Virtualization, Cloud Computing and Big Data
Virtualization overview
Denny Cherry twitter.com/mrdenny
Xen Summit Spring 2007 Platform Virtualization with XenEnterprise
Database Administration for the Non-DBA
Migration Strategies – Business Desktop Deployment (BDD) Overview
Storage Team (Controller Performance) Aggregate Utilization
Key Metrics and Practices for Monitoring Virtualization Platforms
Hitting the SQL Server “Go Faster” Button
20409A 7: Installing and Configuring System Center 2012 R2 Virtual Machine Manager Module 7 Installing and Configuring System Center 2012 R2 Virtual.
Outline Virtualization Cloud Computing Microsoft Azure Platform
HC Hyper-V Module GUI Portal VPS Templates Web Console
SQL Server performance tuning on Azure IaaS
Specialized Cloud Architectures
Windows Virtual PC / Hyper-V
Optimizing SQL Server Performance in a Virtual Environment
Successfully Virtualizing SQL Server on vSphere: Straight from the Source M2 technical Deck ( ) Randy Knight SQL Solutions Group Founder.
Microsoft Virtual Academy
Presentation transcript:

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

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

Topics of Discussion Diagnosing Performance Problems Balloon Memory Drivers Memory Deduplication Options Storage Configuration Options

Tuning Differences in T-SQL Nope Nothing Nope Never Nada It’s all the same! No Zero Zip

Diagnosing Performance Problems Check Host and Guest CPU numbers Check Host for CPU thrashing Check Host and Guest for Disk IO latency For Thrashing PerfMon in Hyper-V esxtop in v-Sphere %USED needs to be under 75% Use SCVMM or vCenter to look at historical trends for these numbers The storage is a very common place to see performance problems. If SQL Server is reporting slow IO via the DMVs or via the ERRORLOG file check IO latency numbers at the host and from the storage array. Look into auto-teiring options within the storage array to move hot portions of the disk to faster storage. Another option would be to use a dedicated LUN for the database instead of a shared LUN. The dedicated LUN could be connected to the guest via a Pass Through Disk in Hyper-V or a Raw Device Mapping in vSphere/ESX or via iSCSI directly to the guest. If the Hypervisor host has limited bandwidth to the storage array, using a single iSCSI connection over a single 1 Gig-E network connection for example additional network links / faster network links may be needed. Moving from iSCSI to fiber channel may be required do to the lower latencys of fiber channel compared to iSCSI. If iSCSI is being used review the network configuration to ensure that there are as few network devices between the server and the storage array as possible as each additional network device adds additional 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 Available in ESX 3.0+ Available in Windows Server 2008 R2 SP1+ Disabling the balloon drivers can cause memory pressure at the host level, which would be masked from the guest and cause performance issues.

Memory Reservations - VMware Forces the memory to be available for the guest Recommended that it be set to a portion of the allocated memory For a sample machine with 64 Gigs of RAM, I’d recommend setting the memory reservation to 34-36 Gigs (32 Gigs for SQL and 2-4 Gigs for Windows). This ensures that SQL will have enough memory in the event of a major system failure, to continue to function.

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 Native in ESX since 3.0 or older Introduced in Hyper-V in Server 2008 R2 SP1 Talk about what this process does, and why it’s so cool for other kinds of servers. Talk about why it is so useless for SQL Servers.

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 Spend some time talking about FAST / Compellent automatic tier adjusting technology FAST is available on CX4 running FLARE 34? Or newer DMX build FAST is available on all VNX and VPLEX arrays (for a cost) Also available on X-IO, 3PAR, etc. Not all automatic tiering platforms are the same. Some more data faster than others from one tier to another. Some more data is bigger slices than others. EMC for example started by moving data in 8 Gig slides, but now uses 1 Gig slices. If you are running an older version of the EMC software upgrading may be worth it to remove the size of the slices so that the data can be moved between the tiers faster and with greater granualary.

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 Data LUNs can’t be deduped very well OS LUNs can be Most array’s do not support this as it is very CPU intensive Don’t forget to account for loss of deduplication as service packs and hot fixes are installed making files on different servers different

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

Monitor, Monitor, Monitor Did I mention that you need to monitor Watch all levels of the environment SQL Server Guest Hypervisor Host Storage Use SCVMM or vCenter for long term trending Trust nothing If your storage vendor charges extra for the monitoring tool, pay for it. It is worth the cost Correlate Numbers Together

Some Perfmon Counters to Monitor Reads & Writes / Sec Seconds / Read & Write Disk Queue Page Life Expectancy System Processor Queue VM Disk (VMware) VM Memory (VMware)

Thanks to our sponsors

Denny Cherry mrdenny@dcac.co www.dcac.co twitter.com/mrdenny

Thank for attending Singapore SQLSaturday#646!