vscode: High CPU usage

Issue Type: Performance Issue

Closed everything but the cpu usage is still about 20%

VS Code version: Code - Insiders 1.39.0-insider (e0762af258c0b20320ed03f3871a41967acc4421, 2019-09-27T05:26:42.235Z) OS version: Windows_NT x64 10.0.18990

System Info
Item Value
CPUs Intel® Core™ i7-8750H CPU @ 2.20GHz (12 x 2208)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 47.76GB (38.62GB free)
Process Argv
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	    91	 14816	code-insiders main
    0	    54	  5928	   electron-crash-reporter
    0	   132	 10228	   window (Welcome - Visual Studio Code - Insiders)
    0	    92	 16920	     extensionHost
   10	    88	 10280	   shared-process
    0	    63	 11512	   utility
    0	   147	 14452	   gpu-process
    0	    85	 18720	   window (Issue Reporter)
Workspace Info
;
Extensions: none

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 14
  • Comments: 28 (10 by maintainers)

Most upvoted comments

Seeing the same after this very last update. 1 core pinned by the shared process, disablingc extensions doesn’t meaningfully impact it.

Version: 1.39.0-insider (user setup) Commit: e0762af258c0b20320ed03f3871a41967acc4421 Date: 2019-09-27T05:26:42.235Z Electron: 6.0.9 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 10.0.18985

I’m seeing this too, right after the very same update; shared-process eats one CPU core.

VS Code version: Code - Insiders 1.39.0-insider (e0762af258c0b20320ed03f3871a41967acc4421, 2019-09-27T05:26:42.235Z) OS version: Windows_NT x64 10.0.18362

Process Monitor reveals that VSCode is constantly doing bad I/O and failing, e.g. Code - Insiders.exe CreateFile C:\C: NAME INVALID (there’s a constant pattern of commands that repeats indefinitely), perhaps the clean up code is not quite handling I/O stuff properly.

Seems to be better for me. (Looks like Electron was revered back to v4 for this version too)

Yes its not available in latest insiders. Will release new one with the fix and let you know.

Seems to be better for me. (Looks like Electron was revered back to v4 for this version too)

Definitely Better! Yes, it definitely looks better, cpu-usage-wise.

Version: 1.39.0-insider Commit: 313ede61cbad8f9dc748907b3384e059ddddb79a Date: 2019-10-01T07:29:05.652Z Electron: 4.2.10 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Windows_NT x64 10.0.18362

2

Version: 1.39.0-insider Commit: 9f6a745027fc7b2a12495970f64625e24f410224 Date: 2019-09-24T05:26:22.699Z Electron: 6.0.9 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 10.0.18362

1

But… But I can’t help wondering why it was required to go back to year(s)-old versions of Electron, Chrome and Node.js. The 1.39 2019-09-24 version that worked OK has more up-to-date components. And why the extra child process on identical conditions? Just wondering…

Released new insiders. Please check it out.

@John-McClane Windows User Setup for the Thursday build is here.

Lots of mkdirp activity in some of the CPU profiles. Can’t find a hint where this originates from.

/cc @jrieken @bpasero @sandy081

Same Issue I can confirm exactly the same behavior. The cpu usage was absolutely normal most definitely up to the 2019-09-25 release. It definitely started after the 2019-09-27 update.

1 core constantly pinned down by the shared process, Disabling extensions doesn’t meaningfully impact it.

System Info

CPUs Intel® Core™ i7 CPU Q 720 @ 1.60GHz (8 x 1596) GPU Status 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: unavailable_off skia_renderer: disabled_off surface_control: disabled_off surface_synchronization: enabled_on video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off webgl: enabled webgl2: enabled Load (avg) undefined Memory (System) 7.99GB (3.63GB free) Process Argv Screen Reader no VM 50%

Version Info

Version: 1.39.0-insider Commit: e0762af258c0b20320ed03f3871a41967acc4421 Date: 2019-09-27T05:26:42.235Z Electron: 6.0.9 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 10.0.18362

Screenshots

1 2 3 4

Shared process CPU profile (~60 seconds)

CPU-20190929T121003.cpuprofile.txt

Previous Versions Available? BTW, is there a directory from where we can download previous versions of the 1.39 insider branch? I have been looking but cannot find anything but the latest version. This would temporarily solve the issue for us (high cpu usage and fan noise on top of it). Thanks in advance.

seeing the same

Version: 1.39.0-insider (user setup) Commit: e0762af258c0b20320ed03f3871a41967acc4421 Date: 2019-09-27T05:26:42.235Z Electron: 6.0.9 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 10.0.17763

image

nothing obvious in Resource Monitor