[ovs-discuss] ovs-dpdk crash when use vhost-user in docker

O Mahony, Billy billy.o.mahony at intel.com
Tue Aug 21 08:17:26 UTC 2018


Hi,

One thing to look out for with DPDK < 18.05 is that you need to used 1GB huge pages (and no more than eight of them) to use virtio. I’m not sure if that is the issue you have as I think it I don’t remember it causing a seg fault. But is certainly worth checking.

If that does not work please send the info Ciara refers to as well as the ovs-vsctl interface config for the ovs vhost backend.

Thanks,
Billy

From: ovs-discuss-bounces at openvswitch.org [mailto:ovs-discuss-bounces at openvswitch.org] On Behalf Of Loftus, Ciara
Sent: Tuesday, August 21, 2018 9:06 AM
To: gmzhang76 at gmail.com; ovs-discuss at openvswitch.org
Cc: users at dpdk.org
Subject: Re: [ovs-discuss] ovs-dpdk crash when use vhost-user in docker

Hi,

I am cc-ing the DPDK users’ list as the SEGV originates in the DPDK vHost code and somebody there might be able to help too.
Could you provide more information about your environment please? eg. OVS & DPDK versions, hugepage configuration, etc.

Thanks,
Ciara

From: ovs-discuss-bounces at openvswitch.org<mailto:ovs-discuss-bounces at openvswitch.org> [mailto:ovs-discuss-bounces at openvswitch.org] On Behalf Of ???
Sent: Monday, August 20, 2018 12:06 PM
To: ovs-discuss at openvswitch.org<mailto:ovs-discuss at openvswitch.org>
Subject: [ovs-discuss] ovs-dpdk crash when use vhost-user in docker

Hi,

   I used ovs-dpdk  as bridge  and l2fwd  as container. When l2fwd was runned ,the ovs-dpdk was crashed.

My command is :

    docker run -it --privileged --name=dpdk-docker  -v /dev/hugepages:/mnt/huge -v /usr/local/var/run/openvswitch:/var/run/openvswitch dpdk-docker

./l2fwd -c 0x06 -n 4  --socket-mem=1024  --no-pci --vdev=net_virtio_user0,mac=00:00:00:00:00:05,path=/var/run/openvswitch/vhost-user0  --vdev=net_virtio_user1,mac=00:00:00:00:00:01,path=/var/run/openvswitch/vhost-user1 -- -p 0x3



The crash log



Program terminated with signal 11, Segmentation fault.

#0  0x0000000000445828 in malloc_elem_alloc ()

Missing separate debuginfos, use: debuginfo-install glibc-2.17-196.el7_4.2.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-8.el7.x86_64 libcap-ng-0.7.5-4.el7.x86_64 libcom_err-1.42.9-10.el7.x86_64 libgcc-4.8.5-16.el7_4.1.x86_64 libpcap-1.5.3-9.el7.x86_64 libselinux-2.5-12.el7.x86_64 numactl-libs-2.0.9-6.el7_2.x86_64 openssl-libs-1.0.2k-8.el7.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-17.el7.x86_64

(gdb) bt

#0  0x0000000000445828 in malloc_elem_alloc ()

#1  0x0000000000445e5d in malloc_heap_alloc ()

#2  0x0000000000444c74 in rte_zmalloc ()

#3  0x00000000006c16bf in vhost_new_device ()

#4  0x00000000006bfaf4 in vhost_user_add_connection ()

#5  0x00000000006beb88 in fdset_event_dispatch ()

#6  0x00007f613b288e25 in start_thread () from /usr/lib64/libpthread.so.0

#7  0x00007f613a86b34d in clone () from /usr/lib64/libc.so.6



My OVS  version is 2.9.1 , DPDK version is 17.11.3





Thanks






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20180821/9601701c/attachment-0001.html>


More information about the discuss mailing list