home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

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>.

Table 1. Configuring CPU affinity on the default data plane
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.

vyatta@vyatta# set system default dataplane cpu-affinity 1-3,4
Commit the change.
vyatta@vyatta# commit
Show the configuration.
vyatta@vyatta# show system default dataplane
 default dataplane{
    cpu-affinity 1-3,6
 } 

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.