Go to main content

Managing Network Virtualization and Network Resources in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018
 
 

Allocating CPUs to a Datalink

This section describes how to assign CPU resources to a datalink by configuring the cpu property. Unlike rings, you cannot allocate CPUs exclusively for a datalink. You can allocate the same set of CPUs to multiple datalinks.

How to Allocate CPUs to a Datalink

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Verify the CPU assignments for the interface.
    # dladm show-linkprop -p cpus link
  3. 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.

  4. (Optional) Display the CPUs that are associated with the link.
    # dladm show-linkprop -p cpus link
Example 76  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.