The tutorial describes using CCD1 cores for a VM. The part of a script is to make all CCD1 cores offline to move all host threads to CCD0, “pin” them there and bring back online fresh, non-busy CCD1 cores and pin vCPUs to them.
In my case, I need to pin vCPUs to 3d cached CCD0 cores. The problem is, I can’t make Core 0 (which is located on CCD0) offline because it’s reserved by the kernel if I understand correctly.
Is there a way to make the kernel to reserve another CPU core/CCD/NUMA node? Maybe with BIOS settings or kernel parameters?
There’s isolcpus to completely disable the cores from being scheduled on. Then you can use taskset to manually assign those cores to either the VM or another application. Taskset has a manpage; isolcpus can be found in the above kernel parameter link, but it’s basically just add “isolcpus=core1,core2” to your kernel parameters.
Just pin all the vCPUs in a single CCD. Like this <vcpu placement='static' cpuset='0-7,16-23'>16</vcpu> in your vm config file.
BTW, you could verify cache affinity with ‘lscpu -e’