Hi Mauricio/Gowrishankar, I downloaded latest master branch from github, then it seems this issue has gone away with the same command line I used.
Previously I tried dpdk-socket-mem="1024,1024" like you mentioned, but it was still failed with the same error. Anyway, looks like the latest version master has fixed the mem allocation error which I previously hit. Let me monitor the failure in further master release. Best Regards, Alex From: Mauricio Vásquez [mailto:mauricio.vasquezber...@studenti.polito.it] Sent: Monday, June 20, 2016 3:41 PM To: gowrishankar <gowrishanka...@linux.vnet.ibm.com> Cc: Wang, Alex <alex.w...@intel.com>; dev@openvswitch.org Subject: Re: [ovs-dev] [dpdk-ovs] Memory allocation error while trying to add a dpdk mode port to ovs bridge Hi Alex, This problem usually happens when there is not memory allocated to DPDK in the socket where the port is connected to. Please use the dpdk-socket-mem option to set the amount of memory for DPDK in the different NUMA sockets, Example: ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-socket-mem="1024,1024" Mauricio V, On Mon, Jun 20, 2016 at 9:25 AM, gowrishankar <gowrishanka...@linux.vnet.ibm.com<mailto:gowrishanka...@linux.vnet.ibm.com>> wrote: On Monday 20 June 2016 08:21 AM, Wang, Alex wrote: Hi There, I downloaded the master branch from github and tried to setup OVS with DPDK mode under Ubuntu16.04 kernel_4.4.0-21-generic. However I encountered below error while I was trying to add a dpdk port to the OVS bridge. Is this an issue if you run ovs-vswitchd without --detach option ? (ie not as detached process) ?. Thanks, Gowrishankar Error messages: root@unassigned-hostname:/opt/APP/utility/dpdk-16.04/tools#<mailto:root@unassigned-hostname:/opt/APP/utility/dpdk-16.04/tools#> ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev root@unassigned-hostname:/opt/APP/utility/dpdk-16.04/tools#<mailto:root@unassigned-hostname:/opt/APP/utility/dpdk-16.04/tools#> ovs-vsctl add-port br0 dpdk0 -- set Interface dpdk0 type=dpdk ovs-vsctl: Error detected while setting up 'dpdk0'. See ovs-vswitchd log for detail root@unassigned-hostname:/home/pid# ovs-vsctl show f8269232-4bf8-455b-9b34-e9c646905782 Bridge "br0" Port "dpdk0" Interface "dpdk0" type: dpdk error: "could not open network device dpdk0 (Cannot allocate memory)" Port "br0" Interface "br0" type: internal I followed the INSTALL.DPDK.md<http://INSTALL.DPDK.md><https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md> but this error was consistently hit on Ubuntu16.04. Previously we tried OVS on Ubuntu14.04 but it looked fine without this failure. Did you see any similar error on your side or any comments about the failure? Thanks a lot in advance! Best Regards, Alex _______________________________________________ dev mailing list dev@openvswitch.org<mailto:dev@openvswitch.org> http://openvswitch.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev@openvswitch.org<mailto:dev@openvswitch.org> http://openvswitch.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev