Use this example procedure to prepare a cluster node for DPDK.
We provide this example procedure purely for informational purposes. See DPDK documentation
(https://core.dpdk.org/doc/) for the
official procedure.
-
Enable Intel VT-d and SR-IOV in the BIOS.
-
Configure huge pages and enable IOMMU by editing
/etc/default/grub. For example (for a huge page size of 1 GB):
GRUB_CMDLINE_LINUX_DEFAULT="default_hugepagesz=1G hugepagesz=1G hugepages=16 intel_iommu=on iommu=pt”
Update grub and reboot:
sudo update-grub
sudo reboot
-
Load the poll mode driver (PMD) kernel module according to the capabilities of your
NIC.
-
If your NIC supports VFIO, then you might not need to do anything explicitly.
Recent kernels include VFIO compiled in. If you need to load it:
sudo modprobe vfio-pci
-
If your NIC only supports UIO:
sudo modprobe uio_pci_generic
Note:
Some kernel versions do not automatically include uio_pci_generic. If you see a
Module uio_pci_generic not found error, then install the module
first (for example: sudo apt install
linux-modules-extra-5.4.0-xx-generic) before
loading the module.