Rate This Document
Findability
Accuracy
Completeness
Readability

Tuning the DPDK Program

Purpose

Adjust the running parameters of the DPDK test program to maximize the program forwarding performance.

Method

This test uses the TM280 LOM (4 x 25G). During the test, the program startup parameters are optimized. The following uses the testpmd test program as an example. Other DPDK tests are similar.

Run the following command to start the program:

1
./testpmd -c 0xff -n 4 -w 0000:05:00.0 -- --txq=4 --rxq=4 --txd=1024 --rxd=1024--nb-cores=4 -i

Parameter

Optimization Description

-c

Mask of the CPU for binding interrupts to cores. The value is determined based on the NUMA node where the LOM is located.

-n

Number of memory channels in the environment. Set this parameter based on the actual situation.

-w

PCI address of the network port used for forwarding.

--txq/rxq

Number of LOM queues to be used. Binding LOM queues to cores for forwarding can improve the performance.

--rxd/txd

LOM queue depth. Adjusting the LOM queue depth can improve the overall performance.

--nb-cores

Number of CPU cores used for forwarding. The value is obtained based on the value of -c.

The tuning methods for different OSs and test programs are similar. You can adjust the number of LOM queues and cores for forwarding to improve the DPDK forwarding performance.