Replies: 2 comments
-
Without seeing the actual codebase, I think it will be hard to gauge if this is expected behaviour or not. ~5Gb of RAM is not much if you have a few tens of millions lines of code for 10M lines it averages to 500 bytes per line. Can you provide additional information, like number of lines of your project or even the codebase, your fortls settings, and anything else that could be relevant? FYI fortls by default should be using 4 processes, unless you changed that, which could indicate that 2 files in your project are slow to parse. |
Beta Was this translation helpful? Give feedback.
-
Sure, it is the Quantum ESPRESSO[1] git three, with my much smaller project nested within [2]. This totals about 1.36M lines (53MB of Fortran code). Which is still 1 order of magnitude smaller than your example.
The problem was that vsc was spawning two separate fortls process, with 4 threads each, which is not normal. Anyway, since updating vsc to version 1.95 the other day, the problem seems to have solved itself and fortls is only using about 1GB virtual memory. I'll be back if the problems come back Thank you [1] https://gitlab.com/QEF/q-e |
Beta Was this translation helpful? Give feedback.
-
Hello,
I use fortls through vsc for a large project that includes about 3200 fortran files, composed of several git repositories. I also have a separate directory which has compiled "historical" versions of the same code with about 45'000 fortran files in total, for quick reference.
I find that fortls is using too much memory, which can also spike sometime when I start a compilation, causing my system to hang.
I.e. here is a sample output for fortls running in backgroud while a single vsc windows is open but idle:
I.e. there are two fortls processes, each is using 17.5% of my 32GB of RAM.
I have explicitly excluded the "historical" directory, but it does not seem to be the source of the problem. Is this memory usage normal? Or anybody has some hint on how to reduce it.
regards
Beta Was this translation helpful? Give feedback.
All reactions