-
Notifications
You must be signed in to change notification settings - Fork 822
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
WSL2 git is slow from gitlab #6602
Comments
\\wsl$\<distro>
repository\\wsl$\<distro>
directory
\\wsl$\<distro>
directory\\wsl$\<distro>\home\<user>\
directory
Can you please clarify the repro. Inside WSL Ubuntu, your options are cloning into |
@therealkenc I am attempting to clone into |
Okay, thanks. So presumably it is slow into On a lark, total WAG experiment, try:
|
\\wsl$\<distro>\home\<user>\
directory
@therealkenc Which package should
It looks like |
|
It is still stuck with a
|
Was worth a try, thanks. You are variation #4901 but can have your own landing zone, given variable |
For me I do not think it is a network issue as mentioned in #4901. I ran a speed test via WSL and the speed test CLI and that gave me extremely good numbers. Something else is going on here like throttling for specific things and/or slowdown due to I/O performance. I provided the speed test results in the issue description. |
I had a similar issue with git performance under wsl2 and browsing other issues stumbled upon #6585. I replace the default /etc/resolve.conf with
And after this my "git pull" was pretty fast again. The problem was that resolving names the did not exist seems to be problematic when there is a VPN connection hanging around... |
@JensLincke That does not seem to help in my case |
Yes, you are seeing a crazy low bitrate ( |
Is there any workaround for this? I'm contemplating completely abandoning using WSL2 for development and switching back to a pure Windows development environment setup. However, I really do enjoy the WSL2 experience, other than this specific issue |
We have a fix for this incoming, but in the meantime this should get things working:
|
Hi. Whats about fix? |
This looks like more general networking issue within WSL. When connected to VPN all downloads get stuck or are super slow at best. I've checked alternative protocols, and it seems that OpenVPN (both TCP and UDP), works well. ExpressVPN's Lightway and IKEv2 don't. |
I was stuck on a "git push" |
It works for me. |
This works wonders! I was stuck cloning a repo at KiB/s, now it's MiB/s and completed! Thank you so much! |
I have the same issue. cloning, fetching from wsl at Kb/s. Replacing the content of /etc/resolv.cong didn't work for me. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Environment
Steps to reproduce
\\wsl$\Ubuntu\home\<user>
directoryExpected behavior
Git clones the repository in a timely manner with reasonable network speeds for the network you are on
Actual behavior
Git takes extremely long to finish the clone command and is operating well below the network thresholds.
This issue is is the worst when running git operations on repositories that are located on Gitlab (all repositories, private, public, etc). When interacting with Gitlab I see speeds
<=
~80 KiB/s
. When checking out from Github I see speeds>=
1 MiB/s
. When interacting with either Gitlab or Github using windowsgit.exe
commands I see speeds>=
20 MiB/s. I have also ran a speed test on my WSL2 Ubuntu instance via the command line tool and am getting
~200 Mbpsdownload and
~20 Mbpsupload. Furthermore, all of my repositories are within
\wsl$\Ubuntu\home\golkedj` and therefore should not be experiences I/O performance issues based on what I have read in this thread and other threads.I am convinced that this issue only recently starting presenting itself because I have been interacting with this repository for several months with this exact same WSL2 Ubuntu instance and have noticed no issues at all until recently when I was unable to do anything with this repository within a reasonable amount of time. For example when I first set up this WSL2 Ubuntu instance I cloned this repository without issue, but now a fresh clone of it is taking several hours to complete (I have not actually been able to wait long enough for it to complete successfully).
I currently worked around this issue by using
wsl.exe
after modifying thecore.autocrlf
setting toinput
but this is not a feasible workaround due to the number of repositories I work with daily and the need to be able to run the WSL2 git command for them for consistency.Performance details:
git
command:Receiving objects: 16% (553/3435), 268.01 KiB | 34.00 KiB/s
git
command:Receiving objects: 100% (1034/1034), 487.62 KiB | 4.31 MiB/s, done.
git.exe
command:Receiving objects: 100% (3435/3435), 903.49 MiB | 19.56 MiB/s, done.
git.exe
command:Receiving objects: 100% (434/434), 7.43 MiB | 13.19 MiB/s, done.
The text was updated successfully, but these errors were encountered: