Automatically assign logical cores to vNICs such that dedicated logical cores manage the incoming traffic to and outgoing traffic from vNICs.

With a switch configured in the enhanced datapath mode, if a single logical core is associated to a vNIC, then that logical core processes bidirectional traffic coming into or going out of a vNIC. When multiple logical cores are configured, the host automatically determines which logical core must process a vNIC's traffic.

Assign logical cores to vNICs based on one of these parameters.
  • vNIC-count: Host assumes transmission of incoming or outgoing traffic for a vNIC direction requires same amount of the CPU resource. Each logical core is assigned the same number of vNICs based on the available pool of logical cores. It is the default mode. The vNIC-count mode is reliable, but is not optimal for an asymmetric traffic.
  • CPU-usage: Host predicts the CPU usage to transmit incoming or outgoing traffic at each vNIC direction by using internal statistics. Based on the usage of CPU to transmit traffic, host changes the logical core assignments to balance load among logical cores. The CPU usage mode is more optimal than vNIC-count, but unreliable when traffic is not steady.

In CPU usage mode, if the traffic transmitted changes frequently, then the predicted CPU resources required and vNIC assignment might also change frequently. Too frequent assignment changes might cause packet drops.

If the traffic patterns are symmetric among vNICs, the vNIC-count option provides reliable behavior, which is less vulnerable to frequent changes. However, if the traffic patterns are asymmetric, vNIC-count might result in packet drops since it does not distinguish the traffic difference among vNICs.

In vNIC-count mode, it is recommended to configure an appropriate number of logical cores so that each logical core is assigned to the same number of vNICs. If the number of vNICs associated to each logical core is different, CPU assignment is unfair and performance is not deterministic.

When you connect or remove a vNIC or a logical core, the host automatically reflects the changes.

Procedure

  • To switch from one mode to another mode, run the following command.
    set ens lcore-assignment-mode <hs-name-arg><ens-lc-mode-arg>

    Where, <ens-lc-mode-arg> refers to the ENS logical core assignment mode name. This argument can be set to the mode vNIC-count or cpu-usage.

    vNIC-count is the logical core assignment based on vNIC/Direction count.

    cpu-usage is the logical core assignment based on CPU usage.

    Where, <hs-name-arg> refers to the host switch name.

    For example, esx-1> set ens lcore-assignment-mode nsxvswitch cpu-usage