![启动 VS-code 显著减慢了我的 Ubuntu 20.04 系统速度](https://linux22.com/image/1175897/%E5%90%AF%E5%8A%A8%20VS-code%20%E6%98%BE%E8%91%97%E5%87%8F%E6%85%A2%E4%BA%86%E6%88%91%E7%9A%84%20Ubuntu%2020.04%20%E7%B3%BB%E7%BB%9F%E9%80%9F%E5%BA%A6.png)
我读过类似的问题为什么 Visual Studio Code 在 Ubuntu 中运行缓慢?
但这个答案似乎对我不起作用。你们能建议我需要做什么吗,这样我的 ubuntu 就不会因为运行 VS-code 而变慢。:)
我使用的是戴尔笔记本电脑 - 4GB RAM,i3 处理器。(准确地说是戴尔 Inspiron 3521)。
我在下面附加了 top 命令的输出。
$ top
top - 11:40:01 up 2 days, 4:54, 1 user, load average: 0.74, 2.57, 3.11
Tasks: 289 total, 1 running, 286 sleeping, 0 stopped, 2 zombie
%Cpu(s): 4.1 us, 1.4 sy, 0.9 ni, 88.6 id, 4.9 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3813.9 total, 292.6 free, 2427.7 used, 1093.6 buff/cache
MiB Swap: 7813.0 total, 5850.0 free, 1963.0 used. 912.1 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
446969 rohith 20 0 446336 32668 8112 S 8.2 0.8 0:21.80 tracker-store
2298 rohith 20 0 5016380 213684 36852 S 4.3 5.5 120:22.66 gnome-shell
1997 rohith 39 19 667620 7444 4296 S 2.3 0.2 0:08.63 tracker-miner-f
2054 rohith 20 0 864876 45324 31072 S 2.3 1.2 50:44.60 Xorg
446986 rohith 39 19 1291160 23100 9748 S 2.0 0.6 0:05.92 tracker-extract
445927 rohith 20 0 824608 34444 21232 S 1.6 0.9 0:03.62 gnome-terminal-
320208 rohith 20 0 2739580 151856 62984 S 1.3 3.9 12:11.59 Web Content
448016 rohith 20 0 740764 165376 51232 S 1.3 4.2 0:07.91 code
320048 rohith 20 0 4106348 264832 80484 S 1.0 6.8 45:49.49 MainThread
354123 rohith 20 0 1006532 24320 8568 S 0.7 0.6 0:09.46 nautilus
388853 rohith 20 0 670312 52628 23124 S 0.7 1.3 2:30.48 Discord
389021 rohith 20 0 1245072 172520 44592 S 0.7 4.4 6:30.20 Discord
428795 rohith 20 0 2415592 186724 12468 S 0.7 4.8 0:54.48 teams
266 root 0 -20 0 0 0 I 0.3 0.0 0:09.90 kworker/3:1H-events_highpri
1995 rohith 9 -11 3916496 6452 3956 S 0.3 0.2 81:12.56 pulseaudio
322643 rohith 20 0 2592608 29348 14496 S 0.3 0.8 3:01.68 Web Content
391282 root 20 0 0 0 0 I 0.3 0.0 0:02.81 kworker/3:4-events
430472 rohith 20 0 2897892 99900 48540 S 0.3 2.6 2:48.18 Web Content
433377 rohith 20 0 2480952 76236 25408 S 0.3 2.0 0:39.86 Web Content
439747 root 20 0 0 0 0 I 0.3 0.0 0:01.11 kworker/u16:4-events_power_efficient
446953 rohith 20 0 20616 3676 2904 R 0.3 0.1 0:02.35 top
447335 root 20 0 0 0 0 I 0.3 0.0 0:00.06 kworker/1:4-events
448138 root 20 0 0 0 0 I 0.3 0.0 0:00.27 kworker/0:3-events
1 root 20 0 169400 6912 4124 S 0.0 0.2 1:15.90 systemd
此外,下面还提供免费命令输出:
$ free
total used free shared buff/cache available
Mem: 3905460 2483388 315088 289392 1106984 926000
Swap: 8000508 2010884 5989624