-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory use regression in 1.4.0? #2237
Comments
Hi, recently @pepeiborra has indentified a perfomance regression for 1.4.0 and it is working in improving it:
Not sure if problems loading ghc in hls would be related but it seems those improvements which will be included in 1.5.0 could help |
If you could quantify the memory use regression between 1.3 and 1.4, that would be very helpful. |
Maybe @mpickering could help as afaik he is actively developing ghc using hls and due his expertise in performance issues |
@cptwunderlich I am using a build from this commit d56ea60 with most of the plugins disabled and I am not seeing any really bad memory issues at the moment.
|
Alternatively plugins can be deactivated at runtime to test its impact quickly, although it is not exactly the same than remove it from builds. See an example on how to do it here: #2151 (comment) |
I've noticed something too because I've switched over to HLS-1.4.0 (caveat: I always build manually with When I start up VSCode and open a I wonder how much this might be part of the problem, but I'd at least wanted to share what I've noticed. |
I'm sorry, I know this was kind of vague. I'm afraid I can't quantify it. I used to be able to work and recently I'm running out of memory. Anyway, it seems that these are known issues and fixes are in the making! I did deactivate a few plugins and set "Haskell: Log File", "Haskell > Trace: Client: debug" and "Haskell > Trace: Server: messages" - I will keep an eye on the log file when this happens again. @Vlix well, I was using all defaults with the VS Code extension downloaded binary. However, I did see two running instances of HLS once or twice. Not sure if I can reproduce or see why it happened... |
Hi, duplicate output logs could be caused by haskell/vscode-haskell#448 |
Ah, that might very well be it. Though I did still notice degraded performance when opening files outside of the workspace/cradle I was in. 🤔 |
This might deserve it's own issue, but I wanted to add that I've experienced this as well. When opening Additionally, the extra processes are not removed upon using the "Restart Haskell LSP server" command. It takes a "Reload Window" command to get back to a single instance of hls. It's an interesting question how hls should behave in this situation, but burning through extra resources for no gain is probably not it. |
I have experienced it too just today, please open it, although maybe should belong to the vscode extension issue tracker |
@Friede80 Do you also get like double suggestions for e.g. imports or type signatures? |
Yes. I get double errors/warnings reported and double hover docs too. |
@cptwunderlich @Vlix and other participants: related only with performance, hls 1.5.0 includes several improvements about, could you check if memory usage is improved also for you? |
I'm now getting the following error on 2 files in a dependency of the library I'm working in.
I've built HLS with For one of the files, the module pointed to in the |
This is due to a regression in 1.5.0, fixed in #2380 |
Does it have any impact on performance or anything else? Or is it just an annoying error that I should ignore? |
No performance impact afaik, the error will be fixed in a minor bug fix release |
The |
@cptwunderlich @Vlix hi, i am gonna close it optimistically, feel free to reopen or open a new one if you continue experiencing memory usage issues with newer versions please |
I've been using HLS in VS Code for working on GHC for a few months and am very happy with it.
In fact, I can't imagine working without it anymore.
But in the last few days, memory use exploded several times. So much, that I had to hard reset my laptop 3 times in 2 days bc. it was unresponsive for a long time.
I'm sure you get a lot of complaints about memory usage, but is this a regression/new bug? At this rate, I can't use HLS bc. it will lock up my PC every few hours and I can't even kill the process bc. it's swapping like crazy.
I think others are also affected.
Repro: Uhm, check out GHC source tree and start editing?
Versions:
vscode-haskell: v1.6.1
VS Code: 1.60.2
OS: Ubuntu 20.04.3 LTS, Linux 5.11.0-34-generic
AMD Ryzen 7 4700U, 16 GB RAM
The text was updated successfully, but these errors were encountered: