Skip to content

Instantly share code, notes, and snippets.

@chenziliang
Forked from PatrickDehkordi/DPDK on AWS howto
Created May 29, 2019 06:44
Show Gist options
  • Save chenziliang/544e4a3c9b3232325a22f6a070245700 to your computer and use it in GitHub Desktop.
Save chenziliang/544e4a3c9b3232325a22f6a070245700 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment