Closed plasma-vision closed 3 weeks ago
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Well, moments after posting this, I managed to fix it. I tried running wsl.exe --status, which timed out with a memory error, so I thought to try looking at Windows virtual memory settings (something I haven't thought of for years). It was set to "Automatically manage paging file size for all drives". I unchecked that. Chose "no paging file" and clicked set. Then I changed my mind and switched back to "System managed size", and re-enabled "Automatically manage paging file size for all drives" and clicked OK. It asked me to reboot, and now WSL launches quickly every time. This seems like a totally random fix, if in fact that is what fixed the issue, but if you are having the same problem, give it a try. I had been trying to fix this for weeks.
I guess we can close this, since I was able to fix it. I'm still puzzled about why this was an issue, but I've wasted enough time on it already. I hope it helps someone else facing the same issue.
Windows Version
Microsoft Windows [Version 10.0.22631.3737]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-microsoft-standard-WSL2
Distro Version
Ubuntu 24.04, Ubuntu 22.04, Kali Linux
Other Software
Cisco AnyConnect Secure Mobility Client 4.10.08029 (this has known issues with WSL2, but I don't seem to be having problems with the networking)
Repro Steps
Start from a freshly booted computer. Launch a WSL Linux distro, or run a WSL.EXE command. Wait.................... ............................. .............................
Expected Behavior
I expect it to launch in less than a minute (previously it would launch in under 10 seconds).
Actual Behavior
I've tried 3 distros (Ubuntu 22.04, Ubuntu 24.04 and Kali Linux) and they all have the same problem. Even trying to run wsl.exe commands takes 10+ minutes.
dmesg shows long gaps in time between _hvballoon and /sbin/ldconfig, then another gap between some Ioctl failed messages for dxgk and /sbin/ldconfig.real
See attached snippit from dmesg output.
I've fully uninstalled WSL and reinstalled, but the issue persists.
I've tried re-installing the NVIDIA drivers for Windows because the dxgk errors appear to be related to DirectX. I tried disabling the GPU (gpuSupport=false) in .wslconfig, and that got rid of the Ioctl failures, but the loading of WSL took even longer.
Is anyone else experiencing this?
Diagnostic Logs
No response