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.

Defining CPUs and CPU sets for low-power systems

Assume a eight-core system installed with vCPE . Furthermore, the system is to be provisioned with two guests, one installed with vRouter. You must first provision the data plane with CPU 0 and then provision the guests with unique CPUs.

Perform the following steps to define values for cpus and cpuset for the data plane and guests of the system.
  1. Determine the number of CPUs of the system by entering this command at the terminal prompt: cat /proc/cpuinfo
    The result displays the details for the CPUs.
    
    processor       : 7
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 77
    model name      : Intel(R) Atom(TM) CPU  C2758  @ 2.40GHz
    
  2. To allow the data plane to use four CPUs, enter this command at the terminal prompt: set system default dataplane cpu-affinity 0-3
  3. Restart the system.
  4. Display the CPU affinity set on the data plane by entering this command in configuration mode: show system default dataplane cpu-affinity
    A result similar to the following is displayed:
    cpu-affinity 0-3

    The system used in this example has eight CPUs. The first four CPUs are used by the data plane, which enables the guests to use the next four CPUs. If you provision a guest that requires two CPUs, you can define the guest CPU set as 4-5. If you now provision a second guest, you must define the guest CPU set as 6 to make the CPU set unique from the data plane and the first guest.