Public bug reported:

To start OpenvSwitch in DPDK mode,
Users can use parameter DPDK_OPTS in /etc/default/openvswitch-switch.
However, OpenvSwitch-dpdk doesn't start although DPDK_OPTS parameter is 
uncomment.
For example,
# DPDK options - see /usr/share/doc/openvswitch-common/INSTALL.DPDK.md.gz       
                                                                                
                                          
DPDK_OPTS='--dpdk -c 0x1 -n 4' 

What I did was,

#install openvswitch-dpdk package
$sudo apt-get install openvswitch-switch-dpdk

#enable hugepage
on /etc/default/grub
GRUB_CMDLINE_LINUX="transparent_hugepage=never hugepagesz=1G hugepages=4 
default_hugepagesz=1G"
$sudo update-grub
$sudo reboot

#mount hugepage
$sudo mount -t hugetlbfs -o pagesize=1G none /dev/hugepages

# DPDK setup
$sudo modprobe uio_pci_generic
$sudo dpdk_nic_bind --bind=uio_pci_generic p1p1

#uncomment DPDK_OPTS on /etc/default/openvswitch-switch
DPDK_OPTS='--dpdk -c 0x1 -n 4'

# update alternatives ovs-vswitchd and start openvswitch  
$sudo update-alternatives --set ovs-vswitchd 
/usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk
$sudo start openvswitch-switch

# check if openvswitch-dpdk enabled
ps -ef doesn't show ovs-vswitchd process running with --dpdk option.
Also, /var/log/openvswitch/ovs-ctl.log doesn't show any DPDK relevant message.

Package version :
ubuntu@ubuntu:~$ dpkg -l | grep openvswitch                                     
                                                                                
                                          
ii  openvswitch-common                  2.4.0-0ubuntu4~cloud0            amd64  
      Open vSwitch common components                                            
                                          
ii  openvswitch-switch                  2.4.0-0ubuntu4~cloud0            amd64  
      Open vSwitch switch implementations                                       
                                          
ii  openvswitch-switch-dpdk             2.4.0-0ubuntu1~cloud0            amd64  
      DPDK enabled Open vSwitch switch implementation

** Affects: openvswitch-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/1547463

Title:
  openvswitch-dpdk starting with DPDK_OPTS parameter

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to