-
Notifications
You must be signed in to change notification settings - Fork 255
cpu usage pegged at 100% seemingly forever #1016
Comments
I'm curious if there's an edge case where the doc extraction is getting into an infinite loop. Would you be able to build and run using: https://github.com/aloucks/rls/tree/extract-docs-max-line-reads |
Steps to reproduce would be really useful too, is this bug occurring reliably? |
Pretty reliably, yes. When editing chalk. |
How do I build + run from a custom branch? I've only ever used the RLS from rustup :) |
There are some instructions here: https://github.com/rust-lang-nursery/rls/blob/master/contributing.md If using vscode, you can set the |
I'm seeing this very often with trust-dns as well. |
Seeing the same issue on a project of mine, it'll just run for hours. Consuming a full core, without any sign of getting better, until I kill it. (Using it through emacs) |
Can you set |
1091: Add addtional trace logging in hover doc extraction r=Xanewok a=aloucks Also corrected some of the trace wording that was no longer accurate after the changes in PR #1088. This PR is to help track down if doc extraction is the culprit in the excessive CPU usage issue: #1016. Co-authored-by: Aaron Loucks <aloucks@cofront.net>
These changes have been merged. Could you test if this still happening with the latest nightly? |
I just updated nightly and am not seeing the issue in my projects. I’ll post back if I do see it again. Nice work! |
so far things are looking good on my side as well with the latest nightly version
…On 24. Oct 2018, 02:18 +0200, Benjamin Fry ***@***.***>, wrote:
I just updated nightly and am not seeing the issue in my projects. I’ll post back if I do see it again.
Nice work!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@nikomatsakis are you still seeing this behavior with the latest nightly RLS while editing chalk? |
I've been running on Chalk for a while and can't repro, so closing. @nikomatsakis feel free to reopen if you can still repro. |
This came back :( Pretty much happens every time when I am working on https://github.com/dignifiedquire/pgp now. There is one change though, it stays at 150% cpu usage, even after I stop doing any changes to the code for hours (until I kill it) Will post a trace in a bit
Edit added rls version |
What kind of work are you doing to trigger the high CPU use? (What combination of edits and builds?) |
what kind of work:
while code != working: make small edits & run tests
Interestingly enough, after I posted this, and tried to reproduce another time it is not happening. Due to my setup I had a bunch of different other rust based projects open, which seemed to have lingering rls instances attached to them. Now that all of those are gone things to work well for the moment. Sorry for not being more helpful, I will try and find out more as soon as it happens again.
|
I noticed this the other day while doing a lot of edits, commits and then running |
I am experiencing this as well. It happens when I have bugs AND markdown documents at the same time. |
I see the same results sometimes the CPU usage is around 200% should I open another bug request for this since this one is closed? |
this is the case for me around 300% @nrc |
@NikosEfthias which |
this is happening to me as well. Using rls 1.34.0 (6840dd6 2019-03-10). Very high cpu with VSCode and eating all 16GB of ram. My computer completely crashes from time to time while rls is running since this update |
Could you share your repositories inside which you encounter this issue? Preferably with what you might have been doing at the time (e.g. last time hovering a first item in a file caused RLS to busy loop) |
It happens while editing code normally. In my case i had updated VScode as well on the same day, and now the WatcherService from VSCode started eating up all my ram until my computer completely freezes. This is not a problem of RLS (at least on my case) |
@Xanewok mine is |
I'm using Emacs lsp-mode, and I've found a consistent way to reproduce this.
|
I've found an easier way to reproduce (without any specific text editor):
|
These are good reproduction steps. I see the issue with I'll re-test when rust 1.34 is out, if I get time, as the next stable rls should be fixed. |
Yep 1.34 pre-release seems fixed. |
I've encountered this issue on every single Linux machine I had (Ubuntu & Fedora): RLS starts building, maxed at 100% on a core. Once the building process is done the laptop fans quiet down, and CPU usage drops. After a single edit of a file, RLS seems to start building the entire repo again. This happens over and over, which means one core has a usage of 100% seemingly forever. My laptop is powerful enough, but the constant spinning fans start to annoy my coworkers... Thanks |
With the recent work on out-of-process compilation (#1536) it hopefully can distribute the load more evenly. Another potential boost is when we ship the parallel compiler by default but that won't be soon, I'm afraid. |
I'm seeing rls taking up 100% CPU on my machine, thought it was chrome but turn out it's rls, I use ale with don't know why but it happens when I open chrome, at that time rls seems to cause high load as well. |
I suspect that |
I've had the RLS CPU usage pegged at 100% for hours now. I attached with lldb and found this:
Most of the threads appear to be asleep on cond vars, but here are some backtraces from those that are not:
and
The text was updated successfully, but these errors were encountered: