RSS 」 和 「 vRSS 的 Windows PowerShell 命令Windows PowerShell Commands for RSS and vRSS

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

本主題中,您將了解如何快速找出 Windows PowerShell 命令針對接收端調整 (RSS) 和虛擬 RSS (vRSS) 技術參考資訊。In this topic, you learn how to quickly locate technical reference information about Windows PowerShell commands for Receive Side Scaling (RSS) and virtual RSS (vRSS).

使用下列的 RSS 命令來設定 RSS 具有多顆處理器或多個核心在實體電腦上。Use the following RSS commands to configure RSS on a physical computer with multiple processors or multiple cores. 您可以使用相同命令來設定 vRSS 的虛擬機器上執行支援之作業系統的 (VM)。You can use the same commands to configure vRSS on a virtual machine (VM) that is running a supported operating system. 如需詳細資訊,請參閱Windows PowerShell 中的網路介面卡 CmdletFor more information, see Network Adapter Cmdlets in Windows PowerShell.

設定 VMQConfigure VMQ

vRSS 需要 VMQ 已啟用並已設定。vRSS requires that VMQ is enabled and configured. 您可以使用下列 Windows PowerShell 命令管理 VMQ 設定。You can use the following Windows PowerShell commands to manage VMQ settings.

啟用與設定原生的主機上的 RSSEnable and configure RSS on a native host

使用下列 PowerShell 命令來設定 RSS 原生的主機上,以及管理在 VM 中,或在主機上的 RSS 虛擬 NIC (vNIC)。Use the following PowerShell commands to configure RSS on a native host as well as manage RSS in a VM or on a host virtual NIC (vNIC). 這些命令的參數的一些可能也會影響在 HYPER-V 主機中的虛擬機器佇列 (VMQ)。Some of the parameters of these commands might also affect Virtual Machine Queue (VMQ) in the Hyper-V host.

重要

啟用 RSS 在 VM 中,或在主機 vNIC 是啟用及使用 vRSS 的必要條件。Enabling RSS in a VM or on a host vNIC is a prerequisite for enabling and using vRSS.

啟用 HYPER-V 虛擬交換器連接埠上 vRSSEnable vRSS on the Hyper-V Virtual Switch port

啟用 RSS VM 中的,除了 vRSS 還需要您啟用 vRSS 上的 HYPER-V 虛擬交換器連接埠。In addition to enabling RSS in the VM, vRSS requires that you enable vRSS on the Hyper-V Virtual Switch port.

判斷 vRSS 的存在設定並啟用或停用此功能的 VM。Determine the present settings for vRSS and enable or disable the feature for a VM.

檢視目前的設定:View the current settings:

Get-VMNetworkAdapter <vm-name> | fl

在啟用功能:Enabled the feature:

Set-VMNetworkAdapter <vm-name> -VrssEnabled [$True|$False]

啟用或停用在主機 vNIC vRSSEnable or disable vRSS on a host vNIC

判斷目前的設定,如 vRSS,並啟用或停用主機 vNIC 的功能。Determine the present settings for vRSS, and enable or disable the feature for a host vNIC.

檢視目前的設定:View the current settings:

Get-VMNetworkAdapter -ManagementOS | fl

啟用或停用此功能:Enable or disable the feature:

Set-VMNetworkAdapter -ManagementOS -VrssEnabled [$True|$False]

在 HYPER-V 虛擬交換器連接埠上設定排程模式Configure the scheduling mode on the Hyper-V virtual switch port

適用於: Windows Server 2019Applies to: Windows Server 2019

在 Windows Server 2019,vRSS 可以更新用來以動態方式處理的網路流量的邏輯處理器。In Windows Server 2019, vRSS can update the logical processors used to process network traffic dynamically. 支援的驅動程式的裝置都有預設啟用此排程模式。Devices with supported drivers have this scheduling mode enabled by default.

判斷存在的排程模式在系統上,或修改排程模式的 VM。Determine the present scheduling mode on a system, or modify the scheduling mode for a VM.

檢視目前的設定:View the current settings:

Get-VMNetworkAdapter <vm-name> | Select 'VRSSQueue'

設定,或修改排程的模式:Set or modify the scheduling mode:

Set-VMNetworkAdapter <vm-name> -VrssQueueSchedulingMode [Dynamic|$StaticVrss|StaticVMQ]

在主機 vNIC 上設定排程模式Configure the scheduling mode on a host vNIC

適用於: Windows Server 2019Applies to: Windows Server 2019

若要判斷存在的排程模式,或修改主機 vNIC 的排程模式,請使用下列 Windows PowerShell 命令:To determine the present scheduling mode or to modify the scheduling mode for a host vNIC, use the following Windows PowerShell commands:

檢視目前的設定:View the current settings:

Get-VMNetworkAdapter -ManagementOS | Select 'VRSSQueue'

設定,或修改排程的模式:Set or modify the scheduling mode:

Set-VMNetworkAdapter -ManagementOS -VrssQueueSchedulingMode -VrssQueueSchedulingMode [Dynamic|$StaticVrss|StaticVMQ]

相關主題Related topics

如需詳細資訊,請參閱下列參考主題。For more information, see the following reference topics.

如需詳細資訊,請參閱虛擬接收端調整 (vRSS)For more information, see Virtual Receive Side Scaling (vRSS).