計劃 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) 或在主機虛擬介面卡 (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.

當您計劃,並準備 vRSS 使用時,確保:When you plan and prepare the use of vRSS, ensure that:

  • 實體網路介面卡與虛擬機器佇列 (VMQ) 相容,並具有 10 gbps 連結速度或多個。The physical network adapter is compatible with Virtual Machine Queue (VMQ) and has a link speed of 10 Gbps or more.
  • VMQ 已啟用 HYPER-V 虛擬交換器連接埠和實體 NIC 上VMQ is enabled on the physical NIC and on the Hyper-V Virtual Switch port
  • 沒有任何單一根 Input\ 輸出虛擬化 (SR-IOV) 設定 vm。There is no Single Root Input-Output Virtualization (SR-IOV) configured for the VM.
  • NIC 小組已正確設定。NIC Teaming is configured correctly.
  • VM 有多個邏輯處理器 (LPs)。The VM has multiple logical processors (LPs).

注意

vRSS 也會有 RSS 啟用任何主機 Vnic 的預設啟用。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-V 虛擬交換器會停用 VMQ 根據預設,即使它仍會顯示 VMQ 為已啟用的 Windows PowerShell 命令Get NetAdapterVmq結果中。If 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 是啟用或停用的其中一種方法是使用命令Get NetAdapterVmqQueueOne method you can use to verify that VMQ is enabled or disabled is to use the command Get-NetAdapterVmqQueue. 如果已停用 VMQ,這個命令的結果會顯示已指派給 VM 或主機虛擬網路介面卡沒有 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 的啟用方式執行Get vmswitch 供應,然後尋找正在使用之虛擬交換器的介面卡。You can verify that VMQ is enabled by running Get-VMSwitch and finding the adapter that the virtual switch is using. 接下來,執行Get NetAdapterVmq ,並確保配接器會顯示在結果中,並且已 VMQ 啟用。Next, run Get-NetAdapterVmq and ensure that the adapter is shown in the results and has VMQ enabled.

  3. SR\ IOV 不存在Absence of SR-IOV. 確認單一根 Input\ 輸出虛擬化 (SR-IOV) 虛擬函式 (VF) 驅動程式不附加到 VM 網路介面。Verify that a Single Root Input-Output Virtualization (SR-IOV) Virtual Function (VF) driver is not attached to the VM network interface. 您可以使用Get NetAdapterSriov命令來驗證。You can verify this by using the Get-NetAdapterSriov command. 如果 VF 驅動程式載入時,RSS 會使用此驅動程式的縮放比例設定而不是由 vRSS 設定。If a VF driver is loaded, RSS uses the scaling settings from this driver instead of those configured by vRSS. 如果 VF 驅動程式不支援 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. Lp 數目Number of LPs. 確認 VM 有多個邏輯處理器 (LP)。Verify that the VM has more than one logical processor (LP). vRSS 依賴 VM 中的 RSS 或載入的平行處理多個 Lp 餘額接收流量 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 命令Get VMProcessor有多少 Lp。You can observe how many LPs your VM has by running the Windows PowerShell command Get-VMProcessor in the host. 執行命令之後,您可以數目的 Lp 觀察計數資料行項目。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.