rust-lang / rls

Repository for the Rust Language Server (aka RLS)
Other
3.51k stars 257 forks source link

Laptop freezing: 4 GM ram, only with RLS enabled, Manjaro Linux #1569

Open jamesray1 opened 4 years ago

jamesray1 commented 4 years ago

My laptop keeps freezing when I run rls in VS code. Previously I had issues with the laptop freezing in other situations, e.g. with many tabs open in Firefox, but today the freezing only started to occur after installing RLS builder. I can use VS code, and make some modifications, for maybe a few minutes, before it freezes, and I have to restart. I only have 4 GB of RAM. While it is required that I get a new laptop anyway for what I am working on—Holochain, at the moment I am just waiting on some more funds to arrive in my account, and even then it would still be risky to spend more on a better laptop, until I get a job.

[jr@lm ~]$ inxi -Fxxx
System:    Host: lm Kernel: 4.19.79-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.2.0 
           Desktop: KDE Plasma 5.16.5 tk: Qt 5.13.1 wm: kwin_x11 dm: SDDM 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: Dell product: Latitude E6410 v: 0001 
           serial: <root required> Chassis: type: 9 serial: <root required> 
           Mobo: Dell model: 0HNGW4 serial: <root required> UEFI: Dell v: A16 
           date: 12/05/2013 
Battery:   ID-1: BAT0 charge: 33.3 Wh condition: 33.3/48.8 Wh (68%) volts: 12.5/11.1 
           model: Samsung SDI DELL PT43699 type: Li-ion serial: 7 status: Full 
CPU:       Topology: Dual Core model: Intel Core i5 M 560 bits: 64 type: MT MCP 
           arch: Nehalem rev: 5 L2 cache: 3072 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 21290 
           Speed: 1411 MHz min/max: 1199/2667 MHz boost: enabled Core speeds (MHz): 1: 1463 
           2: 1474 3: 1463 4: 1463 
Graphics:  Device-1: Intel Core Processor Integrated Graphics vendor: Dell Latitude E6410 
           driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0046 
           Display: x11 server: X.Org 1.20.5 driver: modesetting 
           alternate: fbdev,intel,vesa compositor: kwin_x11 resolution: 1440x900~60Hz 
           OpenGL: renderer: Mesa DRI Intel Ironlake Mobile v: 2.1 Mesa 19.2.1 
           direct render: Yes 
Audio:     Device-1: Intel 5 Series/3400 Series High Definition Audio 
           vendor: Dell Latitude E6410 driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
           chip ID: 8086:3b56 
           Sound Server: ALSA v: k4.19.79-1-MANJARO 
Network:   Device-1: Intel 82577LM Gigabit Network vendor: Dell Latitude E6410 
           driver: e1000e v: 3.2.6-k port: 7040 bus ID: 00:19.0 chip ID: 8086:10ea 
           IF: eno1 state: down mac: 00:26:b9:e0:a5:6c 
           Device-2: Broadcom and subsidiaries BCM43224 802.11a/b/g/n 
           vendor: Dell Wireless 1520 Half-size Mini PCIe Card driver: bcma-pci-bridge 
           v: N/A port: 7000 bus ID: 02:00.0 chip ID: 14e4:4353 
           IF-ID-1: wlp2s0b1 state: up mac: 88:9f:fa:5e:83:8f 
Drives:    Local Storage: total: 298.09 GiB used: 32.93 GiB (11.0%) 
           ID-1: /dev/sda vendor: Seagate model: ST9320423AS size: 298.09 GiB 
           speed: 3.0 Gb/s rotation: 7200 rpm serial: 5VJ9NCZP rev: SDM1 scheme: GPT 
Partition: ID-1: / size: 292.12 GiB used: 32.92 GiB (11.3%) fs: ext4 dev: /dev/dm-0 
Sensors:   System Temperatures: cpu: 44.0 C mobo: N/A sodimm: 44.0 C 
           Fan Speeds (RPM): cpu: 2884 
Info:      Processes: 200 Uptime: 1h 08m Memory: 3.72 GiB used: 1.74 GiB (46.9%) 
           Init: systemd v: 242 Compilers: gcc: 9.2.0 clang: 9.0.0 Shell: bash v: 5.0.11 
           running in: konsole inxi: 3.0.36 
sepiropht commented 4 years ago

Same problem heavy ram consumption. i have 16g of ram and rls take 60 % ! I'm using archlinux

jamesray1 commented 4 years ago

@sepiropht, thanks! As aside comments, I'm glad that the desktop that I got earlier this year has 64 GB of RAM! Although currently I've been using my laptop with only 4 GB at the library. I am planning on setting up internet at home (with mobile broadband rather than more expensive fixed NBN plans), but am currently monitoring my usage with vnstat before doing so. If/when I test on the desktop I'll report back.