Enterprise TechSQLSQL Server Performance Tuning in a Virtual Environment February 23, 20164513 views0Share Table of ContentsNote: If you buy something from our links, we might earn a commission. See our disclosure statement. SQL Server Performance Tuning in a Virtual EnvironmentGuidance for Optimizing SQL Server in Hyper-VCPU Affinity CPU Utilization vs. ThroughputIO Performance: Native vs. VMVHDs vs. Passthrough:: PerformanceTotal Read IO’s vs. Latency SQL Server Performance Tuning in a Virtual EnvironmentI have already spoken about SQL Server monitoring, SQL I/O best practices, and general SQL performance best practices. In this post, I am going to talk about SQL Server Performance Tuning in a Virtual Environment.Guidance for Optimizing SQL Server in Hyper-VRunning SQL Server workloads within Hyper-V guest VM’s is a definitely a supported and a viable option for a production environment, with the assumption that limitations of a Guest VM have met the performance requirements of the customer workload.Hyper-V guest VMs are limited to a maximum of 4 virtual CPU’s (limit of 2 virtual CPU’s on Windows 2003 guest VMs). If the workloads are CPU bound, consider increasing the virtual CPUs or physical server alternatives.When compared against native the same throughput can be achieved within a guest VM at a cost of slightly increased CPU utilizationAssuming comparable hardware resources, proper hardware sizing is critical to SQL Server performance.Ensure that cumulative physical CPU resources on a server are adequate to meet the needs the guest VMs.Test/Monitor your workloadsImportant to scale the performance to the total workload required of each VM(s).I/O performance impact is minimal from VM when proper sizing and configuration is performed on the storage tier. Recommended to use Passthrough or fixed VHD.Hyper-V IO load balance improves performance at the storage tier.In scenarios, where you over-commit the CPU resources, we have observed more CPU overhead to manage the additional logical CPU’s.In the case of a Network Latency, workload utilizing heavy network resources may see the more CPU overhead and performance impact. Network bottlenecked workload could see lower throughputCPU AffinityNot supported by Hyper-VSQL CPU Affinity has no practical effect on virtual instanceMemory allocation is static for VMAllocate enough memory for your workload CPU Utilization vs. ThroughputSame throughput attainable, however, there is more CPU overhead with hyper-v enabled or when running SQL Server within a VM.IO Performance: Native vs. VMVHDs vs. Passthrough:: PerformanceTotal Read IO’s vs. Latency VHD’s on Shared Storage vs. Dedicated Spindles using Passthrough DisksMeasuring average reads per second vs. latencyVHDs on common disks has slight latency overhead and less throughputGraph bars = Reads/secLines = Avg. Disk/sec Read (.001 = 1 ms)I hope, this gives you a good idea about VM performance for running SQL Server Workloads. Affiliate Disclosure: Faceofit.com is a participant in the Amazon Services LLC Associates Program. As an Amazon Associate we earn from qualifying purchases. Share What's your reaction? Excited 0 Happy 0 In Love 0 Not Sure 0 Silly 0
Enterprise TechList of the Best Threadripper Pro Workstations – W-3100 Xeon W-3200 & W-1200 Alternatives By IGMay 25, 2021
Enterprise TechList of the Best HPTX Cases – Huge PC Cases for Large BuildsThe computer cases have been one of the essential aspects when it comes to enjoying ...
AzureBest Industrial IoT Routers & Gateways For AWS and Azure IoT ServicesIn this article, we are going to list out the Best Industrial IoT Routers for professional ...
Enterprise TechWhat Is A DataCenter Power Distribution Unit (pdu) Server Rack CabinetsNo matter whether you call it a server closet or server room or a cabinet, ...
Storage SystemsWD SE vs WD Red Pro Specifications Comparison – Enterprise Class NASThe HDDs or the Hard Disk drives are slowly moving into oblivion with the advancements ...