我要评分
获取效率
正确性
完整性
易理解

Querying PCIe Node Information of a GPU

A Kunpeng 920 7280Z processor has four NUMA nodes. Four VMs will be created, and each VM uses resources of a NUMA node of the host. Each NUMA node corresponds to two GPUs. To prevent performance loss caused by cross-NUMA access, you need to confirm the PCIe nodes of GPUs used by each VM before creating VMs.

  1. Check the IDs of all PCIe nodes of the Vastai GPUs.
    lspci | grep 0200

  2. Check the NUMA node of each GPU node. The NUMA IDs in the command output map to the GPU node IDs queried in 1. The command output in the following figure is only an example. 17:00.0 to 18:00.3 (the first eight nodes) correspond to NUMA node 1 of the host.
    lspci -vvv -d 1f4f:0200 | grep NUMA