Deep Majumder via llvm-dev
2021-Mar-09 13:46 UTC
[llvm-dev] Limit clangd ram and processor usage
Hi everyone, I use clangd in Neovim (and CoC). Now the thing is that clangd while working on llvm source code peaks CPU usage on 4 cores. The RAM usage spikes to about 3gb. Is there a way to limit this? Warm regards, Deep -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210309/55210b69/attachment.html>
Nathan James via llvm-dev
2021-Mar-09 14:27 UTC
[llvm-dev] [cfe-dev] Limit clangd ram and processor usage
Hi Deep, Does your system use glibcs ptmalloc2(most linux systems do). If that is the case, there was an issue with the allocation patterns used in clangd causing arenas to continuously grow. This has been addressed in the upcoming clangd-12 release. If that's not the case, would you consider filing a bug report at https://github.com/clangd/clangd/issues please. ~ Nathan James On Tue, 2021-03-09 at 19:16 +0530, Deep Majumder via cfe-dev wrote:> Hi everyone, > I use clangd in Neovim (and CoC). Now the thing is that clangd while > working on llvm source code peaks CPU usage on 4 cores. The RAM usage > spikes to about 3gb. Is there a way to limit this? > Warm regards, > Deep > _______________________________________________ > cfe-dev mailing list > cfe-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev