Patrick

How to find which NUMA node a GPU is attached to

Patrick

Administrator
Staff member
Dec 21, 2010
12,005
4,990
113
Patrick submitted a new resource:

How to find which NUMA node a GPU is attached to - Important for multiple NUMA node servers

Since many STH'ers have multiple NUMA node servers, whether dual Xeon or even a single AMD EPYC, or Threadripper, knowing where a GPU is attached to can be important.

For example, in a dual AMD EPYC system, how can one find which of the 8 NUMA nodes a GPU is attached to?

A quick tip is to install hwloc utilities using (on Debian / Ubuntu)
Code:
sudo apt install hwloc
From here you can use lstopo or hwloc-ls. Be careful as you will want to set an output format. Here is an example of...
Read more about this resource...
 
  • Like
Reactions: nitrobass24

acquacow

Well-Known Member
Feb 15, 2017
595
311
63
39
We used to do stuff like this back at FIO to find and then pin application processes that were using the ioDrives. Wanted to make sure that the processes were running on the CPU that was actually attached to the pcie-slot of the ioDrive.

Made for some great perf improvements.