-
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 FS access to Windows on W11 is much slower than on Win10 #9430
Comments
wow, even on Win10, using the mounted /c, access is a hundred times as slow (100x) for me! (For you it was only 30x as slow.) But it seems openat takes the same share of the time on Win10.
Maybe you can do an strace for your Win10 too, to also have those numbers. |
Here is Win10.
Everything is good on Linux. Win has ~ 1 second, which is much slower, but not a big issue. I can live with Win10 performance, but not with Win11 |
Hi there!
When the Ubuntu is running, my explorer and other programs get super slow (Animation , opening files || apps ....) not only in the Linux Directory but also in other Drivers!
|
@rynex-zv - must be a Windows 11 issue, because I have no such experience on Windows 10. Or some of your drivers are conflicting with each other. |
I have this issue on windows 10 |
For me on Windows 11 file access gets slower and slower until it completely hangs... |
Hi! Are there any updates on this task? This issue causes a lot of problems for those who work directly with WSL filesystem... |
Yes, since upgrading to win 11 I noticed that even typing is sometimes slow and laggy in my IntelliJ IDE when projects are open in WSL2, |
I have yet to experience the slowness in Intellij when coding, but slowness is too obvious in terminal, either Windows terminal and Intellij |
Anything related to WSL2 on IDEA / PyCharm is painfully slow to the levet that tool is not usable. 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). Knowing it, I wouldn't upgrade to Windows 11. Please fix it. |
https://youtrack.jetbrains.com/issue/IDEA-293604/IntelliJ-is-slow-hanging-when-working-with-WSL-filesystem The discussion on JetBrains issues tracker. There are conversations about adding exclusions to Windows Defender helps. Add-MpPreference -ExclusionPath "$Env:PROGRAMFILES\JetBrains","$Env:APPDATA\JetBrains","$Env:LOCALAPPDATA\JetBrains","\\wsl$\Ubuntu","\\wsl.localhost\Ubuntu","\\wsl$\Ubuntu-20.04","\\wsl.localhost\Ubuntu-20.04","\\wsl$\podman-machine-default","\\wsl.localhost\podman-machine-default","\\wsl$\docker-desktop","\\wsl.localhost\docker-desktop","\\wsl$\docker-desktop-data","\\wsl.localhost\docker-desktop-data" I don't think this is recommended. |
Just ran into this problem myself (jetbrains IDE)- for me the fix was fairly straightforward: Turn off 'back up files before saving' in system settings (ofcourse be aware what you are turning off) |
Come on, Microsoft! |
Same here, noticeably slow performance running wsl2 on widows 11. |
ditto with slow performance on compiling times and for web server access internally via 127.0.0.1 for Sphinx documentation livehtml builds. https://learn.microsoft.com/en-us/windows/dev-drive/ Using a dev drive is about equal to using Windows Defender exclusion for folder |
I fixed it partially with Windows Defender exceptions and JetBrains did they part too. It is still slow and even loading ordinary images on main hard drive is slow when you have Ubuntu pinned as one of shortcuts. |
Same here. I have tried installing IntelliJ IDEA on Ubuntu running over WSL2, and the I/O performance issue was resolved, but IntelliJ IDEA crashes frequently with this setup. Therefore, the only option is to run it on Windows and access data in WSL2. While running on Windows, simple I/O operations such as compiling classes took seconds... I don't have permission to modify Windows Defender's configuration. :( |
Samesies, the filesystem appears to just trudge along, and things just hanging and becoming unresponsive is super common. Processes just exit, can't start terminals, terminals disconnecting....etc And the classic |
Version
Microsoft Windows [Version 10.0.22000.1335]
WSL Version
Kernel Version
Linux version 5.15.79.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Nov 23 01:01:46 UTC 2022
Distro Version
Ubuntu 20.04
Other Software
python
Repro Steps
Ensure defender is disabled
On ubuntu WSL measure performance with oneliner that writes one byte to a file, reads it back and obtains file info (stat). It does so 1000 times.
First, measure it on Windows 10 (
[Version 10.0.19045.2364]
)Win10
As you could see, everything is much slower on win FS, but still usable.
Now, lets go to Win11 (
[Version 10.0.22000.1335]
)Here are 13 seconds. But user/sys time is low. On
vmstat(8)
output I see insanely high number of interrupts and context switches. So I assume each FS access leads to many interrupts processed on kernel thread, not accounted as process time because of that.Lets now see syscall wallclock time:
6 seconds for 2000
openat(2)
syscalls on "11th Gen Intel(R) Core(TM) i9-11950H @ 2.60GHz" (one year old CPU) a little but too much, especially when it was not so slow on W10Expected Behavior
I expect to have 1 second for this oneliner on W11 as I had on W10
Actual Behavior
13 seconds for the same script on W11 what took 1 second on W10
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: