VMware Cloud Community
vmwaredude1
Contributor
Contributor

Question about affinity

Folks, which is the valid reason NOT to set the affinity on a single VM

1) A VM with a affinity might not receive 100% cPU

2) Affinity settings are ignored as a part of a Vmotion.

I am not sure about option 2, because if there is affinity set Vmotion will not work for that VM.

Any suggestions ?

0 Kudos
1 Reply
patrickds
Expert
Expert

Like you said: a VM with CPU affinity set will not be vmotioned; therefore 1 must be correct.

Without affinity, a VM will get its alotted amount of cpu cycles scheduled on all available CPUs.

When CPU needs get higher, a VM with affinity set, could get restricted to less CPU resources than it actually needs, because it would still have to share the CPU with the other VMs.

0 Kudos