Pktgen Dpdk different socket ID on different cores error

Solution 1:

DPDK pktgen relies on the user to share lcore mask matching to NUMA-Socket on which NIC port exists. That for higher performance, dpdk-pktgen mandates the NIC NUMA and CPU core NUMA should be the same. Failing to do so, will lead to port 0 on socket ID 0 has different socket ID on lcore 1 socket ID 1.

Solution: either use lscpu or dpdk-cpulayout to identify the core mask or lcoremask necessary for NUMA-0. Then run the application with new core mask.

example:

  1. On non dell servers these can be -c 0xf0 or -l 2,3,4,5
  2. on dell server this can be -c 0x154 or -l 2,4,6