1. VM core pinning

VM core pinning

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7512
    Ilya Baldin
    Participant

      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?

      #7513
      Komal Thareja
      Participant

        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

        #7514
        Ilya Baldin
        Participant

          Awesome! Thank you!

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.