Vmware CPU - how to work out Vcpu per core

Posted on 2012-09-21
Last Modified: 2012-10-14
I am so confused as to how many machines you can have per core on a esxi host.

For example: I was under the impression that if you have a 4 core Xeon processor with hyperthreading that you would be able to handle 8 VM's (because you have 8 logicial CPU's)? before you would create a round house effect where the vm's would 'que' for CPU access.

The above example i found in a blog - would that be incorrect?

But reading this:

Hancocka is running 48 machines on 4 cores?

Is there something that i am missing?

All we are looking to run on our host is VDI's that are assigned 1vCPU.
Question by:Kenzii
    LVL 4

    Expert Comment

    Hello Kenzii,

    You can have more vCPUs than physical CPU but that is not best practice in production environment.

    More about that on link below

    Best Regards,
    LVL 14

    Accepted Solution

    VMware and all type 1 hypervisors use scheduling to handle access to physical resources so yes, you can allocate a single CPU core to multiple vCPUs.

    you may need to take some care for VDI though, read the blog below for some more information on scheduling for VDI.
    LVL 23

    Expert Comment

    by:Nagendra Pratap Singh
    VMware and others all use the round house thing.

    Most VMs are idle at least for some time and at that moment don't participate in queues etc.

    You can have 20 VMs running on a single Xeon box.
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    not really, because you can have as a rule of thumb 5-6 VMs per physical core.

    and this is because of the Hypervisor clever CPU scheduler, which switches CPU cycles/time between VMs.

    and as you've quote me, we also run between 80-100 VDI Workstations on a Dell R810 128GB 24 Cores.

    This is less than are normal 5-6 VMs, because these are usually servers, that are idle for most of the time, compared to Desktops in use by Students every timetabled hour, which are busier.

    Author Comment

    So this is how we have things setup at the moment:

    all servers reside on a seperate box. So idleing will generally occur on this.

    Our main box that we are looking to use for VDI boxes. 16GB RAM Xeon E31230 3.20Ghz

    4 VDI's on this box with 2GB RAM each and 1vCPU.

    Looking into this it appears as soon as we play a video through the VDI that will use flash redirection it hammers all VDI's on the server. But CPU % sits around 25%.

    We use quest vWorkspace which provisions the VDI's and then provides the connection.

    Our internet line is 100MB down. 10mbs UP. which with 4 machines connecting to the internet does not seem alot.

    But sounds like this is not going to a CPU problem after all.
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    Flash does cause High CPU utilisation.

    A Dual Processor Server is probably better here, and more RAM in the Host.

    Because the scheduler can allocate cores across multiple physical processors, rather than just a single.
    LVL 4

    Expert Comment

    Flash player in VDI works slow.

    You can find similar questions on the internet.

    Look at Flash acceleration :

    And VMware View Flash Optimizer plugin

    Hope this will help.


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    RDM Dependencies on VMware 2 33
    Netapp and Vcenter report 9 39
    Basics of NetApp 10 33
    can't find the executable in Simulator 1 25
    When upgrading from 5.5(in this case) to 6.0 and if you have an invalid vfat system(most of the times a coredump partition) upgrade will fail.
    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…
    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.

    746 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

    16 Experts available now in Live!

    Get 1:1 Help Now