Skip to content

Instantly share code, notes, and snippets.

@PatrickDehkordi
Last active February 15, 2020 07:57
Show Gist options
  • Save PatrickDehkordi/6e2a56a805be12ef76309cb0dc95ff8e to your computer and use it in GitHub Desktop.
Save PatrickDehkordi/6e2a56a805be12ef76309cb0dc95ff8e to your computer and use it in GitHub Desktop.
Installing and configuring DPDK on AWS
sudo yum install numactl-devel
wget https://fast.dpdk.org/rel/dpdk-17.11.2.tar.xz
cd dpdk-stable-17.11.2/
make config T=x86_64-native-linuxapp-gcc
make
sudo modprobe uio
sudo insmod /home/ec2-user/dpdk-stable-17.11.2/build/kmod/igb_uio.ko
sudo yum install pciutils
sudo vi /etc/sysctl.conf vm.nr_hugepages = 1024
sudo sysctl -p
sudo grep Huge /proc/meminfo
Or setup scripts
sudo mkdir /mnt/huge
sudo mount -t hugetlbfs nodev /mnt/huge
sudo ./dpdk-devbind.py --bind=igb_uio eth1
sudo ./dpdk-devbind.py --status
RTE_SDK - Points to the DPDK installation directory.
export RTE_SDK=/home/ec2-user/dpdk-stable-17.11.2
RTE_TARGET - Points to the DPDK target environment directory.
export RTE_TARGET=x86_64-native-linuxapp-gcc
RTE_TARGET exported as x86_64-native-linuxapp-gcc
cd /examples/helloworld
make
ls build/app
sudo ./build/helloword -l 0-1 -n 2
@nuwansa
Copy link

nuwansa commented Feb 15, 2020

make T=x86_64-native-linuxapp-gcc

typo ->sudo ./build/helloworld -l 0-1 -n 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment