Solved

VMWare, number of vCPU

Posted on 2012-03-17
3
476 Views
Last Modified: 2012-03-18
I know I am a little slow about this, but I have been experimenting, and yes, my VM's perform better with less vCPU, instead of more, especially when they are not running at a high CPU utilization

So from reading the posts and the documentation, what I am gleaning is that the scheduler is swapping the vCPU'sfrequently, and with less vCPU it basically swaps less often,a nd can obtain a higher performance.

Is this correct.  Can anyone enlighten me as to the 'core' reasons less vCPU seems to improve performance.
0
Comment
Question by:Los Angeles1
  • 2
3 Comments
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 37733774
You server applications need to take advantage of vSMP.

How are you testing, are you using Exchange, SQL that can take advantagebof multiprocessors?

Your findings are correct. This is how vSMP works.

Only allocate more CPUs if your servers applications can take advantage.
0
 
LVL 119
ID: 37733775
less time spent waiting for cpu states.
0
 
LVL 38

Expert Comment

by:Aaron Tomosky
ID: 37734011
If you are over allocated more vcpu just makes it worse
Only add vcpu not counting hyperthreading.
It really depends on your boxes and vms how to best set this up. For example, I have a osx vm for Xcode compiling runnin on an Xserve. I gave it 4 vcpu because it can compile multithreaded.
I also have a mailserver that would run at 90% inside the vm with one vcpu which was basically maxing one core of the real CPU. So I gave it two vcpu and now it's running at 30%. Whatever, it's happy. The general rule is as few as possible. Most of my vms are 1vcpu.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VMware Vsphere Database Redundancy 1 44
different settings in vcenter 4 56
An error occurred while consolidating disks Error ESXI 6.5 14 51
Workspace One/ VDIM/ Airwatch 6 22
If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question