Pick an appropriate set of CPUs for testpmd depending on:
Numa node of devices
Isolation of CPUs
In a guaranteed pod (exclusive CPUs), use cpus_allowed to figure out what CPUs to use
At the beginning, pin everything in the pod to the first CPU
Use remaining CPUs for PMDs
If on a bare-metal host of a VM, first look for CPUs that are isolated (not in cpus_allowed)
May need to look for multiple hints to figure out what CPUs are isolated, depending on the isolation method.
Number of devices and number of queues per device
In order to do this more effectively, we might need to expose what kind of endpoint the client-server osruntime is running in. This should make it easier to decide how to select CPUs.
Pick an appropriate set of CPUs for testpmd depending on:
In order to do this more effectively, we might need to expose what kind of endpoint the client-server osruntime is running in. This should make it easier to decide how to select CPUs.