[llvm-bugs] [Bug 52489] New: clangd can exhaust all disk space in /tmp by writing preamble-*.pch files
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 12 07:57:19 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=52489
Bug ID: 52489
Summary: clangd can exhaust all disk space in /tmp by writing
preamble-*.pch files
Product: clang-tools-extra
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: clangd
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
size.
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...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211112/51d6be3f/attachment.html>
More information about the llvm-bugs
mailing list