Go to main content

Managing Network Virtualization and Network Resources in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020
 
 

How to Allocate CPUs to a Datalink

Before You Begin

Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.

  1. Verify the CPU assignments for the interface.
    $ dladm show-linkprop -p cpus link
  2. Assign CPUs to the link.

    A list of CPUs that process packets for the datalink. Interrupts for the datalink might also be targeted to one of the CPUs in the list.

    $ dladm set-linkprop -p cpus=cpu1,cpu2,... link
    cpu1,cpu2,...

    Refers to the CPU number that you want to assign to the link. You can dedicate multiple CPUs to the link.

  3. (Optional) Display the CPUs that are associated with the link.
    $ dladm show-linkprop -p cpus link
Example 78  Allocating CPUs to a Datalink

This example shows how to dedicate specific CPUs to the datalink net0.

$ dladm show-linkprop -p cpus net0
LINK     PROPERTY     PERM    VALUE        EFFECTIVE    DEFAULT   POSSIBLE
net0     cpus         rw      --           0-2          --        -- 

The output shows that the system has implicitly assigned three CPUs (0-2) to the datalink net0. However, the CPUs are not exclusively allocated to the datalink net0.

$ dladm set-linkprop -p cpus=0,1 net0
$ dladm show-linkprop -p cpus net0
LINK     PROPERTY     PERM    VALUE        EFFECTIVE    DEFAULT   POSSIBLE
net0     cpus         rw      0-1          0-1          --        -- 

The output shows that you have explicitly assigned two CPUs (0-1) to the datalink net0. The allocated CPUs will process packets for the datalink net0.