------- Comment From [email protected] 2016-11-08 07:08 EDT-------
# for i in `ifconfig -a | awk -F : '/^e/ {print $1}'`; do echo -n "$i - " ; 
ethtool -i $i | grep bus; done
enP28p96s0f0 - bus-info: 001c:60:00.0
enP28p96s0f1 - bus-info: 001c:60:00.1
enP28p96s0f2 - bus-info: 001c:60:00.2
enP28p96s0f3 - bus-info: 001c:60:00.3
enP32770p1s0f0 - bus-info: 8002:01:00.0

# lspci
0018:01:00.0 Fibre Channel: Emulex Corporation Lancer-X: LightPulse Fibre 
Channel Host Adapter (rev 30)
0018:01:00.1 Fibre Channel: Emulex Corporation Lancer-X: LightPulse Fibre 
Channel Host Adapter (rev 30)
001c:60:00.0 Ethernet controller: Emulex Corporation OneConnect NIC (Lancer) 
(rev 10)
001c:60:00.1 Ethernet controller: Emulex Corporation OneConnect NIC (Lancer) 
(rev 10)
001c:60:00.2 Ethernet controller: Emulex Corporation OneConnect NIC (Lancer) 
(rev 10)
001c:60:00.3 Ethernet controller: Emulex Corporation OneConnect NIC (Lancer) 
(rev 10)
001c:60:00.4 Fibre Channel: Emulex Corporation OneConnect FCoE Initiator 
(Lancer) (rev 10)
001c:60:00.5 Fibre Channel: Emulex Corporation OneConnect FCoE Initiator 
(Lancer) (rev 10)
8002:01:00.0 Ethernet controller: Emulex Corporation Device e228 (rev 10)

# numactl -H
available: 2 nodes (0-1)
node 0 cpus: 0 - 159
node 0 size: 0 MB
node 0 free: 0 MB
node 1 cpus:
node 1 size: 17826 MB
node 1 free: 13171 MB
node distances:
....

# ls -l /sys/class/net | cut -d ' ' -f 10-
enP28p96s0f0 -> ../../devices/pci001c:60/001c:60:00.0/net/enP28p96s0f0
enP28p96s0f1 -> ../../devices/pci001c:60/001c:60:00.1/net/enP28p96s0f1
enP28p96s0f2 -> ../../devices/pci001c:60/001c:60:00.2/net/enP28p96s0f2
enP28p96s0f3 -> ../../devices/pci001c:60/001c:60:00.3/net/enP28p96s0f3
enP32770p1s0f0 -> ../../devices/pci8002:01/8002:01:00.0/net/enP32770p1s0f0
lo -> ../../devices/virtual/net/lo

# cat /sys/class/net/enP28p96s0f0/device/numa_node
1
# cat /sys/class/net/enP28p96s0f1/device/numa_node
1
#

# numactl -a --cpunodebind=netdev:enP28p96s0f0
libnuma: Warning: Cannot read node mask for  device 
`/devices/pci001c:60/001c:60:00.0/'
<netdev:enP28p96s0f0> is invalid
..
..
# numactl -a --cpunodebind=netdev:enP28p96s0f1
libnuma: Warning: Cannot read node mask for  device 
`/devices/pci001c:60/001c:60:00.1/'
<netdev:enP28p96s0f1> is invalid

There are 5 Ethernet controllers onto this box.
enP28p96s0fX devices fall under numa_node 1, and
since node 1 doesn't have any cpus assigned thus
numactl with --cpunodebind fails with "Cannot read node mask" error.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1638515

Title:
  Ubuntu 16.04.1: numactl failed when trying to specify node with
  netdev:dev

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/numactl/+bug/1638515/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to