[cfe-dev] Unusually high ram usage on tests

Benics Bal√°zs via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 10 11:29:52 PST 2021


Use `lld` as a linker, it is superior to `ld` or `gold`.
It consumes less memory and much faster.
Also, prefer dynamic linking for faster development cycles.

Balazs.




________________________________
From: cfe-dev <cfe-dev-bounces at lists.llvm.org> on behalf of Deep Majumder via cfe-dev <cfe-dev at lists.llvm.org>
Sent: Wednesday, March 10, 2021 8:17:38 PM
To: cfe-dev <cfe-dev at lists.llvm.org>
Subject: [cfe-dev] Unusually high ram usage on tests

Hi everyone,
I am running 'ninja check-clang-analysis' on the release build of clang with LLVM_PARALLEL_LINK_JOBS set to 2 and assertions off. I am on Ubuntu 20.04. This is taking up almost 10 gb of memory (6 from ram, 4 from swap). I have been running this command for over a month and I haven't seen this sort of memory usage. Is this normal? Or am I missing something?
Warm regards,
Deep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210310/91c1c3c4/attachment.html>


More information about the cfe-dev mailing list