DPDK的安裝

Koma_Wong發表於2018-10-13

目錄

DPDK網址

下載

安裝

1.解壓

2.開啟pcap

3.安裝依賴

4.編譯:

5.後續


DPDK網址

https://www.dpdk.org/

下載

下載地址:https://core.dpdk.org/download/

安裝

1.解壓

$ls
dpdk-18.02.2.tar.xz
$ tar xf dpdk-18.02.2.tar.xz 
$ ls
dpdk-18.02.2.tar.xz  dpdk-stable-18.02.2
$ cd dpdk-stable-18.02.2/
$ ls
app         devtools  examples     license      meson.build        pkg     usertools
buildtools  doc       GNUmakefile  MAINTAINERS  meson_options.txt  README
config      drivers   lib          Makefile     mk                 test

2.開啟pcap

$ make config T=x86_64-native-linuxapp-gcc
Configuration done using x86_64-native-linuxapp-gcc
$ sed -ri 's,(PMD_PCAP=).*,\1y,' build/.config

3.安裝依賴

安裝依賴numactl,libpcap:

$sudo yum install numactl-devel*x86_64 ​libpcap*

4.編譯:

$make

5.後續

$ sudo mkdir -p /mnt/huge
$ sudo mount -t hugetlbfs nodev /mnt/huge
$ su
# echo 64 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages

網址:http://core.dpdk.org/doc/quick-start/

相關文章