-
Notifications
You must be signed in to change notification settings - Fork 832
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 freezes with high CPU usage on arm64 #9135
Comments
May be related to this: #8824 The problem and symptoms are exactly the same. |
Also happens for me often on my surface pro X. Always on high cpu/io tasks after working for a few hours (docker build, npm build, git commit etc). Today it happened again on ctrl+c to close 3 running docker containers. Added the logs |
On my Matebook E Go (OS: Windows 11 22H2), one of the node services would suddenly experience high CPU usage after running for about 15 minutes, and when I tried to kill the service, the whole WSL froze up. |
Adding my $0.02/wo : this consistently happens on my Surface Pro X running latest insiders build. |
This consistently (randomly) happens on Volterra (Windows 11 Pro 22H2, build 22621.1194). VmmemWSL process CPU usage is very high when it freezes on its own and
|
Same for me on Surface Pro 9 (SQ3) |
Has anyone found a workaround for this? Still affecting my SPx, needing reboot every time it wakes from deep sleep. |
No to my knowledge. I have stoppede using wsl on my surface for this reason. But it seems that this #9454 is about the same and someone in there is asking for logs. |
I don't know. I tried a lot of things recommended in other issue threads, but either they seem to break something else or they just didn't work... I just installed linux and now use it daily. |
Since I'm leaving for a trip to Japan in a couple of weeks and want to take (only) my SPx with me, I embarked on some debugging of this syndrome today. Interestingly, I find that although WSL2 seems "hung" in that any existing shell does not respond to key strokes, and any attempt to open a new shell results in a hang after some initial output; it turns out that I am able to run some commands using the |
Hmm...I was able to change the WSL2 time with |
Some progress. On the theory that shells don't start because they're waiting on some process executed through
So next I began |
After recovering shell access I found that WSL2 was not quite working 100%. e.g. Docker was unresponsive. Rather than trying to diagnose these secondary issues I wondered if I could now force WSL2 to restart (much better than having to reboot Windows). In this state (having fixed the clock and un-wedged a shell), Probably a good enough workaround for me for now since this avoids the need to reboot Windows every time I open up my tablet after a period of sleeping. |
Continuing mortal kombat with this bug: I discovered that my "workaround" above was a case of luck. I've never been able to use However, I noticed this possible dup : #8529 and a comment therein that did work, at least the one time I've tried it so far. This in an admin powershell:
Killed WSL2 and it re-started upon opening a new shell, docker working. |
Hey all, I have had this problem for well over a year and I finally solved it for myself. For me the bug was when WSL generates the
Then I could permanently remove the bad character in I don't have this issue on my home computer, so part of me wonders if this issue happens only on domain-joined systems when the hostname line includes a domain computer name. I have no evidence to back this up of course, but I'd be curious to hear from anyone else who this helps whether or not the system with the issue was domain-joined. |
fwiw, I have this character (a unicode BOM mark) also being inserted, and my machine is not joined to a domain. I just made the change, so I don't know if this resolves things or not yet, but happy to have something new to try. |
Wow I'm in disbelief. lawndoc's solution with turning off I didn't have any unexpected characters in my |
I encountered a similar problem when programming with VScode. My CPU is 8cx gen3. This dispelled my idea of purchasing the new Surface Pro. |
See #11274 (comment) This issue is fixed in 24H2. |
Version
Microsoft Windows [Version 10.0.22621.819]
WSL Version
Kernel Version
5.15.68.1
Distro Version
Ubuntu 22.04
Other Software
Programs used when freezes occur:
Node.js
Angular.js (ng)
postgresql
(WSL2 Terminals used in Visual Studio on Windows)
Repro Steps
Error occurs regularly, but randomly. Cannot give steps to reproduce ...
Expected Behavior
I expected the WSL terminals to be always responsive.
Actual Behavior
Sometimes the WSL terminals freeze for more than 10 minutes and there is nothing I can do when this happens. I can't execute any commands or even close running applications. During this time, my CPU runs between 35-99% of its capacity (1% in idle normally).
The command
wsl.exe --shutdown
also doesn't work and just hangs.Diagnostic Logs
https://drive.google.com/file/d/1lfqTItgadQkRguVXO0Bn-M7Z5b7v7gSf/view?usp=share_link
The text was updated successfully, but these errors were encountered: