Closed eduardopilati closed 1 year ago
Before the 22h2 update wsl took less than 10 seconds to start, now it takes 2 minutes
disabling swap by including setting swap=0
in wslconf solved the problem
disabling swap by including setting
swap=0
in wslconf solved the problem
I've just tried to create the file %USERPROFILE%\.wslconfig
with this swap=0
line, but WSL 2 startup is still much slower than it used to be before I updated Windows 11 to 22H2...
I'm not sure if it's related, but disconnecting inaccessible mapped network drives solved it for me. Here's an issue -> #9358
Disconnectting mapped drives is not a solution. I have 6 mostly offline mapped drives and WSL start takes 4 minutes and 17 seconds. This issue should be reopened.
@eduardopilati This is not fixed. This issue should not have been closed.
Version
Microsoft Windows [versão 10.0.22621.963]
WSL Version
Kernel Version
Linux version 5.15.79.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
Launch WSL
Expected Behavior
Wsl start in a few seconds
Actual Behavior
Wsl taking too long to start for no reason
Diagnostic Logs