-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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 after upgrading to version 1.54.1 in Ubuntu #118613
Comments
Can you provide the output of |
Here it is: felip@Felip-MSI:~$ cat /proc/645264/cmdline
/usr/share/code/code/usr/share/code/resources/app/out/bootstrap-fork--type=watcherService |
the same story for me.
needless to say it slows down dramatically all the things such as suggestions |
the possible solution in my case is turning config setting remote.WSL.fileWatcher.polling to false (although this has its consequences explained in its description) |
@ailixter for WSL please file a separate issue @deepak1556 isn't this a duplicate of #3998? @fperezgaliana does it reproduce even when you open small folders? Are you opening local or remote folders? |
@bpasero it only happens on relatively big projects (+5000 source files). I've opened an smaller application (200 files) and it works perfectly. I've tried opening a remote folder (via SSHFS) containing a Symfony application with ~1200 source files and also works fine. |
@fperezgaliana does it help if you configure |
I have the same issue with the same setup (Win 10 on WSL Ubuntu 18.04). The only workaround that has worked for me is the one suggested in #3998, setting |
I'd like this issue to be reopened, because it is very much present still in 1.56.0, and not only in Remote WSL. In Remote SSH to a Linux host I get the same high CPU usage in the watcherService whenever I run a build in that workspace. Excluding files or whole directories with |
Issue Type: Performance Issue
After upgrading VS Code from version 1.53.2 to 1.54.1 in Ubuntu 20.10, I've realized that the laptop fans were working at full throttle. I ran "top" from the terminal and I saw that there was a "code" process taking more than 140% of the CPU (sometimes even more than 300%) and it stays like this indefinitely. The strange thing is that the process explorer from the help menu shows 0-1% CPU usage, so I'm a little bit lost with this. While it's fixed, I'll try to go back to the 1.53 version. Thanks.
VS Code version: Code 1.54.1 (f30a9b7, 2021-03-04T22:38:50.094Z)
OS version: Linux x64 5.8.0-44-generic
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Process Info
Workspace Info
Extensions (23)
(2 theme extensions excluded)
A/B Experiments
This is my actual
top
output:The text was updated successfully, but these errors were encountered: