My first question is if you have a physical machine that is a dual-core single socket machine (hyperthreading is not enabled), can you have a VM with 4 VCPU's?
My next question is about the balloon driver.
If the limit and reservation of memory are equal and the balloon driver needs to reclaim memory how much memory will the balloon driver reclaim if any at all since the reservation and limit are equal to the allocated memory?
The answer to your first question is no - you 4 phyical cores for a quad vCPU VM - and best practice would have at least two quad core chips -
As long as the VM is using all of its memory the balloon driver will not come into play -
The answer to your first question is no - you 4 phyical cores for a quad vCPU VM - and best practice would have at least two quad core chips -
As long as the VM is using all of its memory the balloon driver will not come into play -
Hello.
A dual core single socket processor = max 2vCPU's per VM.
The balloon driver within a VM with limit and reservation set the same would never be used since the VM already has a reservation for all its RAM - ESX cant touch it.
The answer to the first question would be no. The maximum number of vCPUs a VM can have must be equal or less than the number of physical cores available. Having said that, it is generally recommended that you allocate as few as possible vCPUs for best performance, preferably not more than half the number of cores available. http://www.vmware.com/pdf/vi_performance_tuning.pdf
I'm going to take a guess at the balloon question... I'd guess you'd be right in that it wouldn't try to reclaim any memory. Out of curiosity: any particular reason you'd want to set the reservation equal to the limit, or is this purely theoretical? (As per the resource management guide, limits and reservations are generally best avoided. My view is that, if anything, it's generally best to use shares.)
Thanks for the repsonses.
Makes things alot clearer now.
The answer to your second question is not overly simple...see this thread for details. Scroll down to find posts from kitcolbert and I.
Ken Cline
Technical Director, Virtualization
VMware Communities User Moderator
Thanks Ken. Good thread. We typically dont over allocate memory on host servers or set the reservation to equal the limit. I was asking the question just for general knowledge and to understand things a little bit better. You never know when someone will ask THAT question 🐵