Solved

VMWare, number of vCPU

Posted on 2012-03-17
3
468 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 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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 117
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…

705 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now