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.
You can enable HugePages through
sysfs, which should be executed early in the boot process:bashYou 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/gruband run the following command:bashTo make grub changes effective, reboot the host.
Make sure to allocate 6,000 of 2MB HugePages per node.
To verify whether the HugePages were configured properly and are visible in Kubernetes as an allocable resource, run:
bash
Sample output:
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:
To check the current CPU scaling governor set, run the following command on node:
Set CPU affinity for system daemons
To better isolate the workload from system processes, set CPU affinity for system daemons:
This allows the processing of systemd services on dedicated cores 30-13, 62-63. This means, for example, kubelet run on those cores.
Define IRQ balance
Configure which CPUs can handle NIC interrupts by defining the banned CPU mask:
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.
To enable IOMMU grouping, add the following to boot options:
textTo activate those options, add them to, for example,
/etc/default/gruband run the following command:bashReboot the host.
To see what is the current GRUB config, run:
bashTo check whether the system supports IOMMU grouping, run:
bash
The proper output should look as follows:
If the platform does not support IOMMU grouping, then the above output would look like the following one:
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:
For DPDK driver to pick up NIC (PF/VF) on platform that does not support IOMMU, enable unsafe no-iommu mode:
Apply the above setting after each node restart.
To check if the kernel supports no-iommu module, run:
Configure Kubelet
You can configure Kubelet with strict CPU allocation rules:
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:
Download the DDP package from the Intel driver pageOpens in a new tab, tested with
1.3.37.0version.Unpack the downloaded zip file and unpack the
ice_comms-1.3.37.0.zipfile located inside.Copy the DDP package file
ice_comms-1.3.37.0.pkgto/lib/firmware/intel/ice/ddp/.In the same directory (
/lib/firmware/intel/ice/ddp), create symlink/lib/firmware/intel/ice/ddp/ice.pkgto point to the file you copied earlier:bashOn the host, run
update-initramfs -c -k $(uname -r)to update initrd. All PFs must have the same DDP package version.Reboot the node to load the updated DDP package.
Check whether the DDP package has been updated.
bash