code-settings-sync
code-settings-sync copied to clipboard
Electron process continues to consume large amounts of CPU resources
Issue Type: Bug
Only recently and for a long time, the "Electron" process, apart from the "Code" process, has been constantly consuming around 38% CPU, only when VSCode is running.
Using the Extension bisect utility in VSCode, Settings Sync was identified; disabling Settings Sync improved the significant CPU consumption.
Extension version: 3.4.3 VS Code version: Code 1.67.0 (Universal) (57fd6d0195bb9b9d1b49f6da5db789060795de47, 2022-05-04T12:14:47.100Z) OS version: Darwin arm64 21.4.0 Restricted Mode: No
System Info
Item | Value |
---|---|
CPUs | Apple M1 (8 x 24) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled |
Load (avg) | 4, 6, 6 |
Memory (System) | 16.00GB (0.12GB free) |
Process Argv | --crash-reporter-id cb19a0e9-22b4-4813-9c8f-09efdecca93b |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
pythonvsnew555:30457759
vscscmwlcmt:30465135
cppdebugcf:30475217
Not sure if related, but since I updated to 1.67.0 my terminal tab (View -> Terminal) switched to the output tab every few minutes where I could see that the extension uploaded my settings. So maybe it is in some kind of uploading loop that causes the high resource usage.
https://github.com/microsoft/vscode/issues/142828#issuecomment-1139928566
I had issues with Code Renderer proc eating up 60% of CPU on my. In my case, everything started to work fine after disabling the Settings Sync. I ran bisect to be sure it's the extension. Seems like there might be some upload loop that leads to high CPU usage. I can rerun some tests later.