DPDK with OVS cannot allocate more than 6 CPU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpdk (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
OS: Ubuntu 17.10 , update to latest version
Hardware : ThunderX 2S System (Gigabyte R150)
Reproduce procedure
====
DPDKDEV1=
DPDKDEV2=
dpdk-devbind -b vfio-pci $DPDKDEV1
dpdk-devbind -b vfio-pci $DPDKDEV2
sysctl -w vm.nr_hugepages=24
umount /dev/hugepages
mount -t hugetlbfs none /dev/hugepages
grep HugePages_ /proc/meminfo
pkill ovs
sleep 5
rm -rf /etc/openvswitch/*
rm -rf /var/run/
rm -rf /var/log/
ovsdb-tool create /etc/openvswitc
ovsdb-server --remote=
ovs-vsctl --no-wait set Open_vSwitch . other_config:
ovs-vsctl --no-wait set Open_vSwitch . other_config:
ovs-vsctl --no-wait init
TXQ=2 ovs-vswitchd --pidfile --detach --log-file
ovs-vsctl del-br br0
ovs-vsctl --log-file=
ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk options:
ovs-vsctl add-port br0 dpdk1 -- set Interface dpdk1 type=dpdk options:
ovs-ofctl add-flow br0 in_port=
ovs-ofctl add-flow br0 in_port=
ovs-vsctl set Open_vSwitch . other_config:
ovs-vsctl set Interface dpdk0 options:n_rxq=2
ovs-vsctl set Interface dpdk1 options:n_rxq=2
====
if replace pmd-cpu-mask=0x6 with more than 6 CPU like pmd-cpu-mask=0xFF0,
this command will stop work.
but it less than 6 or equal than 6, it works fine .
Hi Richard,
what happens if you do so?
The openvswitch log should have have all the OVS and DPDK messages.
Could you generate which error it creates when you use "0x7"?