How to find out on which NUMA node network interfaces

I will give an example of viewing on which NUMA node the network interfaces are located in Linux.

Let’s see the number of NUMA node and interrupt network interfaces:

lscpu | grep -i numa
numactl --hardware
cat /proc/interrupts | egrep -i "CPU|rx"

Check if the network interfaces are tied to Numa (if -1 means not tied, if 0, then to numa0):

cat /sys/class/net/ens1f0/device/numa_node
cat /sys/class/net/ens1f1/device/numa_node

You can see which NAMA the network card belongs to, for example, using lstopo:

apt install hwloc
lstopo --logical
lstopo --logical --output-format png > lstopo.png

See also my articles:
Configuring the Network in Linux
How to distinguish physical processor cores from virtual
Distribution of network board interrupts across processor cores

Leave a comment

Leave a Reply