虛擬接收端調整 (vRSS)Virtual Receive Side Scaling (vRSS)

適用於:Windows Server (半年通道)、Windows Server 2016Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016

本主題中,您會了解虛擬接收端調整 (vRSS),以及如何設定虛擬網路介面卡來跨多個邏輯處理器核心在 VM 中載入餘額連入網路流量。In this topic, you learn about Virtual Receive Side Scaling (vRSS) and how to configure a virtual network adapter to load balance incoming network traffic across multiple logical processor cores in a VM. 您也可以使用 vRSS 設定主機虛擬網路介面卡 (vNIC) 的多個實體核心。You can also use vRSS to configure multiple physical cores for a host virtual Network Interface Card (vNIC).

此設定可在載入分散在虛擬機器中的多個虛擬處理器的虛擬網路介面卡從 (VM),讓它可以使用單一的邏輯處理器比快速處理更多的網路流量的 VM。This configuration allows the load from a virtual network adapter to be distributed across multiple virtual processors in a virtual machine (VM), allowing the VM to process more network traffic more rapidly than it can with a single logical processor.

提示

您可以使用 vRSS Vm 中具有多顆處理器,也就是一個多核心處理器,HYPER-V 主機上或多個多核心處理器安裝並設定 VM 使用的。You can use vRSS in VMs on Hyper-V hosts that have multiple processors, a single multiple core processor, or more than one multiple core processors installed and configured for VM use.

vRSS 可與所有其他 HYPER-V 網路功能技術相容。vRSS is compatible with all other Hyper-V networking technologies. vRSS 是取決於在 HYPER-V 主機中的虛擬機器佇列 (VMQ) 和 RSS VM 中,或在主機 vNIC。vRSS is dependent on Virtual Machine Queue (VMQ) in the Hyper-V host and RSS in the VM or on the host vNIC.

根據預設,Windows Server 可讓 vRSS,但您可以停用在 VM 中使用 Windows PowerShell。By default, Windows Server enables vRSS, but you can disable it in a VM by using Windows PowerShell. 如需詳細資訊,請參閱管理 vRSSRSS 」 和 「 vRSS 的 Windows PowerShell 命令For more information, see Manage vRSS and Windows PowerShell Commands for RSS and vRSS.

作業系統相容性Operating System Compatibility

您可以在任何多處理器或多核心的電腦-或 vRSS 任何多處理器或多核心 VM 上-執行 Windows Server 2016 上使用 RSS。You can use RSS on any multiprocessor or multicore computer - or vRSS on any multiprocessor or multicore VM - that is running Windows Server 2016.

多處理器或多核心執行下列 Microsoft 作業系統的 Vm 也支援 vRSS。Multiprocessor or multicore VMs that are running the following Microsoft operating systems also support vRSS.

  • Windows Server 2016Windows Server 2016
  • Windows 10 專業版或企業版Windows 10 Pro or Enterprise
  • Windows Server 2012 R2Windows Server 2012 R2
  • Windows 8.1 專業版或企業版Windows 8.1 Pro or Enterprise
  • Windows Server 2012 與 Windows Server 2012 R2 整合元件安裝。Windows Server 2012 with the Windows Server 2012 R2 integration components installed.
  • Windows 8 與 Windows Server 2012 R2 整合元件安裝。Windows 8 with the Windows Server 2012 R2 integration components installed.

執行 FreeBSD 或 Linux 做為客體作業系統上 HYPER-V 的 Vm 的 vRSS 支援相關的資訊,請參閱Windows 上 hyper-v 支援的 Linux 和 FreeBSD 虛擬機器For information about vRSS support for VMs running FreeBSD or Linux as a guest operating system on Hyper-V, see Supported Linux and FreeBSD virtual machines for Hyper-V on Windows.

硬體需求Hardware requirements

