-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Incremental builds occupy a lot of space. (19GB for a small sized project) #48172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For some reason session directory garbage collection seems to be broken here. There should only ever be a couple of those directories starting with As a quick workaround, you can just delete all of these directories while no Has anybody observed this on platforms other than Windows? |
@nrc, will a rust/src/librustc_trans/lib.rs Line 263 in 4d2d3fc
This call seems to in the wrong place anyway, since it is not trans-backend specific. I'll look into moving that to the correct spot. |
Thanks for the help. |
@michaelwoerister yes I see this on Ubuntu 16.04 |
@michaelwoerister we skip trans completely, so I would expect that it won't hit that. I have not verified though. |
@nrc, I've taken a look yesterday and |
…ization, r=nikomatsakis incr.comp.: Run cache directory garbage collection before loading dep-graph. Prior to this PR, the incr. comp. cache directory would only be garbage collected after the final output artifacts were generated. However, compilation often aborts earlier and in the case of the RLS, which starts lots of compilation sessions, we might fill up the cache directory with chunk sessions. This PR makes the compiler do a garbage collection run before loading the dep-graph. cc @nrc rust-lang#48172 r? @nikomatsakis
Disagree that this is I-compilemem as this is disk space not RSS. |
Do we know if #48181 has fixed this problem? Can somebody check with a nightly version of the RLS? |
Looks fine now. target/debug/rls/incremental folder has just two other folders in it. build_script_build-idand dwarf_game-id. Thanks for fixing this. |
Excellent, thanks for confirming, @AlexEne! |
I originally posted this on the RLS bug tracker ( rust-lang/rls#709 ) and it was suggested to open an issue here.
These builds in the RLS subfolder generate a lot of files that eat up a high amount of disk space for the project I am working on. (19 GB)
All this in
target/rls/debug/incremental/
For a project that's about a few thousand lines of code, it uses around 16GB of disk space. Now I am unsure of what generates this, I use RLS as part of visual studio code.
All the files are generated while I worked on my project today: (11 Feb 2018). Or they were at least modified today.
For reference this is the lines of code output for my project (not too big).

If you want to reproduce the issue, I can give you access to my repo, or we can work something out.
The text was updated successfully, but these errors were encountered: