Public bug reported:

OS: Ubuntu 17.10 , update to latest version 
Hardware : ThunderX 2S System (Gigabyte R150)

Reproduce procedure
====
DPDKDEV1=0006:01:00.1
DPDKDEV2=0006:01:00.2

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/openvswitch/*
rm -rf /var/log/openvswitch/*

ovsdb-tool create /etc/openvswitch/conf.db 
/usr/share/openvswitch/vswitch.ovsschema
ovsdb-server --remote=punix:/var/run/openvswitch/db.sock     
--remote=db:Open_vSwitch,Open_vSwitch,manager_options     
--private-key=db:Open_vSwitch,SSL,private_key     
--certificate=db:Open_vSwitch,SSL,certificate     
--bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert     --pidfile --detach 
--log-file


ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true
ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-socket-mem="1024,1024"

ovs-vsctl --no-wait init
TXQ=2 ovs-vswitchd --pidfile --detach --log-file

ovs-vsctl del-br br0
ovs-vsctl --log-file=/var/log/openvswitch/ovs-ctl.log add-br br0 -- set bridge 
br0 datapath_type=netdev
ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk 
options:dpdk-devargs=${DPDKDEV1}
ovs-vsctl add-port br0 dpdk1 -- set Interface dpdk1 type=dpdk 
options:dpdk-devargs=${DPDKDEV2}

ovs-ofctl add-flow br0 in_port=1,action=output:2
ovs-ofctl add-flow br0 in_port=2,action=output:1

ovs-vsctl set Open_vSwitch . other_config:pmd-cpu-mask=0x6
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 .

** Affects: dpdk (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  DPDK with OVS cannot allocate more than 6 CPU

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

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

Reply via email to