Skip to content
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

WSL remote: High CPU from watcher service #119001

Closed
bpasero opened this issue Mar 15, 2021 · 3 comments
Closed

WSL remote: High CPU from watcher service #119001

bpasero opened this issue Mar 15, 2021 · 3 comments
Assignees
Labels
file-watcher File watcher freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues remote Remote system operations issues

Comments

@bpasero
Copy link
Member

bpasero commented Mar 15, 2021

I am seeing an increasing number of people complaining about high CPU in remote scenarios from the watcherService. My understanding is that we run with polling in those environments because the file system capabilities do not allow for proper file watching.

We should at least try to figure out a better default to reduce high CPU loads or maybe allow the user to configure this.

Extracted from #118613 (comment)

@bpasero bpasero added freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues file-watcher File watcher remote Remote system operations issues labels Mar 15, 2021
@alimbada
Copy link

@bpasero thanks for creating this. Just to add a bit more context, this has only become an issue since upgrading to 1.54.x. There were no problems prior to the upgrade.

@aeschli
Copy link
Contributor

aeschli commented Mar 15, 2021

It's already configurable:

  • remote.WSL.fileWatcher.polling (default true) to control whether polling is used or not
  • remote.WSL.fileWatcher.pollingInterval: to change the default polling interval

But there has been many complaints of high CPU loads. So I'm going to change the default to false.

@aeschli
Copy link
Contributor

aeschli commented Mar 16, 2021

duplicate of microsoft/vscode-remote-release#4637

@aeschli aeschli closed this as completed Mar 16, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
file-watcher File watcher freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues remote Remote system operations issues
Projects
None yet
Development

No branches or pull requests

3 participants