-
Notifications
You must be signed in to change notification settings - Fork 859
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
Slow WSL startup when network drive unreachable #9358
Comments
Same issue. Everything works fine after disconnect SMB disks. |
I see the same slowness of WSL2 start with some unreachable network drives, see the attached log. |
This issue is still present in the WSL2 version 1.1.3. |
I can confirm, that disconnecting SMB drives solved my extremely slow startup issue. I'm using WSL for more than a year, and this became an issue only recently, so it was introduced in one of the updates. |
Can this be finally fixed please? I cannot unmap my drives. WSL should launch immediately even when mapped network drives are inaccessible. This almost 1 minute delay is very annoying. |
Have tried the workaround but still having the same issue. WSL startup took about 2mn for having only one network drive unreachable. |
Same issue here. I'm glad that I found the problem after a few hours of googling, because I had to wait for 4+ minutes for every WSL instance start. This is insane. |
Same issue. Likely introduced with an update, WSL startup was much faster before even with unavailable network drives. |
Also having the same issue, how is this not fixed yet? |
Hello, same issue here, without much luck in searching for a solution. |
Same issue here, so weird this has been a issue for so long. Was searching for ages for the cause of slow wsl startups until I found this. |
I triggered this problem by mapping drive letter U: to the WSL Ubuntu drive (i.e. \\wsl.localhost\Ubuntu). Even disabling automounting in the wsl.conf didn't help. |
I have mostly inaccessible SMB drive on my laptop that only works when connected to company VPN. WSL startup goes from seconds to 5 minutes when this drive is mapped. Unfortunately I can't unmap it as I am not privileged enough to do so. |
As soon as I removed all unreachable network drives, startup time dramatically increased. |
I'm having the same problem on WSL2 v2.0.x as well (I tested up to 2.0.11). It took ~5 minutes for wsl to startup, but it got fixed once I removed my unreachable mapped network drives. |
Also having the same issue. I tried to use these settings in wsl.conf [automount] and mount the drives that are always present in /etc/fstab but that doesnt help. Same issue with really slow startup time anyway. Only thing that works is to umount the drives in windows (no drive letter attached) and everything works fine but this shouldn't be needed. Please fix! |
Does WSL have a way to inject a script that temporarily disables networking during startup? Unmounting network shares is not an option for me as well |
It started to fail for me this week with 3 network locations connected, WSL become almost useless overall:
WSL version was 1.2.5 The dmesg log messages were pointing to this issue: [Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Wed Mar 6 09:35:34 2024] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2 I unmounted/disconnected the Windows network locations & updated WSL to latest ver: 2.1.4 |
So re-adding mainly offline network locations to an updated WSL works also when restarting WSL/host and network locations are still offline? |
After upgrading to the WSL version 2.2.4 I do not have this problem anymore. |
Upgrading from
to
fixed the problem for me as well. |
Version
Microsoft Windows [Version 10.0.22621.963]
WSL Version
Kernel Version
5.15.79.1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
1- Define some network drive
2- Shutdown WS to which network drive is linked to.
3- Run WSL distro and it will take about 2mn and more for startup.
Expected Behavior
Actual Behavior
Diagnostic Logs
WslLogs-2022-12-17_22-41-51.zip
The text was updated successfully, but these errors were encountered: