Comments (6)
Sounds interesting. Do you have any ballpark figures, how good the compression works and how compression affects CPU usage?
from maximize-build-space.
In my old action I used zstd
compression, and by default btrfs
uses compress level 3. Some old benchmark show that it can yield about 42% space saving. Running at full speed zstd
is said to consume 20-30% CPU cycles, but such heavy IO operation shouldn't occur too often for normal workflows.
from maximize-build-space.
That could be an interesting option for those requiring even more space.
Would you mind creating a merge request with btrfs as an option?
from maximize-build-space.
I would very greatly appreciate this, and can confirm BTRFS compression plays nice with GitHub Actions and 'maximize-build-space'. Since I am already running a compressed BTRFS ChRoot on a loopback image within GitHub Actions after the 'maximize-build-space' step. Yes, the kernels used by GitHub Actions have full support and all.
This would improve my margins from only a few gigabytes, to a several more gigabytes. Compression is a good upwards of 30%-50%, and much, much more importantly, compression eliminates unused disk space from loopback filesystems in which a 'dd if=/dev/zero of=./fill' has been applied recently.
EDIT: You might find relevant code scattered around relevant shell code projects I do some work on...
https://github.com/soaringDistributions/ubDistBuild/blob/main/ubiquitous_bash.sh
https://github.com/mirage335-colossus/ubiquitous_bash/blob/c70169e4e512b07d6699c64339e7bd7e9c5c4d6a/virtualization/bios/createvm.sh
from maximize-build-space.
Related Issues (16)
- Missing License HOT 1
- Breach of Github T&Cs? HOT 2
- free: command not found HOT 2
- Potentially to revert actions HOT 3
- Mine got minimized hahaha HOT 2
- LVM volume creation fails on ubuntu-20.04 HOT 2
- Git checkout fails after cleanup HOT 1
- fallocate: invalid length value specified HOT 3
- Collect time passed to free up space based on the selected combination
- are LVM operations required HOT 2
- Mount point of LVM Volume is to specific HOT 2
- More possible Cleanup targets HOT 2
- Configuring this action to be less aggressive HOT 3
- Support for Windows and macOS runners HOT 2
- swapoff: Not superuser HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maximize-build-space.