Depending on the OS there maybe other ways to accomplish core isolation, but it is documented in this page, section
[1]. You need to add the cores to the linux command line,
In the example you have given will need to add isolcpus=0-2 to the linux command line.
You will likely want to inspect system cores and make sure they are on the same numa node by ensuring that those cores are on the same 'physical core' and you can do that by examining /proc/cpuinfo and verifying the cores have the same 'physical id'.
You can see on this system, core 0 is on numa 0 and core 1, is on numa 1, this would not be an optimal configuration, and instead it would be better to use 2,4,6 or 3,5,7. You maybe asking why cores 0,1 were omitted, and that is because some clock and timing functions of the kernel run on the first core of the physical cpu.
$ cat /proc/cpuinfo | grep 'processor\|physical'
processor : 0
physical id : 0
address sizes : 46 bits physical, 57 bits virtual
processor : 1
physical id : 1
address sizes : 46 bits physical, 57 bits virtual
processor : 2
physical id : 0
address sizes : 46 bits physical, 57 bits virtual
processor : 3
physical id : 1
Aother tip is you will want the cores to be on the same path as the datapath nic. You can determine which numa node the network device is attached to by inspecting the following file for the nic you are using for the datapath.
# cat /sys/class/net/eno12399/device/numa_node
0
Reference Link(s):