Advertisement

07.15.2008 at 10:37PM PDT, ID: 23568579
[x]
Attachment Details

Why is a SQL 2005 slower in VM than on the host physcal machine?

Asked by gateguard in SQL Server 2005, VMware

I have an application that does a large number of inserts into a SQL 2005 database.

If I run that application against a SQL 2005 database installed in the host OS of a Dell 2950, it takes about 3 minutes to run.

If I run the exact same application against a SQL 2005 database installed on a VM  hosted on the same Dell 2950, it takes about 8 minutes to run.

The difference is the Disk Queue Length.  

When running against the database on the physical machine, the Disk Queue Length on the 2950 host OS remains pretty close to zero.

When running against the database on the VM, the Disk Queue Length on the 2950 host OS goes significantly higher.

Same underlying physical hardware, same application performing the same operations against an identical database and yet much different performance depending on whether  the database is in a VM or not in a VM.

The base operating system of the host machine is Windows Server 2003 Enterprise.  The host machine has 16gb of ram.

The guest OS is also Windows Server 2003 Enterprise with 4 gb of ram.

In both cases I set the available memory in SQL Server to 3gb of ram.

In both cases, SQL Server only uses 1.9gb of ram.

Ram is not the bottleneck or the issue.  Neither is CPU usage.  In both cases, CPU usage is about 25% throughout the test.

The only thing that changes is Disk Queue Length, zero if not using a VM, signficantly greater than zero if using a VM.

Memory, CPU usage and Disk Queue Length all being measured on the host OS in both cases.

Is there a way to get the same performance from a SQL Server running on a VM that I can get from a SQL Server running on the host?

Thanks.


 Start Free Trial
[+][-]07.15.2008 at 10:42PM PDT, ID: 22013459

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, VMware
Sign Up Now!
Solution Provided By: dibbz
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.15.2008 at 10:48PM PDT, ID: 22013472

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.15.2008 at 11:11PM PDT, ID: 22013550

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.15.2008 at 11:21PM PDT, ID: 22013590

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628