Run DPDK (Ubuntu 16.04.5)

Step 1. Install DPDK

Step 2. Add DPDK Driver: We need to add DPDK driver to ubuntu kernel

$sudo modprobe uio
$sudo insmod /usr/src/dpdk-stable-17.11.3/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko

Step 3. Bind DPDK driver

$ cd /usr/src/dpdk-stable-17.11.3/usertools
$./ --status

Network devices using kernel driver
0000:00:19.0 'Ethernet Connection I217-LM 153a' if=eth1 drv=e1000e unused=
0000:03:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' if=eth2 drv=ixgbe unused=
0000:03:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' if=eth3 drv=ixgbe unused=
0000:05:00.0 'I210 Gigabit Network Connection 1533' if=eth0 drv=igb unused= *Active*

$./ --bind=igb_uio 03:00.1

Step 4. Run example

$ cd /usr/src/dpdk-stable-17.11.3/examples/helloworld
$ make

$ cd build/app
$ ./helloworld -l 1-2 -n 4 (-l is core to be used, -n is # mem)

Etc. You can configure that some cores cannot be used by the linux kernel as follows.

GRUB_CMDLINE_LINUX_DEFAULT="... isolcpus=2,3,4"


Leave a Reply

Your email address will not be published. Required fields are marked *