How do I get up and running quickly with the DPDK SDK?

How do I get up and running quickly with the DPDK SDK?

To start working with DPDK and get up and running quickly, download, compile, and verify the build by running  poll mode test, go to this quick start guide.

http://dpdk.org/doc/quick-start

To optimize and accelerate a software switch with an Openflow framework then use these instructions to build a high performance vSwitch using Open vSwitch integrated with DPDK.

https://github.com/01org/dpdk-ovs/blob/development/docs/01_Installation.md

This overview will offer some background and operational modes to consider when using DPDK.
https://github.com/01org/dpdk-ovs/blob/development/docs/00_Overview.md

4 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

Hi 

I am new to DPDK and need help for one of my blocker issue related to testpmd.

Issue: testpmd crashes with below logs

./testpmd 
traps: testpmd-cc[4954] trap invalid opcode ip:47409e sp:7ffe7466de68 error:0 in testpmd-cc[400000+67f000]
Illegal instruction (core dumped)

I am trying to CrossCompile and run DPDK for one of my target arch - x86_64.

DPDK version : 18.05

Compilation steps:

1) make config CROSS=/opt/wios/gcc-5.3.0-glibc-2.21-4.14.30/x86_64-wios-linux-gnu/bin/x86_64-wios-linux-gnu- T=x86_64-native-linuxapp-gcc RTE_KERNELDIR=/home/symbol/kenvish/wing7_vpp/wing/obj/nuxi-bare_metal-4.14.30/src/kernel/4.14.30-ws-symbol/linux-4.14.30 V=2

2) make install CROSS=/opt/wios/gcc-5.3.0-glibc-2.21-4.14.30/x86_64-wios-linux-gnu/bin/x86_64-wios-linux-gnu- T=x86_64-native-linuxapp-gcc RTE_KERNELDIR=/home/symbol/kenvish/wing7_vpp/wing/obj/nuxi-bare_metal-4.14.30/src/kernel/4.14.30-ws-symbol/linux-4.14.30 V=2

Target Details:

$ uname -a
Linux nx9000-6C883E 4.14.30-ws-symbol #1 SMP PREEMPT Thu Sep 20 15:04:33 IST 2018 x86_64 GNU/Linux

Testpmd binary details:

$ file testpmd
testpmd: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped

DPDK-init script before running testpmd. (All the commands in the script gets executed without any error)

#!/bin/sh

/sbin/insmod /lib/modules/4.14.30-ws-symbol/kernel/drivers/net/ethernet/intel/igb/igb.ko.lzma

/sbin/insmod /lib/modules/4.14.30-ws-symbol/kernel/drivers/uio/uio.ko.lzma
/sbin/insmod /lib/modules/4.14.30-ws-symbol/kernel/drivers/uio/uio_pci_generic.ko.lzma
/sbin/insmod /lib/modules/4.14.30-ws-symbol/extra/dpdk/igb_uio.ko.lzma

/share/dpdk/usertools/dpdk-devbind.py --status
/share/dpdk/usertools/dpdk-devbind.py --bind=igb_uio eth0
/share/dpdk/usertools/dpdk-devbind.py --bind=igb_uio eth1
/share/dpdk/usertools/dpdk-devbind.py --status

echo 64 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
mkdir -p /mnt/huge
mount -t hugetlbfs nodev /mnt/huge

Hi 

I am new to DPDK and need help for one of my blocker issue related to testpmd.

Issue: testpmd crashes with below logs

./testpmd 
traps: testpmd-cc[4954] trap invalid opcode ip:47409e sp:7ffe7466de68 error:0 in testpmd-cc[400000+67f000]
Illegal instruction (core dumped)

I am trying to CrossCompile and run DPDK for one of my target arch - x86_64.

DPDK version : 18.05

Compilation steps:

1) make config CROSS=/opt/wios/gcc-5.3.0-glibc-2.21-4.14.30/x86_64-wios-linux-gnu/bin/x86_64-wios-linux-gnu- T=x86_64-native-linuxapp-gcc RTE_KERNELDIR=/home/symbol/kenvish/wing7_vpp/wing/obj/nuxi-bare_metal-4.14.30/src/kernel/4.14.30-ws-symbol/linux-4.14.30 V=2

2) make install CROSS=/opt/wios/gcc-5.3.0-glibc-2.21-4.14.30/x86_64-wios-linux-gnu/bin/x86_64-wios-linux-gnu- T=x86_64-native-linuxapp-gcc RTE_KERNELDIR=/home/symbol/kenvish/wing7_vpp/wing/obj/nuxi-bare_metal-4.14.30/src/kernel/4.14.30-ws-symbol/linux-4.14.30 V=2

Target Details:

$ uname -a
Linux nx9000-6C883E 4.14.30-ws-symbol #1 SMP PREEMPT Thu Sep 20 15:04:33 IST 2018 x86_64 GNU/Linux

Testpmd binary details:

$ file testpmd
testpmd: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped

DPDK-init script before running testpmd. (All the commands in the script gets executed without any error)

#!/bin/sh

/sbin/insmod /lib/modules/4.14.30-ws-symbol/kernel/drivers/net/ethernet/intel/igb/igb.ko.lzma

/sbin/insmod /lib/modules/4.14.30-ws-symbol/kernel/drivers/uio/uio.ko.lzma
/sbin/insmod /lib/modules/4.14.30-ws-symbol/kernel/drivers/uio/uio_pci_generic.ko.lzma
/sbin/insmod /lib/modules/4.14.30-ws-symbol/extra/dpdk/igb_uio.ko.lzma

/share/dpdk/usertools/dpdk-devbind.py --status
/share/dpdk/usertools/dpdk-devbind.py --bind=igb_uio eth0
/share/dpdk/usertools/dpdk-devbind.py --bind=igb_uio eth1
/share/dpdk/usertools/dpdk-devbind.py --status

echo 64 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
mkdir -p /mnt/huge
mount -t hugetlbfs nodev /mnt/huge

Wonderful!!! Thanks a lot.....Thomas! You have shown the beatuy of such a nice tool....

soundcloud downloader

发表评论

登录添加评论。还不是成员?立即加入