使用 vRSS 計劃Plan the Use of vRSS

適用於:Windows Server(以每年次管道)、Windows Server 2016Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016

Windows Server 2016 中 vRSS 支援根據預設,但是您必須準備您的環境允許 vRSS 才能正確運作中一樣 (VM) 或介面卡 virtual (vNIC) 主機上。In Windows Server 2016, vRSS is enabled by default, however you must prepare your environment to allow vRSS to function correctly in a virtual machine (VM) or on a host virtual adapter (vNIC).

注意

Windows Server 2012 R2 vRSS 預設已停用。In Windows Server 2012 R2, vRSS was disabled by default.

這個計畫與準備包含下列步驟。This planning and preparation includes the following steps.

  • 確定實體網路介面卡相容一樣佇列 (VMQ),且已 10 Gbps 或多個連結的速度。Ensure that the physical network adapter is compatible with Virtual Machine Queue (VMQ) and has a link speed of 10 Gbps or more.
  • 請確定 VMQ 尚未實體而和 Hyper\ HYPER-V Virtual 切換連接埠Ensure that VMQ is enabled on the physical NIC and on the Hyper-V Virtual Switch port
  • 確定已設定為 VM 不單一根 Input\ 輸出模擬 (SR-IOV)。Ensure that there is no Single Root Input-Output Virtualization (SR-IOV) configured for the VM.
  • 確定 NIC 小組的設定正確。Ensure that NIC Teaming is configured correctly.
  • 請確定 VM 有多個處理器邏輯 (LPs)。Ensure that the VM has multiple logical processors (LPs).

注意

vRSS 也是預設的任何主機 vNICs 有 RSS 功能的支援。vRSS is also enabled by default for any host vNICs that have RSS enabled.

以下是您需要才能完成這些準備步驟的其他資訊。Following is additional information you need to complete these preparation steps.

  1. [網路介面卡容量Network Adapter Capacity. 確認網路介面卡可相容於一樣佇列 (VMQ) 已 10 Gbps 或多個連結的速度。Verify that the network adapter is compatible with Virtual Machine Queue (VMQ) and has a link speed of 10 Gbps or more. 如果低於 10 Gbps 連結速度,Hyper\ HYPER-V Virtual 開關切換至停用 VMQ 預設即使它仍會顯示 VMQ 為支援在結果中的 Windows PowerShell 命令取得-NetAdapterVmqIf the link speed is less than 10 Gbps, the Hyper-V Virtual Switch disables VMQ by default, even though it still shows VMQ as enabled in the results of the Windows PowerShell command Get-NetAdapterVmq. 您可以使用 VMQ 功能或停用其中一種方法是使用命令取得-NetAdapterVmqQueueOne method you can use to verify that VMQ is enabled or disabled is to use the command Get-NetAdapterVmqQueue. 如果已停用 VMQ,此命令的結果顯示已指派給 VM 或主機 virtual 網路介面卡未 QueueID。If VMQ is disabled, the results of this command show that there is no QueueID assigned to the VM or host virtual network adapter.

  2. 讓 VMQEnable VMQ. 請確認 VMQ 可以在主機上。Verify that VMQ is enabled on the host machine. 如果主機不支援 VMQ,vRSS 不會無法運作。vRSS does not work if the host does not support VMQ. 您可以檢查 VMQ 可以執行取得-VMSwitch並尋找 virtual 開關切換至所使用的介面卡。You can verify that VMQ is enabled by running Get-VMSwitch and finding the adapter that the virtual switch is using. 接著,執行取得-NetAdapterVmq ,並確保在結果中顯示介面卡,以及有 VMQ 支援。Next, run Get-NetAdapterVmq and ensure that the adapter is shown in the results and has VMQ enabled.

  3. 缺少 SR-IOVAbsence of SR-IOV. 確認單一根 Input\ 輸出模擬 (SR-IOV) Virtual 函式 (VF) 驅動程式不會附加到 VM 網路介面。Verify that a Single Root Input-Output Virtualization (SR-IOV) Virtual Function (VF) driver is not attached to the VM network interface. 您可以使用此驗證取得-NetAdapterSriov命令。You can verify this by using the Get-NetAdapterSriov command. 如果載入 Holden 驅動程式時,RSS 會使用此驅動程式的縮放比例設定而不是由 vRSS 設定。If a VF driver is loaded, RSS uses the scaling settings from this driver instead of those configured by vRSS. 如果 Holden 驅動程式不支援 RSS,vRSS 已停用。If the VF driver does not support RSS, then vRSS is disabled.

  4. NIC 的聯合設定NIC Teaming Configuration. 如果您使用 NIC 小組,請務必正確設定 VMQ NIC 的聯合設定的運作。If you are using NIC Teaming, it is important that you properly configure VMQ to work with the NIC Teaming settings. 適用於 NIC 小組部署與管理的詳細資訊,請查看NIC 小組For detailed information about NIC Teaming deployment and management, see NIC Teaming.

  5. LPs 的數字Number of LPs. 請確認 VM 有一個以上的邏輯處理器 (LP)。Verify that the VM has more than one logical processor (LP). vRSS 依賴 RSS,在 VM 中或載入平行處理多個 LPs 收到款項流量 HYPER-V 主機上。vRSS relies on RSS in the VM or on the Hyper-V host to load balance received traffic to multiple LPs for parallel processing. 您可以看到您 VM 已經執行 Windows PowerShell 命令多少 LPs取得-VMProcessor在主機中。You can observe how many LPs your VM has by running the Windows PowerShell command Get-VMProcessor in the host. 執行命令之後,您可以 LPs 數目觀察欄計數項目。After you run the command, you can observe the Count column entry for the number of LPs.

主機但 vNIC 隨時都能存取所有的實體處理器。設定使用特定號碼的處理器主機但 vNIC,使用的設定-BaseProcessorNumber-MaxProcessors執行時設定-NetAdapterRss Windows PowerShell 命令。The host vNIC always has access to all of the physical processors; to configure the host vNIC to use a specific number of processors, use the settings -BaseProcessorNumber and -MaxProcessors when you run the Set-NetAdapterRss Windows PowerShell command.

解析可能的問題Resolving possible 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 two possible issues.

  1. 您在執行準備步驟之前,vRSS 已停用-,現在必須支援。Before you performed preparation steps, vRSS was disabled - and now must be enabled. 您可以在執行設定為 VMNetworkAdapter以便 vRSS vm。You can run Set-VMNetworkAdapter to enable vRSS for the VM.
Set-VMNetworkAdapter <VMname> -VrssEnabled $TRUE
Set-VMNetworkAdapter -ManagementOS -VrssEnabled $TRUE
  1. RSS 已停用,在 VM 中,或在主機但 vNIC。RSS was disabled in the VM or on the host vNIC. 當 RSS 在 Windows Server 2016 中的預設功能時,它可能已停用其他人。While RSS is enabled by default in Windows Server 2016, it might have been disabled by someone else. 在 VM 中 \ (適用於在 VM\ vRSS) 或主機上 \ (適用於主機但 vNIC vRSS),執行取得-NetAdapterRss ,並觀察是否啟用欄位具有值TrueIn the VM (for vRSS in a VM) or on the host (for host vNIC vRSS), run Get-NetAdapterRss and observe whether the Enabled field has the value True. 如果您的設定值\ [false],您可以變更為為 True ,在 VM 中,執行下列 Windows PowerShell 命令。If the configured value is False, you can change it to True by running the following Windows PowerShell command in the VM.
Enable-NetAdapterRss *