[llvm-bugs] [Bug 52489] New: clangd can exhaust all disk space in /tmp by writing preamble-*.pch files
llvm-bugs at lists.llvm.org
Fri Nov 12 07:57:19 PST 2021
Bug ID: 52489
Summary: clangd can exhaust all disk space in /tmp by writing
Assignee: unassignedclangbugs at nondot.org
Reporter: ehsan.akhgari at gmail.com
CC: llvm-bugs at lists.llvm.org
I use the `clangd` extension in Visual Studio for a very large C++ project
based on the Chromium code base.
I've noticed that `clangd` leaves behind preamble PCH files inside /tmp so
frequently that I run out of disk space once every couple of weeks, with /tmp
using 116GB, 130GB, etc worth in these files.
I noticed that others have experienced this issue too (e.g.
https://youtrack.jetbrains.com/issue/CPP-19402) and some people recommend
passing -pch-storage=memory to clangd. However I have 16GB of RAM on this
server and I am unsure whether doing this is a good idea for a project of this
Could clangd be modified to manage these files better and prevent the out of
disk space scenario?
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs