-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Disk usage 2-3x somewhere around 1.48 #84097
Comments
@infinity0 is this with incremental enabled? Could you paste debian/config.toml? |
We are not enabling incremental, the relevant parts of
We also have some Debian-specific patches but these are generally fairly trivial and also haven't changed significantly across the builds. One thing that may be significant, is the first column used LLVM 11.0.0 but the others used LLVM 11.0.1. Does rust official builds record the disk usage? If so it would be interesting to see this info for before and after PR #80796. |
We don't track those metrics (yet), but it may be possible to pull them from logs. Do you have a tarball or some other way of seeing what is using the disk space in your case? |
I've see 1.40.0+dfsg1-5 (sid)
So it isn't specific to version mentioned? |
What is the actual thing that's being measured here? |
@Mark-Simulacrum no sadly not, it all gets discarded. I can probably reproduce by rebuilding an old version but that'll take some time. @nagisa Extra disk space consumed by the build process. It's possibly debuginfo-related - the architectures using the least space are the ones where we are setting |
Could some bisecting help isolating why the debug artifacts have been growing so much? @rustbot ping icebreakers-cleanup-crew |
Hey Cleanup Crew ICE-breakers! This bug has been identified as a good cc @AminArria @camelid @chrissimpkins @contrun @DutchGhost @elshize @h-michael @HallerPatrick @hdhoang @hellow554 @henryboisdequin @imtsuki @JamesPatrickGill @kanru @KarlK90 @LeSeulArtichaut @MAdrianMattocks @matheus-consoli @mental32 @nmccarty @Noah-Kennedy @pard68 @PeytonT @pierreN @Redblueflame @RobbieClarken @RobertoSnap @robjtede @SarthakSingh31 @shekohex @sinato @smmalis37 @steffahn @Stupremee @tamuhey @turboladen @woshilapin @yerke |
I was able to reproduce this one locally, and it appears to be a change in how cargo resolves the value of the |
Looks like the change is caused by rust-lang/cargo#5506, which stabilizes the config-profile feature. We've been setting the |
I'm not yet sure where that environment variable is set, but my initial impression is that this is likely a misconfiguration in the debian build config. I'll investigate further. |
Visting for P-high review. Based on the discussion thread here, I am inferring that this is a misconfiguration issue in the debian build config, as stated by @chordtoll above. (While it would be nice to figure out ways to reduce the disk size overhead of our debuginfo-level=2 generation, that is not a P-high issue, I think.) Closing as "working as expected" |
I agree, this does seem to be expected as a result of more crates being compiled with |
Not sure if anyone else is seeing this, but the Debian builds of rustc started to take up way more disk space around 1.48, in some cases more than a 3x increase:
Data from Debian rustc logs; the column headings mean (version of stage0 used -> stable version being built)
[*] architecture-independent artifacts such as libstd:wasm32 and docs; builds rustc during the process but this is discarded
LLVM 11 was used for all of these builds.
The text was updated successfully, but these errors were encountered: