Skip to content
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

Builddir 114 GB when compiling Rust-1.70.0-GCCcore-12.3.0.eb inside Rocky-8.9 container #22247

Open
sassy-crick opened this issue Feb 1, 2025 · 6 comments
Milestone

Comments

@sassy-crick
Copy link
Collaborator

I am currently in need to install HOOMD-blue v4.9.1 (see PR #22013) as I need the LLVM version from PR #20902 and thus I need to use EasyBuild-5.
Part of the installation is Rust-1.70.0-GCCcore-12.3.0.eb.

During the installation I noticed the build directory is getting larger and larger. In the end I had 114 GB in it:

$ du -sh /home/easybuild/tmp/Rust/1.70.0/GCCcore-12.3.0/rustc-1.70.0-src/
114G   /home/easybuild/tmp/Rust/1.70.0/GCCcore-12.3.0/rustc-1.70.0-src/

This does not look right to me. A bit further drilling gives me this:

$ du -sh /home/easybuild/tmp/Rust/1.70.0/GCCcore-12.3.0/rustc-1.70.0-src/build
/
111G   /home/easybuild/tmp/Rust/1.70.0/GCCcore-12.3.0/rustc-1.70.0-src/build/

Once I got enough space, it is installing ok, all the tests are passing. I know that Rust requires quite a bit of space when building but that is frankly just insane. Something seems to go wrong here.
I have not tried it with the latest Easybuild-4.9.4 version, outside a container.
I still have the log file of the build, happy to upload it here if that helps. Also happy to answer any questions.

@sassy-crick sassy-crick added the EasyBuild-5.0 EasyBuild 5.0 label Feb 1, 2025
@Thyre
Copy link
Contributor

Thyre commented Feb 6, 2025

Related PR: easybuilders/easybuild-framework#4688
This will likely also affect other large projects like LLVM.

I feel like this should be something people need to be aware of. Debug symbols can increase the required size for software significantly. I will certainly need to turn off this feature immediately, since I'm working with max. 1TB of disk size for software (on my personal systems).

@sassy-crick
Copy link
Collaborator Author

Related PR: easybuilders/easybuild-framework#4688 This will likely also affect other large projects like LLVM.

I feel like this should be something people need to be aware of. Debug symbols can increase the required size for software significantly. I will certainly need to turn off this feature immediately, since I'm working with max. 1TB of disk size for software (on my personal systems).

I agree. I am suing my laptop as a build system, so gain limited disc space.
Judging from the problems I had when build Clang I came to the same conclusion that switching off the debug-symbols per default might be a better way forward, at least for those software projects where we know they are running out of proportion. So far, I think it is fair to say it is LLVM, Rust and Clang at least. Maybe more to come?

@boegel
Copy link
Member

boegel commented Feb 10, 2025

@sassy-crick Can you check whether you're also seeing this huge build directory when using eb --disable-keep-debug-symbols? See also:

@boegel boegel added this to the 5.0 milestone Feb 10, 2025
@boegel boegel moved this to Breaking changes in EasyBuild v5.0 Feb 10, 2025
@boegel boegel moved this from Breaking changes to Changed default in EasyBuild v5.0 Feb 10, 2025
@Thyre
Copy link
Contributor

Thyre commented Feb 10, 2025

Based on his comment on Slack, Clang did show a significant difference when using the option.
From ~100GB to 11GB (5.1GB installed size). Rust probably behaves the same way.

Which compiled, on one core, overnight, using more than 100 GB of space in my builddirectory so consequently I moved the install directory to my file server.

I finished my build and guess what: The disc space used in the build-directory was only a mere 11 GB! So 1/10th of what it was before. The same goes for the final install:
5.1 GB!

@gkaf89
Copy link

gkaf89 commented Feb 16, 2025

I can confirm that --disable-keep-debug-symbols reduces the size of the build directory significantly. We had some builds failing due to lack of space in a REL 8.10 system; the build directory was placed in a fast file system with 68GB capacity.

The problem did not appear with --disable-keep-debug-symbols.

@sassy-crick
Copy link
Collaborator Author

Just to add to this: Rebuilding Rust without debug symbols, i.e. with --disable-keep-debug-symbols does yield a significantly smaller build directory of around 14 GB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Changed default
Development

No branches or pull requests

4 participants