以下是 vRSS 的硬體需求。Following are the hardware requirements for vRSS.

  • 實體網路介面卡必須支援虛擬機器佇列 (VMQ)。Physical network adapters must support Virtual Machine Queue (VMQ). 如果停用或不支援 VMQ,HYPER-V 主機和主機上設定任何虛擬機器停用 vRSS。If VMQ is disabled or not supported, then vRSS is disabled for the Hyper-V host and any VMs configured on the host.
  • 網路介面卡必須有 10 gbps 連結速度或更多。Network adapters must have a link speed of 10 Gbps or more.
  • HYPER-V 主機必須設定多個處理器或使用 vRSS 至少一個 multi\ 核心處理器。Hyper-V hosts must be configured with multiple processors or at least one multi-core processor to use vRSS.
  • 必須設定虛擬機器 (VMs),才能使用兩個或多個邏輯處理器。Virtual machines (VMs) must be configured to use two or more logical processors.

使用案例情況Use Case Scenarios

下列兩個用途的案例說明 vRSS 處理器負載平衡和軟體負載平衡常見的使用的方式。The following two use case scenarios depict common usage of vRSS for processor load balancing and software load balancing.

處理器負載平衡Processor load balancing

陳,網路系統管理員,設定新的 HYPER-V 主機,以支援單一根輸入輸出虛擬化 (SR-IOV) 兩個網路介面卡。Anthony, a network administrator, is setting up a new Hyper-V host with two network adapter that supports Single Root Input-Output Virtualization (SR-IOV). 他部署 Windows Server 2016,架設 VM 檔案伺服器。He deploys Windows Server 2016 to host a VM file server.

安裝之後的硬體和軟體,陳會設定 VM 以使用 8 個虛擬處理器和 4096 MB 的記憶體。After installing the hardware and software, Anthony configures a VM to use eight virtual processors and 4096 MB of memory. 陳不幸的是,沒有選擇開啟 SR\ IOV,因為其 Vm 依賴透過他使用 HYPER-V 虛擬交換器管理員建立虛擬交換器的原則強制執行。Unfortunately, Anthony does not have the option of turning on SR-IOV because his VMs rely on policy enforcement through the virtual switch he created with Hyper-V Virtual Switch manager. 基於這個原因,決定使用而不是 SR\ IOV vRSS 陳。Because of this, Anthony decides to use vRSS instead of SR-IOV.

一開始,陳指派四個虛擬處理器可供使用,以 vRSS 搭配使用 Windows PowerShell。Initially, Anthony assigns four virtual processors by using Windows PowerShell to be available for use with vRSS. 使用檔案伺服器在一星期後之後出現是很常見,因此陳會檢查 VM 的效能。The use of the file server after a week appeared to be quite popular, so Anthony checks the performance of the VM. 他發現完整使用率的四個虛擬處理器。He discovers full utilization of the four virtual processors.

基於這個原因,陳決定要用於 VM 新增 vRSS 處理器。Because of this, Anthony decides to add processors to the VM for use by vRSS. 他會更多的兩個虛擬處理器指派到 VM 中,會自動提供給 vRSS 為了處理大型網路負載。He assigns two more virtual processors to the VM, which are automatically available to vRSS to help handle the large network load. 他的努力產生較佳的效能,VM 檔案伺服器,而有效率地處理網路流量負載六個處理器。His efforts result in better performance for the VM file server, with the six processors efficiently handling the network traffic load.

軟體負載平衡Software load balancing

吳,網路系統管理員,設定單一 VM,高效能在其中她的系統上做為軟體負載平衡器。Sandra, a network administrator, is setting up a single high-performance VM on one of her systems to act as a software load balancer. 她已指派所有可用的邏輯處理器,此單一 vm。She has assigned all available logical processors to this single VM.

安裝 Windows Server 之後, 她使用 vRSS 取得平行處理多個邏輯處理器,在 VM 上的網路流量。After installing Windows Server, she uses vRSS to get parallel network traffic processing on multiple logical processors in the VM. 因為 Windows Server 可以讓 vRSS,吳不需要變更任何設定。Because Windows Server enables vRSS, Sandra doesn’t have to make any configuration changes.

相關主題Related topics