Skip to content

Remove unused files before archiving build dir - #10729

Merged
pzread merged 4 commits into
iree-org:mainfrom
pzread:reduce-build-all
Oct 11, 2022
Merged

pzread merged 4 commits into
iree-org:mainfrom
pzread:reduce-build-all

Conversation

@pzread

@pzread pzread commented Oct 10, 2022 •

Copy link
Copy Markdown
Contributor

The archive step of build_all job uses up almost all RAM disk space. In addition to enlarging the RAM disk, we can also remove the unused files before the archive step.

This only takes 1s to run and saves about 10G disk space for the following archive step:

Filesystem      Size  Used Avail Use% Mounted on
tmpfs            50G   35G   16G  69% /runner-root

@pzread
pzread marked this pull request as ready for review October 10, 2022 19:48
@pzread

pzread commented Oct 10, 2022 •

Copy link
Copy Markdown
Contributor Author

Tar has another option called --remove-files . It seems like tar will delete the processed files during the archiving.

But I think this is overkill as when we unarchive the build-dir.tar it will still take the space of tar size + unarchived build dir. So even we successfully finish build_all, the following jobs might run out of space when unarchiving.

@jpienaar jpienaar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG (esp if this resolves the running out of build space one)

@pzread

pzread commented Oct 10, 2022

Copy link
Copy Markdown
Contributor Author

#10725 the LLVM bump seems to work with this change. I'd wait for the review from @GMNGeoffrey

@GMNGeoffrey GMNGeoffrey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine. Can you link an issue about the disk space issue here with a TODO. We really shouldn't have to be worrying about disk space (sorry that I configured it too low). I would want to increase the disk size and then revert this.

Comment thread .github/workflows/ci.yml Resolved
@pzread
pzread enabled auto-merge (squash) October 11, 2022 15:54
@pzread
pzread merged commit 6273072 into iree-org:main Oct 11, 2022
PhaneeshB pushed a commit to PhaneeshB/iree that referenced this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants