Configuring CPU affinity on the default data plane
By default, the default data plane use all CPUs. The following example provides the configuration for CPU affinity on the default data plane by using system default dataplane cpu-affinity <cpu-list>.
Step | Command |
---|---|
Assign the CPUs for affinity on the default data plane. Enter the CPU IDs as a range of numbers separated by a hyphen or a comma-separated list. |
|
Commit the change. |
|
Show the configuration. |
|
The CPU ID does not have to exist in the system where the data plane is running. For example, if you configure cpu-affinity with a range of 0-3 and the data plane is running on a two CPU system, then the data plane only uses CPUs 0 and 1 and silently ignores the other CPUs in the affinity.
If cpu-affinity is out of the range of the available CPUs in the data plane environment, for example, if you configure cpu-affinity with a range of 4-7 on a two CPU system, the data plane is not started.