VMware Cloud Community
manishisarda
Contributor
Contributor

Is it possible to pin VCPU accross CPU socket

Hi,

Is it possible to pin VCPU accross CPU socket ?

after reading

1. - It seems like it is not possible

2. - it is possible

Tags (1)
Reply
0 Kudos
4 Replies
Texiwill
Leadership
Leadership

Hello,

You can set an affinity across multiple CPUs but you can not 'pin' a VM across multiple CPUs. Affinity just tells the scheduler which CPU to assign which vCPUs.


Best regards,
Edward L. Haletky
VMware Communities User Moderator, VMware vExpert 2009
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs -- Top Virtualization Security Links -- Virtualization Security Round Table Podcast

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
manishisarda
Contributor
Contributor

Hi,

Thanks for replay,

but i am little confused with ur answer, how can i set an affinity across multiple CPUs when i can not pin them because of cell concept ?. It will be great if you can redirect me to some documentation.

Thanks

Reply
0 Kudos
malaysiavm
Expert
Expert

You set the affinity on specify cores of the CPU to match with the numbers of Vcpu assigned in the VM. this meant your VM which contains numbers of Vcpu will only been assigned to be processed on the specify cores. Example you may have 16 cores per ESX servers. When you assign 4 Vcpu to a VM, and set the affinity to 0, 1, 2 and 3, the Vcpu will not be processed on the rest of the cores available on the ESX itself.

Craig

Malaysia VMware Communities - http://www.malaysiavm.com

Craig vExpert 2009 & 2010 Netapp NCIE, NCDA 8.0.1 Malaysia VMware Communities - http://www.malaysiavm.com
Cooldude09
Commander
Commander

I agree with edward....now the question is, any reasons you want to set the affinity....keep this in mind that once affinity is set you cannot use features like VMotion for that VM.....

Regards

Anil

Save the planet, Go Green

if you found my answer to be useful, feel free to mark it as Helpful or Correct.

If U find my answer useful, feel free to give points by clicking Helpful or Correct.

Subscribe yourself at walkonblock.com

Reply
0 Kudos