[ovs-discuss] [bug]ovs-dpdk can't open dpdk port and dpdkvhostuser port added before

Christian Ehrhardt christian.ehrhardt at canonical.com
Thu Feb 25 07:07:24 UTC 2016


Hi Eric,
when debugging similar issues I realized that while the openvswitch log
(like /var/log/openvswitch/ovs-vswitchd.log depending on your Distro) is
great.
The DPDK messages can bypass that and at least in my case ended up in
syslog.

Therein you will find messages like
ovs-ctl[3560]: EAL: ...
ovs-vswitchd[3592]: EAL: ...

And DPDK there is rather verbose on its initialization (which is good).
Since you can trigger the issue by different --socket-mem options I'd
recommend you to check these logs.
Most of the time, once I looked there it was eventually rather obvious.

Regarding the memory allocation you will find for example (in my case non
socket based -m 4096)
ovs-ctl[3560]: EAL: Requesting 4 pages of size 1024MB from socket 0

If it is not obvious please share the logs you find there and people on the
list might be able to help you more.


Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

On Thu, Feb 25, 2016 at 7:22 AM, 王华夏 <wanghuaxia at jd.com> wrote:

>
>
> HI
>
>
>
> I am trying to restart ovs ,find  error as fellows, all thess bridges and
> ports I have added before
>
>
>
> Bridge br-dpdk
>         Port "dpdk0"
>             Interface "dpdk0"
>                 type: dpdk
>
> *   error: "could not open network device dpdk0 (Cannot allocate memory)*"
>         Port br-dpdk
>             Interface br-dpdk
>                 type: internal
>     Bridge br-tun
>         fail_mode: secure
>         Port "vxlan-0a001f8d"
>             Interface "vxlan-0a001f8d"
>                 type: vxlan
>
>                 options: {df_default="true", in_key=flow, local_ip="10.0.32.13", out_key=flow, remote_ip="10.0.31.141"}
>         Port "vxlan-0a001f7e"
>             Interface "vxlan-0a001f7e"
>                 type: vxlan
>
>                 options: {df_default="true", in_key=flow, local_ip="10.0.32.13", out_key=flow, remote_ip="10.0.31.126"}
>         Port "vxlan-0a002016"
>             Interface "vxlan-0a002016"
>                 type: vxlan
>
>                 options: {df_default="true", in_key=flow, local_ip="10.0.32.13", out_key=flow, remote_ip="10.0.32.22"}
>         Port patch-int
>             Interface
>  patch-int
>                 type: patch
>                 options: {peer=patch-tun}
>         Port br-tun
>             Interface br-tun
>                 type: internal
>     Bridge br-int
>         fail_mode: secure
>         Port br-int
>             Interface br-int
>                 type: internal
>         Port "tap78ec2293-ae"
>             tag: 1
>             Interface "tap78ec2293-ae"
>                 type: dpdkvhostuser
>
> *         error: "could not open network device tap78ec2293-ae (Unknown error -1)*
> "
>         Port "tapb94777b3-5d"
>             tag: 1
>
>
>
>
>
> When start the ovs like this ,this problem will occurs:
>
>
>
> ovs-vswitchd --dpdk -c 0x1 -n 4 --socket-mem=2048,2048 --
> unix:/var/run/openvswitch/db.sock --pidfile --detach -vconsole:emer
> -vsyslog:err -vfile:info --mlockall --no-chdir
> --log-file=/var/log/openvswitch/ovs-vswitchd.log –monitor
>
>
>
> if change the --socket-mem=2048,2048   to   –socket-mem= 2048 ,  it will
> have no problem
>
>
>
> if it  means the numa node1 can not use ?
>
>
>
> my ovs version is 2.5 and dpdk version is 2.2 with kernel Linux version
> 3.10.0-229.20.1.el7.x86_64 (builder at kbuilder.dev.centos.org) (gcc version
> 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Tue Nov 3 19:10:07 UTC
> 2015
>
>
>
>
>
> Thanks & regards
>
>
>
> Eric wang
>
>
>
> 发送自 Windows 10 版邮件 <https://go.microsoft.com/fwlink/?LinkId=550986>应用
>
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160225/bc7c1197/attachment-0002.html>


More information about the discuss mailing list