<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">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">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" 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">cfe-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br>
</blockquote></div>