step1:记录:ubuntu18.04中安装dpdk19.08
step2:依赖环境

  1. apt-get install build-essential

  2. apt-get install libnuma-dev

  3. 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改成自己的网卡

相关文章:

  • 2021-11-09
  • 2021-08-07
  • 2021-12-20
  • 2021-06-05
  • 2021-07-29
  • 2021-04-10
  • 2021-10-11
  • 2021-12-01
猜你喜欢
  • 2022-01-23
  • 2021-10-09
  • 2021-05-16
  • 2022-12-23
  • 2021-12-20
  • 2021-07-13
  • 2021-10-06
相关资源
相似解决方案