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

The project repository takes a lot of disk space #218

Closed
p-sawicki2 opened this issue Oct 27, 2023 · 1 comment · Fixed by #219
Closed

The project repository takes a lot of disk space #218

p-sawicki2 opened this issue Oct 27, 2023 · 1 comment · Fixed by #219
Labels
enhancement New feature or request

Comments

@p-sawicki2
Copy link
Collaborator

Currently there is an issue with using submodules that points at subprojects kept as a branches in the islet-asset repository.
The main repository takes about 83GB disk space, it’s because git duplicates the islet-asset repo for each submodule.

$ du -sh .git/modules/third-party/*
4.9G    .git/modules/third-party/android-kernel
4.9G    .git/modules/third-party/cca-rmm-acs
4.9G    .git/modules/third-party/gki-build
4.9G    .git/modules/third-party/kvmtool
4.9G    .git/modules/third-party/kvmtool-rim-measurer
4.9G    .git/modules/third-party/kvm-unit-tests
4.9G    .git/modules/third-party/mbedtls
4.9G    .git/modules/third-party/nw-linux
4.9G    .git/modules/third-party/optee-build
4.9G    .git/modules/third-party/realm-linux
4.9G    .git/modules/third-party/tf-a
4.9G    .git/modules/third-party/tf-a-rss
4.9G    .git/modules/third-party/tf-a-tests
4.9G    .git/modules/third-party/tf-rmm 

This is also the reason why the initialization process (./scripts/init.sh) takes a lot of time. I think that if we’re going to make the project more user friendly for potential open source contributors, this should be fixed somehow. The easiest way seems to be keeping these subprojects as separate git repositories. But, I’m not a git/GitHub guru on that matter, and maybe there is a better solution.

@zpzigi754
Copy link
Collaborator

zpzigi754 commented Oct 27, 2023

Good to report this issue with the visualization! I also agree that this huge disk consumption issue should be resolved.

We've avoided this issue by using only a minimum dependency on ci (e.g., using init_sh_min.sh instead of init.sh), yet another solution seems to be needed.

One quick solution would be maintaining another script equivalent to init.sh which does not include git history in third-party modules. With the script, the disk consumption would be reduced to around 21GB (still huge) while all third-party modules are available like the below.

$ du -sh .git/modules/third-party/*
798M	.git/modules/third-party/android-kernel
558M	.git/modules/third-party/cca-rmm-acs
1.5G	.git/modules/third-party/gki-build
557M	.git/modules/third-party/kvmtool
564M	.git/modules/third-party/kvmtool-rim-measurer
557M	.git/modules/third-party/kvm-unit-tests
561M	.git/modules/third-party/mbedtls
798M	.git/modules/third-party/nw-linux
556M	.git/modules/third-party/optee-build
798M	.git/modules/third-party/realm-linux
564M	.git/modules/third-party/tf-a
565M	.git/modules/third-party/tf-a-rss
557M	.git/modules/third-party/tf-a-tests
557M	.git/modules/third-party/tf-rmm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants