记录:ubuntu18.04中安装dpdk19.08
step1:
step2:依赖环境
-
apt-get install build-essential
-
apt-get install libnuma-dev
-
apt-get install libpcap-dev
step3:下载安装dpdk
去dpdk官网下:http://core.dpdk.org/download/
根据官方快速指南安装http://core.dpdk.org/doc/quick-start/
快速指南有两个注意的地方:echo 64 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
把echo 64 改为echo 512
build/app/testpmd -c7 -n3 --vdev=net_pcap0,iface=eth0 --vdev=net_pcap1,iface=eth1 -- -i --nb-cores=2 --nb-ports=2 --total-num-mbufs=2048
iface改成自己的网卡