-
Notifications
You must be signed in to change notification settings - Fork 823
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: Boot slow with multi-core CPU #5289
Comments
You can try to add clearcpuid=514 as a kernel boot option to disable UMIP support. Following this you can add the kernel parameter to Remember to |
After disable the UMIP, I found the problem is not UMIP...
|
Interesting. Try reducing the number of processors on |
I set not sure why it's still slower then laptop, but at least acceptable now. |
You can also try to compile latest kernel. I'd read it wasn't until kernel 4.21.x that linux wasn't optimized for zen2 CPUs. |
Confirmed here on 3950X (no surprise natch). About ~4.6s to get the whole herd:
Thing is, the delay is going to be an upstream thing; either in the kernel, or some suboptimal interaction with the hypervisor. Someone especially motivated would have to try booting Linux on bare metal to see if the wait is hypervisor related or just the kernel (I give evens). Whatever the cause, the inconvenient truth is it probably won't get many eyeballs in this venue. You could try posting an issue in the kernel github in the hope it might get a sighting. |
Same problem on 3900x, even with UMIP disabled.
|
just compiled kernel 5.7.11 for WSL2
the delay between smp reduced a lot but another strange raid6 appears |
Like the same problem (Hareware: R5 2600, 16GB mem)
My WSL2 distro(one of ubuntu16.04 and another ubuntu 18.04 ) start very slow (usually more than 50s).
2、ubuntu18.04:
other imformation:
|
A like on the OP (there are 2 as of this writing) is almost certainly more effective than several screens worth of inline dmesg output. |
OK. Now I use
It is shorter, but still use 3 seconds. |
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! |
ver
at a Windows Command Prompt)WSL2 spent much longer (about 2.9sec) than expected to boot up on my Ryzen 3700X desktop
and seems the bottleneck is UMIP (User Mode Instruction Prevention):
On my X1C 6th with i7-8550u (No UMIP support) it only tooks 0.6 sec to boot up WSL2:
The text was updated successfully, but these errors were encountered: