Microsoft/vscode

Slow updates on Debian GNU/Linux

Open

#163,690 创建于 2022年10月14日

在 GitHub 查看
 (1 评论) (0 反应) (2 负责人)TypeScript (10,221 fork)batch import
debthelp wantedinstall-updatelinux

仓库指标

Star
 (74,848 star)
PR 合并指标
 (平均合并 11小时 43分钟) (30 天内合并 1,000 个 PR)

描述

Does this issue occur when all extensions are disabled?: n/a--installation

  • VS Code Version: 1.72.2 Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075 Date: 2022-10-12T22:16:26.920Z Electron: 19.0.17 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0
  • OS: Linux x64 5.10.0-18-amd64 Sandboxed: No

Steps to Reproduce

  1. Run aptitude
  2. update packages when there is a new version of code available
  3. Request installation of the update

For at least the last few versions, including even minor point releases, the installation is very slow, taking perhaps 10-15 minutes after the download. For much of that time update-mime-database is running and using a lot of CPU. plasmashell (pretty sure its part of KDE, which I'm running) also showed high activity for part of the install/upgrade.

Comments/Possible fixes

update-mime-database has an -n option to avoid unnecessary work; the man page specifically mentions using it in packaging scripts. code.postinst invokes update-mime-database without using -n. Maybe adding it would help, at least if there are no changes to the mime database.

While I'm doing the installlation the disk is also getting continuous writes from shows I'm recording. It is using a btrfs file system, and while the install is in progress the result is repeated message of slow writes to the discuss for the files being recorded, e.g., Oct 14 10:45:11 barley mythbackend[5370]: 2022-10-14 10:45:11.585023 W TFW(/usr/local/myth20/16502_20221014170000.ts:75): write(65424) cnt 9 total 529596 -- took a long time, 1013 ms

贡献者指南