For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

You are reading Fast Path Provider 2.11, an older release. The newest release is 3.2. Go to 3.2

Configure the Data Plane node

This tutorial shows how to configure Data Plane nodes to achieve the best performance.

Enable HugePages

To run Fast Path Provider with the Data Plane Development Kit (DPDK) and physical NICs, you must enable HugePages on the node.

  1. You can enable HugePages through sysfs, which should be executed early in the boot process:

    bash

    You can enable HugePages permanently after a node boot through kernel boot options: hugepagesz=2M hugepages=6000. To activate these options, add them to, for example, /etc/default/grub and run the following command:

    bash
  2. To make grub changes effective, reboot the host.

  3. Make sure to allocate 6,000 of 2MB HugePages per node.

  4. To verify whether the HugePages were configured properly and are visible in Kubernetes as an allocable resource, run:

    bash

    Sample output:

    text

Configure CPU governor

Set CPU frequency scaling to performance to always keep the highest available CPU Hz set. These are sample commands to do so in the Ubuntu system:

bash

To check the current CPU scaling governor set, run the following command on node:

bash

Set CPU affinity for system daemons

To better isolate the workload from system processes, set CPU affinity for system daemons:

bash

See the output example:

text

As you can see in the output, the system deamon services are processed on dedicated cores 30-13, 62-63. This means that, for example, kubelet run on those cores.

Define IRQ balance

Configure which CPUs can handle NIC interrupts by defining the banned CPU mask:

bash

See the output example:

text

The IRQBALANCE_BANNED_CPUS value defines a CPU mask in hex, specifying which cores are excluded from handling NIC interrupts. In this case,0x3fffffff,0x3fffffff bans specific CPU cores, keeping them free for processes like VPP.

Configure GRUB

To use DPDK-enabled uplink interfaces, you need GRUB configuration. DPDK driver requires to use IOMMU-enabled platform with the isolation of IOMMU groups - for processor-based (northbridge) PCI root ports and controller hub-based (southbridge) PCI root ports. These are Access Control Service (ACS) capabilities.

  1. To enable IOMMU grouping, add the following to boot options:

    text
  2. To activate those options, add them to, for example, /etc/default/grub and run the following command:

    bash
  3. Reboot the host.

  4. To see what is the current GRUB config, run:

    bash
  5. To check whether the system supports IOMMU grouping, run:

    bash

    The proper output should look as follows:

    text

    If the platform does not support IOMMU grouping, then the above output would look like the following one:

    text

Configuration for VFIO-no-IOMMU platform

When a worker node does not support IOMMU, you can run FPP by disabling IOMMU. Make sure that the following boot options are not set in /proc/cmdline:

bash

For DPDK driver to pick up NIC (PF/VF) on platform that does not support IOMMU, enable unsafe no-iommu mode:

bash

Apply the above setting after each node restart.

To check if the kernel supports no-iommu module, run:

bash

The output confirms that the no-iommu module is supported:

text

Configure Kubelet

You can configure Kubelet with strict CPU allocation rules:

text

The above configuration enables Kubernetes to assign cores to the workload pods (cpuManagerPolicy: static). Do not use cores assigned to systemd daemons (reserved-cpus: 30-31,62-63) and also try to fit the pod on a single numa node.

Update the Intel DDP package

FPP supports Intel E810 NIC cards after updating the Dynamic Device Personalization (DDP) package. Perform the following steps to update the DDP package:

  1. Download the DDP package from the Intel driver pageOpens in a new tab, tested with 1.3.37.0 version.

  2. Unpack the downloaded zip file and unpack the ice_comms-1.3.37.0.zip file located inside.

  3. Copy the DDP package file ice_comms-1.3.37.0.pkg to /lib/firmware/intel/ice/ddp/.

  4. In the same directory (/lib/firmware/intel/ice/ddp), create symlink /lib/firmware/intel/ice/ddp/ice.pkg to point to the file you copied earlier:

    bash

    See the output example:

    text

    The ice_comms-1.3.37.0.pkg file is the DDP package file. The ice.pkg symlink points to this package, confirming that the file is correct.

  5. On the host, run update-initramfs -c -k $(uname -r) to update initrd. All PFs must have the same DDP package version.

  6. Reboot the node to load the updated DDP package.

  7. Check whether the DDP package has been updated.

    bash

    The output confirms that the DDP package was successfully loaded:

    text