Here are the steps to install DPDK 19.08 library on Linux:
- 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
- Extract the source code using tar command:
   tar -xvf dpdk-19.08.tar.xz
- Install dependencies required for DPDK:
   sudo apt-get update
   sudo apt-get install build-essential linux-headers-$(uname -r) numactl
- Go to the DPDK directory:
   cd dpdk-19.08
- Configure the DPDK build using the following command:
   make config T=x86_64-native-linuxapp-gcc
- Build the DPDK library using the following command:
   make
- Install the DPDK library using the following command:
   sudo make install
- 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.
- Add the DPDK library path to the LD_LIBRARY_PATH environment variable:
   export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
- 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).


 
                             
         
        
 
         
         
         
         
         
         
        
 
                 
                 
                 
                 
                 
                 
                 
                 
                 
                