Supported platforms

Vyatta NOS documentation

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

Configuring CPU affinity on a data plane interface

By default, the vRouter assigns a CPU to a dataplane interface in a round-robin manner. The following example provides a configuration of CPU affinity on a data plane interface by using system interface dataplane <id> cpu-affinity <cpu-list>.

Table 1. Configuring CPU affinity on a data plane interface
Step Command

Assign the CPU ID for affinity on a data plane interface.

For the CPU ID, enter its number, a range of numbers separated by a hyphen or a comma-separated list.

vyatta@vyatta# set interface dataplane dp0p192p1 cpu-affinity 1 
Commit the change.
vyatta@vyatta# commit
Show the configuration.
vyatta@vyatta# show interfaces dataplane
 dataplane dp0p192p1 {
    cpu-affinity 1

If you configure a limited number of CPUs, the number of receive queues are reduced. If you configure a CPU that does not exist or is not defined as used for the data plane, then a message is logged and the interface does not start.