Windows technical support
Podporni forum za uporabnike storitev spletnega gostovanja
This forum is part of windows webhosting service at www.hostmachine.net
 


Slow network on Hyper-V 2016/2019/2022 VMs

To je neaktivna kopija originalnega foruma, prirejena za lazje indeksiranje z iskalnimi roboti.
Klikni tukaj za prehod na aktivni forum.
Click here to go to original active forum.


 
       Windows technical support Forum Index -> Windows server
View previous topic :: View next topic  
Author Message
Pico



Joined: 18 Jan 2004
Posts: 250
Location: HostMachine.net

Posted: 7.10.2022, 22:36    Post subject: Slow network on Hyper-V 2016/2019/2022 VMs  

A lot of sys admins are observing very slow network performance between VMs on Hyper-V Server 2019 and 2022 and client computers. While client computers can exchange data on gigabit LAN network with max. speed of up to 800 or even 900 Mbps, traffic between client computers and VMs on Hyper-V host barely reach 5-20 Mbps on SMB protocol.

Why is that...well, I know it is about some offloading processing from NIC to CPU and the other part of the problem is combining packets to trying to optimize speed. But Microsoft was a bit ignorant to NIC adapter manufacturers, and implemented some mechanisms and turned it ON by default.

One of those is RSC, Receive Segment Coalescing, which is combining multiple packets, received within same interrupt, into large packet, which would get rid of TCP overhead, thus providing more speed. My wild guess is that Microsoft has not optimized this protocol (or algo) well enough, so it might be delaing with spending more time on organizing multiple small segments into one and then converting them back, than to simply forward them plain small as they were.

Nevermind... so:
how to improve network speed on Hyper-V 2019 and 2022 servers?

Simply, leave RSS Enabled (by default) on all physical NIC adapters, and disable only Software RSC on virtual vSwitch on Hyper-V hosts. You do this to run PowerShell as Administrator:

Code: Get-VMSwitch -Name "vSwitch name" | select-object *RSC*
Set-VMSwitch -Name "vSwitch name" -EnableSoftwareRsc $false
Back to top  
 
       Windows technical support Forum Index -> Windows server
Page 1 of 1


Te strani so generirane samo za lazje indexiranje z iskalnimi roboti.
Prosimo, da uporabite povezavo na glavni forum, kjer lahko aktivno sodelujete s svojimi prispevki