From inside virutal machine how to check if the VF(Virtual Function) is on which numa node ?

Solution Verified - Updated -

Issue

  • VFs (Virtual Function) has been presented to VM, now from inside VM how to check if the VF is on which numa node ? The output of /sys/class/pci_bus/0000\:00/device/<bus-of-VF>/numa_node OR /sys/class/net/<VF-interface-name>/device/numa_node shows -1
  • There is a application running on guest/VM which needs this information to be fetched from VM itself so that it can work optimally.

Environment

  • Red Hat Enterprise Linux 7.2
  • SR-IOV enabled.
  • VM with VFs as its NICs.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In