-
Notifications
You must be signed in to change notification settings - Fork 302
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
High CPU usage in WSL after last update #4637
Comments
Rolling back to the previous version of extension (1.54.0) also didn't help. Looks like the problem is again with WSL? Any suggestions how to debug what is causing node to consume so much CPU in idle? |
I tried to follow this issue, but my libc version is |
Can you check the Process Explorer ( |
Can you set |
Thanks but that doesn't fix it for me. |
@aeschli tried to disable polling and it helped. So something is broken with file polling in a new vscode release/WSL? |
I have the same issue and disabling the polling helped (CPU usage by |
watching by file polling is CPU costly by nature. It's basically scanning the open folder every 5 seconds (Can be configured by But polling is currently the only way to get reliable file events when on a |
I'm using WSL and vscode-remote extension since it was released, and I never had such problem until recent vscode release. In the exact same environment, without any changes it was working fine until ~week ago. Maybe they changed a default polling interval or something else? |
I have now disabled polling by default. Published ms-vscode-remote.remote-wsl@0.54.5 |
After recent update of VSCode, a CPU usage of a
node
process from vscode-remote extension is incredibly high. This process constantly consumes 30-40% of CPU.VSCode version: 1.54.1
vscode-remote extension version: 0.54.2
WSL 1
Ubuntu 18.04
I tried to run vscode's developer tools to check resources usage and to collect performance profile, it doesn't show anything. Also disabling all other extensions doesn't help. Obviously it works ok only when I run vscode natively in windows, not from WSL.
Any ideas why it is happening and what info I can provide to you to help with debugging?
The text was updated successfully, but these errors were encountered: