ZBLOG

linux dpdk19.08库安装

Here are the steps to install DPDK 19.08 library on Linux:

  1. Download the DPDK source code from the official website (https://www.dpdk.org/download/) or using the following command:
   wget https://fast.dpdk.org/rel/dpdk-19.08.tar.xz
  1. Extract the source code using tar command:
   tar -xvf dpdk-19.08.tar.xz
  1. Install dependencies required for DPDK:
   sudo apt-get update
   sudo apt-get install build-essential linux-headers-$(uname -r) numactl
  1. Go to the DPDK directory:
   cd dpdk-19.08
  1. Configure the DPDK build using the following command:
   make config T=x86_64-native-linuxapp-gcc
  1. Build the DPDK library using the following command:
   make
  1. Install the DPDK library using the following command:
   sudo make install
  1. Set up huge pages by running the following commands:
   sudo mkdir -p /mnt/huge
   sudo mount -t hugetlbfs nodev /mnt/huge
   echo 64 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages

Note: You may need to adjust the number of hugepages based on your system’s memory.

  1. Add the DPDK library path to the LD_LIBRARY_PATH environment variable:
   export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
  1. Test the installation by running the testpmd application:
   ./app/testpmd -c 0x3 -n 4 -- -i

Note: The above command assumes that you have two CPU cores available (0x3), and you want to use four memory channels (-n 4).

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://sdn.0voice.com/?id=29

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?