- This topic has 2 replies, 2 voices, and was last updated 2 months, 1 week ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › FABRIC General Questions and Discussion › VM core pinning
Hello FABRIC team,
We have a science application that is quite CPU-intensive and assumes exclusive use of hardware cores (it is generally run on bare-metal). As we are preparing to benchmark it on FABRIC, a question arose if it is possible to pin some or all vCPU cores to physical CPU cores in a given VM without necessarily tying this process to the NUMA domain of a particular network device?
Hi Ilya,
Yes, it’s possible to pin vCPUs to physical cores. The following APIs on the node class may be of interest:
– node.get_cpu_info()
provides information about the VM’s CPU in relation to the host.
– You can pin specific vCPUs to physical cores using node.poa(operation="cpupin", vcpu_cpu_map=vcpu_cpu_map)
.
In this case, vcpu_cpu_map
is a dictionary mapping each vCPU to the desired physical core.
For more details, please refer to the documentation here. Let us know if you have any questions or encounter any issues!
Thanks,
Komal
Awesome! Thank you!