Hyper-v virtual processor usage

If I have a Win2012R2 host with 2 x 8 core processors and need it to host just a single large VM - what's the maximum virtual processors I should be assigning to make the most of the hardware?

I'm thinking no more than 28, leaving 2 x physical cores for the host.

Is this right?
LVL 1
devon-ladAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
It's not really right, what performance is required, we normally start with a single vCPU, and add vCPU as and when required, to increase performance.
0
Philip ElderTechnical Architect - HA/Compute/StorageCommented:
Why virtualize in the first place?

The workload running on that setup would run a lot better on physical hardware than virtual.

The two key areas that would hold a larger VM back would be CPU and memory (NUMA).
0
devon-ladAuthor Commented:
VM is used because hyper-v replica is in place for DR.

Have just added an additional host and VM because the existing VM was overloaded (high processor usage)

So have better performance now, but wanted to double check that had assigned the maximum VPUs.

Using static RAM allocation and NUMA nodes.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Philip ElderTechnical Architect - HA/Compute/StorageCommented:
Our preference is the number of physical cores - 1 for vCPU assignment to a single VM. Hyper-Threading has never proven to make that much of a difference in our testing (think highway at 8 lanes up to 16 but then merge back to 8 at some point).

On the memory side that depends. There's no fixed formula as far as when a VM's memory gets tossed around between physical CPU memory banks (NUMA). Suffice it to say that when a host gets several large vRAM based VMs things can get a bit interesting.
0
devon-ladAuthor Commented:
Thanks for all input, but didn't really get a clear answer.

Any further input?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
To best use all the resources of the server. you would allocate all the CPU and Memory, so you would create many virtual machines.

Many virtual machines with 2 vCPU, 4 vCPU and 8 VCPU where required, with the memory to match the application server or service.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
devon-ladAuthor Commented:
Ok, in the interest of everyone getting on with their lives we'll leave it at that.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Hyper-V

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.