<div dir="auto">Thank you Sam and Nathan! This has solved the memory build up problem.<div dir="auto">Warm regards,</div><div dir="auto">Deep</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 11 Mar, 2021, 7:30 pm Sam McCall, <<a href="mailto:sammccall@google.com">sammccall@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Deep,<div><br><div>If you're running a relatively standard linux system such as ubuntu then you're using the platform-standard glibc malloc which was affected by this bug.</div></div><div>If you're using the 11 release or earlier i'm fairly sure the bug Nathan mentioned is the cause.</div><div><br></div><div>In that case, can you try <a href="https://github.com/clangd/clangd/releases/tag/12.0.0-rc2" target="_blank" rel="noreferrer">https://github.com/clangd/clangd/releases/tag/12.0.0-rc2</a> (or building from source, or downloading one of the LLVM 12 RC binary releases)?</div><div><br></div><div>Cheers, Sam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 9, 2021 at 3:42 PM Deep Majumder via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" rel="noreferrer">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>HI Nathan,</div><div>How do I ascertain that I have ptmalloc2 on my system (I am on Ubuntu 20.04 btw).</div><div>The file /usr/include/malloc.h is not the same as the file at <a href="https://github.com/emeryberger/Malloc-Implementations/blob/master/allocators/ptmalloc/ptmalloc2/malloc.h" target="_blank" rel="noreferrer">https://github.com/emeryberger/Malloc-Implementations/blob/master/allocators/ptmalloc/ptmalloc2/malloc.h</a> (this is the version of ptmalloc2 I found online).</div><div>Warm regards,</div><div>Deep<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 9, 2021 at 7:57 PM Nathan James <<a href="mailto:n.james93@hotmail.co.uk" target="_blank" rel="noreferrer">n.james93@hotmail.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Deep,<br>
<br>
Does your system use glibcs ptmalloc2(most linux systems do). If that<br>
is the case, there was an issue with the allocation patterns used in<br>
clangd causing arenas to continuously grow. This has been addressed in<br>
the upcoming clangd-12 release. If that's not the case, would you<br>
consider filing a bug report at <a href="https://github.com/clangd/clangd/issues" rel="noreferrer noreferrer" target="_blank">https://github.com/clangd/clangd/issues</a><br>
 please.<br>
<br>
~<br>
Nathan James<br>
<br>
On Tue, 2021-03-09 at 19:16 +0530, Deep Majumder via cfe-dev wrote:<br>
> Hi everyone,<br>
> I use clangd in Neovim (and CoC). Now the thing is that clangd while<br>
> working on llvm source code peaks CPU usage on 4 cores. The RAM usage<br>
> spikes to about 3gb. Is there a way to limit this?<br>
> Warm regards,<br>
> Deep<br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank" rel="noreferrer">cfe-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br>
</blockquote></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" rel="noreferrer">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>
</blockquote></div>