Wsl2 internet slow. The performance gain was also .
Wsl2 internet slow EXE, have limitations when working with \\wsl. I typically like to write my software in Node JS, TypeScript and React and I assumed I would be fine jumping into the projects I had previously been working on in my previous Windows and Power Shell environment. 0, then look up the WSL2 IP address (e. Please help me. Running Ubuntu 18. When this happens Vmmem is usually chewing up a ton of memory and I cannot restart it. I did use WSL1 before but not enough to make a true direct comparison. It more or less works most of the time but it's sure complicated. 04 WSL 2 Steps to reproduce Run a speed test inside wsl2 machine Download: 4. WSL 2 — How To Fix Download Speed | by Chris Townsend. 79; WSL2: File operations on NTFS folders extremely slow (#4515), similarity score: 0. Explanation: Windows Subsystem for Linux (WSL) 2 introduces a significant architectural change as it is a full Linux kernel, allowing Linux containers to run natively without emulation. 19041. Exactly why your Sep 8, 2023 · Specifics of my case is slow upload speed on Win11/WSL2 ~3-4Mbps vs. When I try to perform an update sudo apt update or even ping google. Run a speedtest on Windows host; Set up a WSL2 distro, ideally above Ubuntu distro and version; Set up Docker to use WSL2 backend with above distro Sep 19, 2023 · 微软终于更新了 WSL2,允许用户自行指定用于 WSL2 的网卡,因此不再需要任何的脚本等等即可固定 WSL2 地址甚至支持 IPv6 和外部访问。 注意:此方法需要至少 Windows 11 22H2。 首先需要从 Microsoft Store 里面下载最新的 Windows Subsystem for Linux。 May 16, 1990 · Observe that the WSL2 loses internet connection. Aug 4, 2021 · I have dramatically slow network speed while working with Node. 21. 508] Release: Ubuntu 20. 73; WSL2 FS access to Windows on W11 is much slower than on Win10 (#9430), similarity score: 0. Feb 15, 2021 · I found out that regardless which application I use in Windows 10, my download speed is pretty slow. " Jun 14, 2024 · A quick Internet search with keywords WSL2 and firewall pointed me to this Microsoft page, Configure Hyper-V firewall, a feature I was not aware of. g. 70 work units) wsl2 - 1000: Explored 215428 nodes (21704406 simplex iterations) in 372. Upload speed is fine. Check Your Internet Connection on Windows. 72; Closed similar issues: WSL 2 read access significantly slower since update to WIndows 11 (#7650), similarity score: 0. , via Chocolatey. Please fix it. May 2, 2017 · Very similar here. On other devices in the same network the download rate is high. Moving files to Linux solved the problem like a charm. Whether I'm pulling 200mbit or 800mbit in bare WSL2, I'm always capping at 100mbit in Jul 24, 2023 · Recently installed Ubuntu and Kali-linux distro on Windows Subsystem for Linux (WSL2) on different drive as per this stackoverflow question manually. That slow performance was killing me :/ on wsl1 performance was good but so many unsupported stuff. Chen. Once restarted, your WSL distro should now have the same network speed as your Windows host. When i use Ubuntu on WSL i got 51. Right-click on your Wi-Fi adapter. 48 work units) wsl2 - 100: Explored 170931 nodes (18453681 simplex iterations) in 277. 2gbps link to the rest of the world, but Docker on WSL2 can only use about 1/12th of it. Jan 29, 2025 · Running Linux on Windows through WSL2 offers incredible development possibilities, but like any system, it can benefit from thoughtful optimization. With complex one I mean a monorepo with React, node, different libraries, etc. Outcome: After following these steps, your WSL2 instance will use the specified custom DNS servers in addition to the default localhost entry. on wsl2 an actual Linux kernel is running but performance issue comes in with windows file system and other IO related things. Dec 5, 2023 · Software updates often include bug fixes and performance improvements that can help with internet speed issues. 78; WSL2 Slow On New Win10 Update (#7999), similarity score: 0. b) I also copied my project files into \wsl$\Ubuntu\home\ while having the Docker WSL2 integration enabled, then brought my images up with docker-compose from the WSL2 console. If you use wifi, then disable IPv6 for wifi and wsl adapters. 57 seconds (420. Go to 'View Network Connections'. Both are using Ubuntu 20. Solution 2: Enable IPv4 Forwarding Mar 19, 2022 · Install everything wsl2 related from the docs (I did this twice to ensure it was not a faulty setup) Install NVM from the docs; Try to download a node env (very slow speeds) Try to download the same tar using curl instead (also very slow speeds) Downloading this from windows is almost instant. If I tried to install directly from WSL2, it will not be successful, very slow download speed, like 10k bits per second as compared to 6M bits per second. Sometimes, simply restarting WSL 2 can solve the issue since it will reinitialize the networking stack: Dec 3, 2021 · I have a fresh installation of Windows 11 with ubuntu 20. Check your host machine's network connection: If the internet speed is slow on your host Windows machine, it can affect the performance in WSL or VMware. I’ve also observed slower performance on wsl2 as compared to native ubuntu 22. The environment setup for both wsl2 and ubuntu is as follows: Apr 26, 2024 · WSL2 FS access to Windows on W11 is much slower than on Win10 (#9430), similarity score: 0. 04 installed inside wsl2. Restart your WSL distro. Speedtest in my windows environment: Oct 6, 2023 · Very slow network speed on WSL2 · Issue #4901. The issue is that the network speed is capped at 30–40 Mbps, but I have a network bandwidth with up to 150 Mbps. 71; Closed similar issues: [WSL2] git is very slow even on the same filesystem (#8588), similarity score: 0. The performance gain was also Aug 3, 2023 · wsl2 - default seed: Explored 168890 nodes (16051099 simplex iterations) in 259. For more details, you can refer to the official documentation here. What you will need¶ A Windows 10 version 21H2 or newer physical machine equipped with an NVIDIA graphics card and administrative permission to be able to install device drivers. I have seen several people on diverse forums mentioning similar problems and I have tried many solutions, but nothing worked. 0. Note that Windows 11 does not show virtual adapters so I had to apply the workaround using Powershell as Administrator: May 15, 1990 · Having the same issue, download speed is about 100x slower in docker containers running in WSL2 than in WSL2 itself or outside of WSL2. 8 kB/s - 100kB/s. Open your terminal and run the command: wsl --shutdown. Accordingly, a benchmark in the WSL 2 also shows differences…. I’ve run nvidia-smi while the application was running and I see that on Docker my GPU is not fully utilizes graphics clock? WSL2 gpu pwr gtemp mtemp sm mem enc dec mclk pclk # Idx W C C % % % % MHz MHz 0 4 68 - 0 0 0 0 405 300 Feb 2, 2022 · This videos explains how to fix the internet issue on WSL Sep 20, 2020 · Are you running inside a virtualized Windows e. So I'll trust the experts that the kernel adaptor in WSL2 is just a lot faster than the VM in WSL1. When a user turns on Mobile Hotspot on their Windows 11 machine, the WSL2 loses internet connection and is unable to connect to any external network Jul 9, 2020 · I've been playing around at using WSL2. download of ~500Mpbs. Dec 6, 2023 · WSL2 has suddenly slow for example when compiling (#8833), similarity score: 0. The symbolic link solves an unrelated problem. 75 May 7, 2024 · WSL2 git is slow from gitlab (#6602), similarity score: 0. Verify that your host machine has a stable and fast internet connection. , an Independent Advisor. Mar 3, 2023 · Thanks Phil. I end up Jan 26, 2022 · It has almost 1/10 internet speed than host PC's internet speed in Task Manager / Performance. 04 on a Dell Latitude 9510 with an SSD. Noticed build speeds of a React project were brutally slow. Aug 12, 2023 · My speed of internet in wsl 2 is very low, with windows version of win 11. (I only have a few minutes of internet in WSL2 when I first bootup the computer, then after a few minutes I completely lose it and there is no way to get it back, not even wsl Sep 15, 2020 · Supper useful Article. For day-to-day development use, you really shouldn't "notice" it. I quickly realized that with my Windows firewall configuration, which is not the default , the default settings of the new Hyper-V firewall cause the issue. Aug 29, 2021 · Very slow network speed on WSL2 · Issue #4901. I've been looking in the issues and I found some problems related to VPN but mostly about not receiving internet or not detecting the virtual host, not specifically about slow internet connection. Oh, just in case it comes up, all my files are on in my WSL2 drive. I had to delete the virtual switch as the system behaviour was unacceptable (virtually zero upload speeds). Restart your WSL2 instance by opening your desired Linux distribution. 57 work units) Mar 25, 2024 · For an unknown reason I can't even get WSL2 to have internet connection for the first few minutes when I start the powershell WSL network logging script beforehand. 04. As many WSL distros as you like can reach the files in the same VHDX. Is there any way to increase internet download speed in WSL2 by adjusting Hyper-V Virtual Ethernet Adapter Band-Width Limit or doing something else? May 23, 2024 · @Fiona. js and NPM. 73 Feb 14, 2022 · Go to your Start Menu. 04/0. This is the same across any application on both the distros. Harassment is any behavior intended to disturb or upset a person or group of people. Very The performance difference was huge, basic php pages that were taking about 8 seconds on WSL2 were now loading immediately with Hyper-V. 68 seconds (291. It can't read Python source / installed libraries and even having WSL mentioned somewhere in config file is making IDE slow (IDEA was refreshing it and and tool was hanging). This should help resolve slow download speed issues without removing the existing resolv. 79; Very poor download performance inside wsl2 (#5897), similarity score: 0. 78 Jan 21, 2018 · I have a 300/20 internet connection which I can fully max out on Windows. While WSL2 provides excellent Linux integration with Windows, default configurations aren’t always optimal for every Again, I tried to evaluate the behavior of the Wifi when I entered newsboat to update the feed, and it coincided that when I updated the feed, the internet service dropped again. vscode). Mar 3, 2020 · UPDATE: as described in #5069 (comment), it's possible to serve apps on 0. Jun 2, 2021 · Trying out WSL2 for the first time. Find the 'Internet Protocol Version 4' and select the 'Properties' menu option. Try to repair your connection by following these steps: Click Start and type "cmd. 42 Mbit/s Upload: 3. Sep 19, 2023 · 微软终于更新了 WSL2,允许用户自行指定用于 WSL2 的网卡,因此不再需要任何的脚本等等即可固定 WSL2 地址甚至支持 IPv6 和外部访问。 注意:此方法需要至少 Windows 11 22H2。 首先需要从 Microsoft Store 里面下载最新的 Windows Subsystem for Linux。 May 16, 1990 · Observe that the WSL2 loses internet connection. 04, while testing with deepstream 7. Ran a benchmark using sysbench --test=fileio --file-test-mode=seqwr run in ~ and got: Oct 21, 2021 · The Windows Resource Monitor shows only 50% load at full load of the WSL, with the standard driver from Microsoft for CPUs is at 100%. Sep 10, 2020 · Environment Microsoft Windows [Version 10. So because this is the top result for slow dns resolution wsl2 docker on Google, here is the fix for me: Add the following into your Docker engine settings (Settings→Docker Engine in Docker Desktop) Jul 9, 2020 · I've been playing around at using WSL2. There's not really any load on the virtual switch as it is only used for my personal use (for WSL2 console). js app - randomly are slow, unstable, timeouts; npm install might take forever; I have to cancel and run npm install again, and if I am lucky - all packages will be installed, otherwise, I have to cancel and run again. May 3, 2025 · I have recently catched up and installed WSL2 on my Windows computer, but now I'm facing an internet connectivity issue that doesn't seem new. How to compile and run a sample CUDA application on Ubuntu on WSL2. There is no "vEthernet (WSL)" and, There is no “Large Send Offload Version 2 (IPv4)” and “Large Send Offload Version 2 (IPv6)” in the advanced tab of… This is the Windows Subsystem for Linux (WSL, WSL2, WSLg) Subreddit where you can get help installing, running or using the Linux on Windows features in Windows 10. 52. conf file or the localhost entry. "Painstakingly slow" sounds like the "Windows drive" issue. Literally, at this moment NPM is downloading between 8 and 16 Kps, yet I can run speedtest-cli and I just got a download speed of 805. Apr 10, 2021 · Hi, I'm Ana M. Windows Firewall is a feature that aims to protect your computer from unauthorized network attacks, but sometimes it can also interfere with legitimate internet connections. The network speed on the WSL2 virtual ethernet adapter throttles down to 16 Kbps. I've tested with the following applications where I got the slow download rate Oct 31, 2023 · Windows firewalls or other security software that blocks or restricts WSL 2 internet access can also cause Internet connection problems in WSL 2. 1-ce): On a fresh microsoft/windowsservercore container: This is interfering with any sort of larger tool installations into containers over the network, e. 08. Today, we’ll explore proven techniques to enhance your WSL2 performance and create a more responsive development environment. This is my first time using Window Subsystem for Linux having skipped over WSL1. When a user turns on Mobile Hotspot on their Windows 11 machine, the WSL2 loses internet connection and is unable to connect to any external network Dec 21, 2020 · The problem mainly manifested for me in Docker. Some programs, including CMD. Request made from Node. May 31, 2024 · Step 1. Note that Windows 11 does not show virtual adapters so I had to apply the workaround using Powershell as Administrator: Jun 10, 2020 · Right click on your network icon, and click on Open Network and Internet settings image; In the settings page look for Change adapter options under Advanced Network settings img; On the next page you'll see a bunch of network adapters, for bluetooth, vpns, ethernet and for wifi. Step 2. When i use Windows i got speeds like 100Mbps. Very slow network speeds #8171 - microsoft/WSL. The WSL2 should maintain its internet connection when the Mobile Hotspot is turned on in the Windows 11 machine. 8 and 5mbps. Apr 29, 2023 · The "normal" hit to performance from running on the Ext4 filesystem under WSL2 varies depending on the type of files being access, but typically runs between 10-50%. I checked the processes and even WSL2 was still working even with the terminal closed. [wsl2] [experimental] networkingMode=mirrored Save the file. Actual Behavior. Feb 21, 2022 · I am experiencing slow internet problem on WSL 2. (Both tested with speedtest) APT and NPM perform even worse and are barely usable Dec 22, 2022 · Properly configured Docker and Windows WSL2 will give you really good performance in terms of speed. Expected Behavior. Sometimes Ubuntu 20. 17 Mbit/s Run the same spe Jul 23, 2020 · The fact is that when it wasn't connected to the VPN I get ~208mbps and now it varies between 0. I would love to help you today. Per all the articles on the web I'm running the project out of ~ and not the windows mount. Related; I find sometimes the WSL2 port forwarding for localhost doesn't work, so my host Windows system can't access open sockets inside WSL2. 172. 3) and use that to connect to the app. 75; WSL2 Slow On New Win10 Update (#7999), similarity score: 0. 79; Docker login & pull extremely slow on WSL2 (#8733), similarity score: 0. I noticed that WSL Ethernet is working through Hyper-V Virtual Ethernet Adapter. I'm on the Debian instance in WSL2 and it works and feels like true Debian. Jul 15, 2023 · Much like Windows 11, without an active connection to the Internet the Windows Subsystem for Linux (WSL) will struggle to complete basic tasks such as updating packages. It's blazing fast that way (but have to check the WSL2 client IP every time WSL2 is restarted), so it definitely has something to do with connecting through localhost. localhost: Dec 14, 2023 · Hi, currently, whenever I want to download any package, I would first downgrade from WSL2 to WSL1, then install any package I need, with normal download data connection speed. Select the 'Properties' menu option. That's a shame as my current WiFi in the office is IPv6-only and I am unable to use my WSL2 when I am there. Docker container in WSL2: Aug 27, 2023 · My speed of internet in wsl 2 is very low, with windows version of win 11. 35 seconds (272. low internet speed in WSL 2. The only solution for the return of the internet was to shut down the computer. Before tweaking settings on WSL 2, verify that your Windows machine has an active and working internet connection. 03. com I get Temporary failure resolving 'archive. There is no "vEthernet (WSL)", have network name as "VMware Virtual Ethernet Adapter for VMnet1" and "VMware Virtual Ethernet Adapter for VMnet8". 01 Mbit/s. Dec 18, 2021 · I have a 1. 2- Click “Network and Internet” 3- Click “View network status and tasks” 4- Click “Change adapter settings” 5- Find the “vEthernet (WSL)” adapter and click properties 6- Click “configure” and open the advanced tab Select “Large Send Offload Version 2 (IPv4)” and change the drop-down to disabled. Restart WSL 2. Etc. To check current value run: Dec 12, 2023 · The VHDX came in because I wanted multiple WSL distros to be able to access the same set of files (without resorting to slow network shares). Ubuntu on WSL2 previously installed I've been using WSL2 for quite a while, for work, and it works absolutely fine. on a cloud server or on a mac VM: No, Windows Host > WSL2 Ubuntu > Docker Desktop for Windows using WSL2 backend; Steps to reproduce the behavior. Knowing it, I wouldn't upgrade to Windows 11. Even in WSL 2 on the same system I get different download speeds - with a 100 % download speed rate. I’ve noticed big differences in inference speed on Docker compared to WSL2. Aug 12, 2024 · Hello, I have problem with internet speed in WSL2. 04 [Focal Fossa] and the late distributions are having a slow WiFi connection speed issue, that could be related to multi factors like th Apr 10, 2025 · How to install the NVIDIA CUDA toolkit for WSL2 on Ubuntu. Jun 4, 2023 · For those unfamiliar WSL2 is a compatibility layer provided by Microsoft that allows users to utilise the full power of Linux inside Windows OS itself! Its pretty neat and a really great tech Dec 20, 2022 · I am unsure if this is a known bug or not, but when I have windows terminal open + WSL and my computer goes to sleep, often times when I log back in I find using it to be extremely slow, as well as any applications running from it (e. Restarting the subsystem (or rebooting Windows) is the only fix I know for that. Feb 7, 2023 · I am doing some dnn inferencing using onnx model and OpenCV. It seems unrelated to the wsl2 slow network problem, which is just a significant slowdown from maximum, most of the time, but does not seem to be a hard cap. We would like to show you a description here but the site won’t allow us. thanks! Mar 26, 2021 · It works fine with most small projects, but when it comes to complex ones, things start to slow down, making working on WSL2 impossible. 76; Extremely slow start ~50s (#10456), similarity score: 0. The networking in WSL2 is a big step backwards from WSL1. Jan 4, 2023 · Anything related to WSL2 on IDEA / PyCharm is painfully slow to the levet that tool is not usable. On host (Windows 10, 1703, docker 17. Enabling Netword Direct Memory Access on vEthernet (WSL) virtual adapter fixed this issue and brought upload speed to ~500Mpbs. On the WSL (Ubuntu) I only get 0. wddpjlivnetqcwzmhndtxqtdpcfxsvkeghvykjjxtscwrbxzl