解决 vRSS 问题Resolve vRSS issues

如果已完成所有准备步骤,但仍未看到 vRSS 负载平衡向 VM LPs 的流量,则可能存在不同的问题。If you have completed all of the preparation steps and you still do not see vRSS load balancing traffic to the VM LPs, there are different possible issues.

  1. 执行准备步骤之前,已禁用了 vRSS,必须启用。Before you performed preparation steps, vRSS was disabled - and now must be enabled. 可以运行VMNetworkAdapter来为 VM 启用 vRSS。You can run Set-VMNetworkAdapter to enable vRSS for the VM.

    Set-VMNetworkAdapter <VMname> -VrssEnabled $TRUE
    Set-VMNetworkAdapter -ManagementOS -VrssEnabled $TRUE
    
  2. 已在 VM 或主机 vNIC 上禁用 RSS。RSS was disabled in the VM or on the host vNIC. 默认情况下,Windows Server 2016 启用 RSS;有人可能已将其禁用。Windows Server 2016 enables RSS by default; someone might have disabled it.

    • Enabled = TrueEnabled = True

    查看当前设置:View the current settings:

    在 vm 中的虚拟机 ( ) 上或在主机上为 ( 主机 vNIC VRSS 运行以下 PowerShell cmdlet ) 。Run the following PowerShell cmdlet in the VM(for vRSS in a VM) or on the host (for host vNIC vRSS).

    Get-NetAdapterRss
    

    启用此功能:Enable the feature:

    若要将值从 False 更改为 True,请运行以下 PowerShell cmdlet。To change the value from False to True, run the following PowerShell cmdlet.

    Enable-NetAdapterRss *
    

    另一种用于配置 RSS 的系统范围的方法是使用 netsh。Another system-wide way to configure RSS is using netsh. 用途Use

    netsh int tcp show global
    

    确保未全局禁用 RSS。to make sure that RSS isn't disabled globally. 并在必要时启用它。And enable it if necessary. 此设置不会被 *-Get-netadapterrss 所涉及。This setting isn't touched by *-NetAdapterRSS.

  3. 如果在配置 vRSS 后发现 VMMQ 未启用,请在每个连接到虚拟交换机的适配器上验证以下设置:If you find VMMQ is not enabled after you configure vRSS, verify the following settings on each adapter attached to the virtual switch:

    • VmmqEnabled = FalseVmmqEnabled = False
    • VmmqEnabledRequested = TrueVmmqEnabledRequested = True

    vmmq-已启用

    查看当前设置:View the current settings:

    Get-NetAdapterAdvancedProperty -Name NICName -DisplayName 'Virtual Switch RSS'
    

    启用此功能:Enable the feature:

    Set-NetAdapterAdvancedProperty -Name NICName -DisplayName 'Virtual Switch RSS' -DisplayValue Enabled”
    
  4. _ (Windows Server 2019) VrssQueueSchedulingMode设置为动态时,不能启用 VMMQ (VmmqEnabled = False) 。(Windows Server 2019)_ You cannot enable VMMQ (VmmqEnabled = False) while setting VrssQueueSchedulingMode to Dynamic. 启用 VMMQ 后,VrssQueueSchedulingMode 不会更改为动态。The VrssQueueSchedulingMode does not change to Dynamic once VMMQ is enabled.

    启用 VMMQ 后,动态 VrssQueueSchedulingMode需要驱动程序支持。The VrssQueueSchedulingMode of Dynamic requires driver support when VMMQ is enabled. VMMQ 是对逻辑处理器上的数据包位置的卸载,因此需要驱动程序支持才能利用动态算法。VMMQ is an offload of the packet placement on logical processors and as such, requires driver support to leverage the dynamic algorithm. 请安装 NIC 供应商的驱动程序和支持动态 VMMQ 的固件。Please install the NIC vendor's driver and firmware that supports Dynamic VMMQ.