<div dir="ltr"><div><div><div><div>Hi Sean,<br><br></div>Thanks for your response. <br><br><p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">in your case though you are using 1GB hugepages so I don’t think this is related to memory fragmentation<br>
or a lack of free hugepages.</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">to use preallocated 1GB page with ovs you should instead set the following in your local.conf</span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">OVS_HUGEPAGE_MOUNT_PAGESIZE=1G</span></p>
<span style="font-size:11pt;font-family:"Calibri",sans-serif;color:rgb(31,73,125)">OVS_ALLOCATE_HUGEPAGES=False</span><br><br><br></div>Added the above two parameters to the local.conf. The same problem again. <br></div>Basically it throws this error -<br>2015-11-16 11:31:44.741 | starting vswitchd<br>2015-11-16 11:31:44.863 | sudo RTE_SDK=/opt/stack/DPDK-v2.0.0 RTE_TARGET=build /opt/stack/DPDK-v2.0.0/tools/dpdk_nic_bind.py -b igb_uio 0000:07:00.0<br>2015-11-16 11:31:45.169 | sudo ovs-vsctl --no-wait --may-exist add-port br-eth1 dpdk0 -- set Interface dpdk0 type=dpdk<br>2015-11-16 11:31:46.314 | Waiting for ovs-vswitchd to start...<br>2015-11-16 11:31:47.442 | libvirt-bin stop/waiting<br>2015-11-16 11:31:49.473 | libvirt-bin start/running, process 2255<br>2015-11-16 11:31:49.477 |<span style="color:rgb(255,0,0)"> [ERROR] /etc/init.d/ovs-dpdk:563 ovs-vswitchd application failed to start<br></span><br><br></div><div>manually mounting /mnt/huge and then commenting that part from the /etc/init.d/ovs-dpdk script also throws the same error. <br><br></div><div>Using 1G hugepagesize should not give any memory related problem. I dont understand why it is not mounting then. <br></div><div>Here is the /opt/stack/networking-ovs-dpdk/devstack/ovs-dpdk/ovs-dpdk.conf <br><br>RTE_SDK=${RTE_SDK:-/opt/stack/DPDK}<br>RTE_TARGET=${RTE_TARGET:-x86_64-ivshmem-linuxapp-gcc}<br><br>OVS_INSTALL_DIR=/usr<br>OVS_DB_CONF_DIR=/etc/openvswitch<br>OVS_DB_SOCKET_DIR=/var/run/openvswitch<br>OVS_DB_CONF=$OVS_DB_CONF_DIR/conf.db<br>OVS_DB_SOCKET=OVS_DB_SOCKET_DIR/db.sock<br><br>OVS_SOCKET_MEM=2048,2048<br>OVS_MEM_CHANNELS=4<br>OVS_CORE_MASK=${OVS_CORE_MASK:-2}<br>OVS_PMD_CORE_MASK=${OVS_PMD_CORE_MASK:-4}<br>OVS_LOG_DIR=/tmp<br>OVS_LOCK_DIR=''<br>OVS_SRC_DIR=/opt/stack/ovs<br>OVS_DIR=${OVS_DIR:-${OVS_SRC_DIR}}<br>OVS_UTILS=${OVS_DIR}/utilities/<br>OVS_DB_UTILS=${OVS_DIR}/ovsdb/<br>OVS_DPDK_DIR=$RTE_SDK<br>OVS_NUM_HUGEPAGES=${OVS_NUM_HUGEPAGES:-5}<br>OVS_HUGEPAGE_MOUNT=${OVS_HUGEPAGE_MOUNT:-/mnt/huge}<br>OVS_HUGEPAGE_MOUNT_PAGESIZE=''<br>OVS_BOND_MODE=$OVS_BOND_MODE<br>OVS_BOND_PORTS=$OVS_BOND_PORTS<br>OVS_BRIDGE_MAPPINGS=eth1<br>OVS_PCI_MAPPINGS=0000:07:00.0#eth1<br>OVS_DPDK_PORT_MAPPINGS=''<br>OVS_TUNNEL_CIDR_MAPPING=''<br>OVS_ALLOCATE_HUGEPAGES=True<br>OVS_INTERFACE_DRIVER='igb_uio'<br><br></div><div>Verified the OVS_DB_SOCKET_DIR and all others. conf.db and db.sock exist. So why ovs-vswitchd is failing to start??? Am I missing something??? <br><br></div><div><br></div><div><br></div><div>Thanks,<br></div><div>Prathyusha<br></div><div><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 16, 2015 at 4:39 PM, Mooney, Sean K <span dir="ltr"><<a href="mailto:sean.k.mooney@intel.com" target="_blank">sean.k.mooney@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Yes sorry for the delay in responding to you and samta.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">In your case assuming you are using 2mb hugepages it is easy to hit dpdks default max memory segments<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">This can be changed by setting OVS_DPDK_MEM_SEGMENTS=<arbitrary large number that you will never hit><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">In the local.conf and recompiling. To do this simply remove the build complete file in /opt/stack/ovs<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">rm –f /opt/stack/BUILD_COMPLETE<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">in your case though you are using 1GB hugepages so I don’t think this is related to memory fragmentation<br>
or a lack of free hugepages.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">to use preallocated 1GB page with ovs you should instead set the following in your local.conf<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">OVS_HUGEPAGE_MOUNT_PAGESIZE=1G<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">OVS_ALLOCATE_HUGEPAGES=False<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">sean<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Prathyusha Guduri [mailto:<a href="mailto:prathyushaconnects@gmail.com" target="_blank">prathyushaconnects@gmail.com</a>]
<br>
<b>Sent:</b> Monday, November 16, 2015 6:20 AM<span><br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
</span><b>Subject:</b> Re: [openstack-dev] [networking-ovs-dpdk]<u></u><u></u></span></p><div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi all,<br>
<br>
I have a similar problem as Samta. Am also stuck at the same place. The following command<br>
<br>
$sudo ovs-vsctl br-set-external-id br-ex bridge-id br-ex<br>
<br>
hangs forever. As Sean said, it might be because of ovs-vswitchd proces.<br>
<br>
<span style="color:blue">> The vswitchd process may exit if it failed to allocate memory (due to memory fragmentation or lack of free hugepages)<br>
> if the ovs-vswitchd.log is not available can you check the the hugepage mount point was created in<br>
> /mnt/huge And that Iis mounted<br>
> Run<br>
> ls -al /mnt/huge<br>
> and<br>
> mount<br>
></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">$mount</span><u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">/dev/sda6 on / type ext4 (rw,errors=remount-ro)<br>
proc on /proc type proc (rw,noexec,nosuid,nodev)<br>
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)<br>
none on /sys/fs/cgroup type tmpfs (rw)<br>
none on /sys/fs/fuse/connections type fusectl (rw)<br>
none on /sys/kernel/debug type debugfs (rw)<br>
none on /sys/kernel/security type securityfs (rw)<br>
udev on /dev type devtmpfs (rw,mode=0755)<br>
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)<br>
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)<br>
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)<br>
none on /run/shm type tmpfs (rw,nosuid,nodev)<br>
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)<br>
none on /sys/fs/pstore type pstore (rw)<br>
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)<br>
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)<br>
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)<br>
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)<br>
cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)<br>
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)<br>
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)<br>
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event)<br>
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,relatime,hugetlb)<br>
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)<br>
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=ubuntu)</span><u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">/mnt/huge is my mount point. So no mounting happening.
</span><u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">ovs-vswitchd.log says<br>
<br>
2015-11-13T12:48:01Z|00001|dpdk|INFO|User-provided -vhost_sock_dir in use: /var/run/openvswitch<br>
EAL: Detected lcore 0 as core 0 on socket 0<br>
EAL: Detected lcore 1 as core 1 on socket 0<br>
EAL: Detected lcore 2 as core 2 on socket 0<br>
EAL: Detected lcore 3 as core 3 on socket 0<br>
EAL: Detected lcore 4 as core 4 on socket 0<br>
EAL: Detected lcore 5 as core 5 on socket 0<br>
EAL: Detected lcore 6 as core 0 on socket 0<br>
EAL: Detected lcore 7 as core 1 on socket 0<br>
EAL: Detected lcore 8 as core 2 on socket 0<br>
EAL: Detected lcore 9 as core 3 on socket 0<br>
EAL: Detected lcore 10 as core 4 on socket 0<br>
EAL: Detected lcore 11 as core 5 on socket 0<br>
EAL: Support maximum 128 logical core(s) by configuration.<br>
EAL: Detected 12 lcore(s)<br>
EAL: VFIO modules not all loaded, skip VFIO support...<br>
EAL: Searching for IVSHMEM devices...<br>
EAL: No IVSHMEM configuration found!<br>
EAL: Setting up memory...<br>
EAL: Ask a virtual area of 0x180000000 bytes<br>
EAL: Virtual area found at 0x7f1e00000000 (size = 0x180000000)<br>
EAL: remap_all_hugepages(): mmap failed: Cannot allocate memory<br>
EAL: Failed to remap 1024 MB pages<br>
PANIC in rte_eal_init():<br>
Cannot init memory<br>
7: [/usr/sbin/ovs-vswitchd() [0x40b803]]<br>
6: [/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f1fb52d3ec5]]<br>
5: [/usr/sbin/ovs-vswitchd() [0x40a822]]<br>
4: [/usr/sbin/ovs-vswitchd() [0x675432]]<br>
3: [/usr/sbin/ovs-vswitchd() [0x442155]]<br>
2: [/usr/sbin/ovs-vswitchd() [0x407c9f]]<br>
1: [/usr/sbin/ovs-vswitchd() [0x447828]]</span><u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">I have given hugepages in /boot/grub/grub.cfg file. So there are free hugepages.<br>
<br>
<br>
AnonHugePages: 378880 kB<br>
HugePages_Total: 6<br>
HugePages_Free: 6<br>
HugePages_Rsvd: 0<br>
HugePages_Surp: 0<br>
Hugepagesize: 1048576 kB</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">It failed to allocate memory because mounting was not done. Did not understand why mounting is not done when there are free hugepages.
</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">And also dpdk binding did happen.<br>
<br>
$../DPDK-v2.0.0/tools/dpdk_nic_bind.py --status<br>
<br>
Network devices using DPDK-compatible driver<br>
============================================<br>
0000:07:00.0 '82574L Gigabit Network Connection' unused=igb_uio<br>
<br>
Network devices using kernel driver<br>
===================================<br>
0000:00:19.0 'Ethernet Connection I217-LM' if=eth0 drv=e1000e unused=igb_uio *Active*<br>
0000:06:02.0 '82540EM Gigabit Ethernet Controller' if=eth2 drv=e1000 unused=igb_uio
<br>
<br>
Other network devices<br>
=====================</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">None</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">Am using a 1G NIC card for the port (eth1) binds dpdk. Is that a problem??? Should dpdk binding port necessarily have a 10G NIC???? I dont think its a problem anyway because binding
is done. Please correct me if am going wrong...</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Thanks,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Prathyusha</span><u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Nov 11, 2015 at 3:52 PM, Samta Rangare <<a href="mailto:samtarangare@gmail.com" target="_blank">samtarangare@gmail.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">Hi Sean,<br>
<br>
Thanks for replying back, response inline.<br>
<br>
On Mon, Nov 9, 2015 at 8:24 PM, Mooney, Sean K <<a href="mailto:sean.k.mooney@intel.com" target="_blank">sean.k.mooney@intel.com</a>> wrote:<br>
> Hi<br>
> Can you provide some more information regarding your deployment?<br>
><br>
> Can you check which kernel you are using.<br>
><br>
> uname -a<br>
<br>
<span style="color:blue">Linux ubuntu 3.16.0-50-generic #67~14.04.1-Ubuntu SMP Fri Oct 2 22:07:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux</span><br>
<br>
><br>
> If you are using a 3.19 kernel changes to some locking code in the kennel broke synchronization dpdk2.0 and requires dpdk 2.1 to be used instead.<br>
> In general it is not advisable to use a 3.19 kernel with dpdk as it can lead to non-deterministic behavior.<br>
><br>
> When devstack hangs can you connect with a second ssh session and run<br>
> sudo service ovs-dpdk status<br>
> and<br>
> ps aux | grep ovs<br>
><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="color:blue">sudo service ovs-dpdk status</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">sourcing config</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">/opt/stack/logs/ovs-vswitchd.pid is not running</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">Not all processes are running restart!!!</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">1</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">ubuntu@ubuntu:~/samta/devstack$ ps -ef | grep ovs</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">root 13385 1 0 15:17 ? 00:00:00 /usr/sbin/ovsdb-server --detach --pidfile=/opt/stack/logs/ovsdb-server.pid --remote=punix:/usr/local/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_options</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">ubuntu 24451 12855 0 15:45 pts/0 00:00:00 grep --color=auto ovs</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">><br>
> When the deployment hangs at sudo ovs-vsctl br-set-external-id br-ex bridge-id br-ex<br>
> It usually means that the ovs-vswitchd process has exited.<br>
><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">The above result shows that ovs-vswitchd is not running.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">> This can happen for a number of reasons.<br>
> The vswitchd process may exit if it failed to allocate memory (due to memory fragmentation or lack of free hugepages)<br>
> if the ovs-vswitchd.log is not available can you check the the hugepage mount point was created in<br>
> /mnt/huge And that Iis mounted<br>
> Run<br>
> ls -al /mnt/huge<br>
> and<br>
> mount<br>
><u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:blue">ls -al /mnt/huge</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">total 4</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">drwxr-xr-x 2 libvirt-qemu kvm 0 Nov 11 15:18 .</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">drwxr-xr-x 3 root root 4096 May 15 00:09 ..</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:blue">ubuntu@ubuntu:~/samta/devstack$ mount<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">/dev/mapper/ubuntu--vg-root on / type ext4 (rw,errors=remount-ro)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">proc on /proc type proc (rw,noexec,nosuid,nodev)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">none on /sys/fs/cgroup type tmpfs (rw)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">none on /sys/fs/fuse/connections type fusectl (rw)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">none on /sys/kernel/debug type debugfs (rw)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">none on /sys/kernel/security type securityfs (rw)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">udev on /dev type devtmpfs (rw,mode=0755)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">none on /run/shm type tmpfs (rw,nosuid,nodev)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">none on /sys/fs/pstore type pstore (rw)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,relatime,net_cls)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">cgroup on /sys/fs/cgroup/net_prio type cgroup (rw,relatime,net_prio)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,relatime,hugetlb)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">/dev/sda1 on /boot type ext2 (rw)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">hugetlbfs-kvm on /run/hugepages/kvm type hugetlbfs (rw,mode=775,gid=106)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">nodev on /mnt/huge type hugetlbfs (rw,uid=106,gid=106)<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">nodev on /mnt/huge type hugetlbfs (rw,uid=106,gid=106)<u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">> then checkout how many hugepages are mounted<br>
><br>
> cat /proc/meminfo | grep huge<br>
><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:blue">cat /proc/meminfo | grep Huge</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">AnonHugePages: 292864 kB</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">HugePages_Total: 5</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">HugePages_Free: 5</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">HugePages_Rsvd: 0</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">HugePages_Surp: 0</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">Hugepagesize: 1048576 kB</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><br>
><br>
> the vswitchd process may also exit if it failed to initializes dpdk interfaces.<br>
> This can happen if no interface is compatible with the igb-uio or vfio-pci drivers<br>
> (note in the vfio-pci case all interface in the same iommu group must be bound to the vfio-pci driver and<br>
> The iommu must be enabled in the kernel command line with VT-d enabled in the bios)<br>
><br>
> Can you check which interface are bound to the dpdk driver by running the following command<br>
><br>
> /opt/stack/DPDK-v2.0.0/tools/dpdk_nic_bind.py --status<br>
><u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:blue">/opt/stack/DPDK-v2.0.0/tools/dpdk_nic_bind.py --status</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">Network devices using DPDK-compatible driver</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">============================================</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue"><none></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">Network devices using kernel driver</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">===================================</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">0000:01:00.0 'Ethernet Controller 10-Gigabit X540-AT2' if=p1p1 drv=ixgbe unused=igb_uio </span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">0000:02:00.0 'Ethernet Controller XL710 for 40GbE QSFP+' if=p4p1 drv=i40e unused=igb_uio </span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">0000:03:00.0 'Ethernet Controller XL710 for 40GbE QSFP+' if=p2p1 drv=i40e unused=igb_uio </span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">0000:06:00.0 'I350 Gigabit Network Connection' if=em1 drv=igb unused=igb_uio *Active*</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">0000:06:00.1 'I350 Gigabit Network Connection' if=em2 drv=igb unused=igb_uio </span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">Other network devices</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">=====================</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">0000:01:00.1 'Ethernet Controller 10-Gigabit X540-AT2' unused=igb_uio</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><br>
><br>
> Finally can you confim that ovs-dpdk compiled successfully by either check the xstack.log or<br>
> Checking for the BUILD_COMPLETE file in /opt/stack/ovs<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="color:blue">BUILD_COMPLETE exist in /opt/stack/ovs though its empty.</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">><br>
> Regards<br>
> sean<br>
><br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: Samta Rangare [mailto:<a href="mailto:samtarangare@gmail.com" target="_blank">samtarangare@gmail.com</a>]<br>
> Sent: Monday, November 9, 2015 2:31 PM<br>
> To: Czesnowicz, Przemyslaw<br>
> Cc: OpenStack Development Mailing List (not for usage questions)<br>
> Subject: Re: [openstack-dev] [networking-ovs-dpdk]<br>
><br>
> Thanks for replying Przemyslaw, there is no ovs-vswitchd.log in /opt/stack/logs/. This is all contains inside (ovsdb-server.pid, screen).<br>
><br>
> When I cancel stack .sh (ctr c), and try to rerun this $sudo ovs-vsctl br-set-external-id br-ex bridge-id br-ex it didnt hang, that means vSwitch was running isn't it ?<br>
><br>
> But rerunning stack.sh after unstack hangs again.<br>
><br>
> Thanks,<br>
> Samta<br>
><br>
> On Mon, Nov 9, 2015 at 7:50 PM, Czesnowicz, Przemyslaw <<a href="mailto:przemyslaw.czesnowicz@intel.com" target="_blank">przemyslaw.czesnowicz@intel.com</a>> wrote:<br>
>> Hi Samta,<br>
>><br>
>> This usually means that the vSwitch is not running/has crashed.<br>
>> Can you check in /opt/stack/logs/ovs-vswitchd.log ? There should be an error msg there.<br>
>><br>
>> Regards<br>
>> Przemek<br>
>><br>
>>> -----Original Message-----<br>
>>> From: Samta Rangare [mailto:<a href="mailto:samtarangare@gmail.com" target="_blank">samtarangare@gmail.com</a>]<br>
>>> Sent: Monday, November 9, 2015 1:51 PM<br>
>>> To: OpenStack Development Mailing List (not for usage questions)<br>
>>> Subject: [openstack-dev] [networking-ovs-dpdk]<br>
>>><br>
>>> Hello Everyone,<br>
>>><br>
>>> I am installing devstack with networking-ovs-dpdk. The local.conf<br>
>>> exactly looks like the one is available in /opt/stack/networking-ovs-<br>
>>> dpdk/doc/source/_downloads/local.conf.single_node.<br>
>>> So I believe all the necessary configuration will be taken care.<br>
>>><br>
>>> However I am stuck at place where devstack is trying to set<br>
>>> external-id ($ sudo ovs-vsctl br-set-external-id br-ex bridge-id<br>
>>> br-ex). As soon as it hits at this place it's just hangs forever. I<br>
>>> tried commenting this line from<br>
>>> lib/neutron_plugin/ml2 (I know this is wrong) and then all services<br>
>>> came up except ovs-dpdk agent and ovs agent.<br>
>>><br>
>>> BTW I am deploying it in ubuntu 14.04. Any pointer will be really helpful.<br>
>>><br>
>>> Thanks,<br>
>>> Samta<br>
>>><br>
>>> __________________________________________________________<br>
>>> ________________<br>
>>> OpenStack Development Mailing List (not for usage questions)<br>
>>> Unsubscribe: OpenStack-dev-<br>
>>> <a href="http://request@lists.openstack.org?subject:unsubscribe" target="_blank">
request@lists.openstack.org?subject:unsubscribe</a><br>
>>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><u></u><u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div>