Category Archives: DPDK

Setting up DPDK 18.08 in Ubuntu 18.04

I’m just testing, this post isn’t complete nor should it be used.

sudo apt install gcc gcc-multilib libnuma-dev python python3.7 python-dev python-pip dpdk hugepages

sudo vim /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT=default_hugepagesz=1G hugepagesz=1G hugepages=4
GRUB_CMDLINE_LINUX=default_hugepagesz=1GB hugepagesz=1G hugepages=4

sudo vim /etc/sysctl.conf

kernel.shmmax = 8589934592
vm.hugetlb_shm_group = 0
vm.nr_hugepages = 8

sudo vim /etc/security/limits.conf

* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
* soft memlock 8388608
* hard memlock 8388608

sudo shutdown -r now

git clone https://dpdk.org/git/dpdk 

 cd dpdk

make config T=x86_64-native-linuxapp-gcc 

 make T=x86_64-native-linuxapp-gcc 

 make install T=x86_64-native-linuxapp-gcc

These steps are still not persistent after reboots:

sudo modprobe uio i40e vfio-pci

sudo insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko

./usertools/dpdk-devbind.py --status |grep Eth

sudo ./usertools/dpdk-devbind.py --bind=igb_uio enp1s0f0

./usertools/dpdk-devbind.py --status
Advertisements