-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Very slow network speeds #8171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So the issue seems to be originating from my network adapter, when I connect using my WIFI network adapter (built-in) everything works as expected, but when I switch to my ASUS XG-C100F 10G SFP+ Network Adapter the issue starts. I'm unsure how to further debug this problem to understand why it's happening on my network adapter, I'm open to any suggestions or even a debug session to maybe isolate the issue? |
Did you try with this? It absolutely worked for me https://townsyio.medium.com/wsl2-how-to-fix-download-speed-3edb0c348e29 |
I also experienced inconsistent and slow network speed with my ASUS XG-C100C. Disabling IPv6 on the network adapter gave me expected network speeds in WSL2 |
@paul-vd What version of Windows/WSL are you running? There are a few reports of this issue going away in 22H2 (around version 10.0.22623.730 or later).
|
@scovetta this was "resolved" after disabling IPv6. Here is my version info:
|
I managed to "resolve" my super slow network issues in wsl2 in disabling ipv6.
|
I tried everything and finally I could solve it:
Finally I tried to disable IPv6 from the vEthernet of WSL and in W11 doesn't appears listed in the control panels, reading GitHub I found out that is because is a hidden device, from PowerShell I managed to disable it and right now WSL is has regular network speeds, the command:
|
I solved the problem by trying the following (Windows 11 Home).
|
Just restarting the WSL network adapter worked for me. Had 5Mbps upload speed, after restart back to normal speeds (>800Mbps) In Administrator Powershell: |
I have the same problem:
Nothing helped me, only reboot solved it. And it randomly appears again |
For me restarting the WSL adapter does not work. What worked is deactivating the wifi adapter in windows network control panel and activating it again, then it gained full speed, until it worked again. |
This works for me: 1- Press the Windows Key and type “Control Panel” and hit enter Note: 2 and 3 might be under "Network and Sharing Center" in the Control Panel Select “Large Send Offload Version 2 (IPv4)” and change the drop-down to disabled. To the same for “Large Send Offload Version 2 (IPv6)”. Once this is done click “OK” and you are all done. You may experience a slight downtime in connection while this is saved. |
I woke up this morning and found that my Windows box had been "updated". I also saw that my WSL speeds were slow again. I opened up this thread and followed the steps in my previous post and immediately saw the download speeds increase: This is really bad. This suggests that updates are wiping out the workout that people are using. |
Looks like disabling TCP Segmentation Offload inside WSL/Linux also works:
Credit: #4901 (comment) That fixed my upload speed being really slow. |
This is getting silly, I've had to "fix" this countless times now. Which is only possible due to this thread. So I had to modify the above instructions by @peterfelts and @davorpa as there seems to have been a new change. The adapter is now hidden from I've made the assumption that the adapter will start with vEthernet and have WSL somewhere else following in the name. With that in mind here is a combined query to get the properties to check your setup
To check only for LSOv2, you can run just the below
Now to disable tjhe properties for both ipv4 and ipv6
|
Had to include "| Format-Table -AutoSize" to get the full adapter name: |
I had to replace |
I refactored that a bit to be more verbose
|
This should be answer: #4901 (comment) |
I'm sorry, but networkingmode=mirrored only breaks my networking completely, and I already have all the other features advertised on it working |
Hi, this command solves the problem for me. Unfortunately, I have to rerun the command after every reboot. Is there any way to make this change permanent? Thanks and regards |
None of these get me going consistently over 200mbps with speedtest-cli in the bare wsl, or over 30mbps in docker containers. Network mode=mirrored results only in no networking working, as far as I can tell. |
This one got me from around 150-200mbps down to 350mbps down, and i'm now hitting my upload cap at close to 50mbps in bare WSL, still poking in docker at about 30mbps down, 1.5mbps up |
try this once PASTE ON POWERSHELLRestart WSL Network Adapter
PASTE WSL Distro (Ubuntu)upload speed
|
What I have experienced is when I create new WSL2 instance then everything is fine. Download/Upload speeds are normal. When I move this another drive, then the network speed becomes slow, while upload speed is same but download speed becomes very slow from 200mbps to 2-8mbps. |
Thank you!!!! A thousand times thank you!! My download speed was OK (600 MBits/s) but my upload was like 1 MBit/s now it it also around 600, thank you again!! |
I have tried so many things by now. The one that fixed it for me was: Admin PowerShell: |
None of the options unfortunately worked for me. Any ideas of what else could be tried ? I'm definitely stuck
/le Actually it works with network mode on NAT not mirroring
/le 2 Actually the network randomly just stops
/le 3 It seems at least for me the problem is DNS lookup related. Manually setting 8.8.8.8 in resolv.conf seems to do the trick for now |
I'm able to reproduce this problem. I have upload speed < 2 Mbit/s until I restart the network adapter and then I get > 500 Mbit/s.
|
None of the fixes work for me. Some of them made it slower. I wanted to obtain a decent speed for when I'm running Docker :( |
Uh oh!
There was an error while loading. Please reload this page.
Version
Microsoft Windows [Version 10.0.22000.556]
WSL Version
Kernel Version
5.10.60.1
Distro Version
Ubuntu 20.04
Repro Steps
Downloading this from windows is almost instant.
Speedtest in my windows environment:
Speedtest in my WSL environment
Expected Behavior
I would expect it to not be much slower than my host machine.
Actual Behavior
~4 hours for 14mb makes it quite unusable...
Diagnostic Logs
Let me know if I should include the networking diagnostic from windows as well, they are long, so I did not add it.
WSL Networking Summary:
The text was updated successfully, but these errors were encountered: