Solved

How are CPU's  allocated in ESXi

Posted on 2008-09-29
4
2,504 Views
Last Modified: 2010-04-21
I have a Dual Xebn Quad Core HP DL360 G5
I am running VMware ESXi
If I install a 32bit Windows Server 2003 guest and assign it 1 CPU  how is this CPU mapped to the cores in the hardware ?
Is it just as it says - a virtual CPU - that really then gets processed by all 8 cores ?
Or is it assigned (or can it be) to one core only?

Furthermore, If I install only 32 bit guests - am I 'wasting' the power of the hardware?
Would I get better performance from a 64bit Windows Server 2003 guest than a 32bit guest ?

Regards
Graeme
0
Comment
Question by:touch-base
  • 2
  • 2
4 Comments
 
LVL 18

Expert Comment

by:larstr
ID: 22599694
Graeme,
One vcpu in the guest VM equals one cpu core of the host. When the VM is running, each of the vcpus inside the VM will run on different physical cpu cores. If a VM is allocated a single vcpu, it will be scheduled to run on the physical cpu core with the most available resources.

You can give a single guest a maximum of 4 vcpus, but you should always start with a single vcpu and only give your guest more vcpus if it really needs them.

Giving your guests more than 1 vcpu has some virtualization overhead and might in many cases give not equally good performance as if you give it a single one. Even though ESX as relaxed co-scheduling (compared to strict co-scheduling) you should always start out with a single vcpu.
 
Lars
0
 
LVL 1

Author Comment

by:touch-base
ID: 22602151
OK thanks Lars

In that case - 2 further questions:
with 8 cores - does this mean I can only run up to 8 VM's with single vCPU's ?  

my 32/64 bit query:  If a VM does tie up a single core - should I not be using 64 bit guests instead of 32 bit?  Will a 64bit VM perform better than a 32bit VM ?

Graeme
0
 
LVL 18

Accepted Solution

by:
larstr earned 250 total points
ID: 22603417
Graeme,
Normally you can run 4-8 VMs per cpu core. The bottle neck is normally the disk subsystem not the cpu. WIth 8 cores you should normally be able to run between 32 and 64 single cpu VMs without much problem if you have a good disk subsystem.

A 64 bit VM will not automatically give you better performance than a 32 bit VM as 64 bit VMs tend to have a bit lower disk io. Memory access should however be faster on 64 bit VMs.


Lars
0
 
LVL 1

Author Closing Comment

by:touch-base
ID: 31501269
Thanks again Lars - Graeme
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

810 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