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

running out of drive space #158

Open
robtfm opened this issue Aug 8, 2023 · 4 comments
Open

running out of drive space #158

robtfm opened this issue Aug 8, 2023 · 4 comments

Comments

@robtfm
Copy link

robtfm commented Aug 8, 2023

i find my workflows on github sometimes run out of drive space when using the cache action.

i don't think the cached target folder should be larger than building directly, so i wonder if maybe the cache files are not deleted after downloading?

@max-sixty
Copy link

Not a maintainer, but do you have a reproducible example?

@robtfm
Copy link
Author

robtfm commented Aug 13, 2023

Here’s a run which failed repeatedly, then the next commit succeeded after removing the cache action: https://github.com/decentraland/bevy-explorer/actions/runs/5798430222

@max-sixty
Copy link

Yeah, we have had a disk space issue with windows before on GHA, though not related to cache.

Something curious about the run is that a) the cache size is huge — 2.5GB, b) on the run where it succeeded, it only takes 6.5 minutes to compile.

Might be worth exploring why the cache is so large...

@NobodyXu
Copy link
Contributor

NobodyXu commented Sep 6, 2023

I have an idea based on #126 (comment) :

rust-cache could compress and store the cache as a squashfs.

Then on restore, simply mount the squashfs image and use overlayfs to pass the writes to a tmpfs, and the Linux kernel would decompress each file on demand and then simply dropped the decompressed file on out-of-memory situation.

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

No branches or pull requests

3 participants