-
Notifications
You must be signed in to change notification settings - Fork 94
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
50GB carved out disk file is surprising as a Docker Desktop user #826
Comments
Hi David. Finch does use a sparse disk for its persistent data volume in qcow2 files, supported by QEMU, properly show the allocated size when you run What's the output of |
M1 Pro 32GB macOS 14.3 (23D56) Finch uninstalled, no VM disk: Finch installed, vm initialized:
Mid-sized image built:
Removed images:
So while the disk is sparse & growing, it doesn't seem to shrink? |
Thanks for the detailed response! Can you also try to run I'll try to repro on my side and see if there is any way to re-sparsify the disk |
|
The support for virt-sparsify/fstrim was added with lima-vm/lima#1102 (it doesnt run virt-sparsify/fstrim but supports discards) Both PoC were successful. Next steps would be to add add it to roadmap for implementation Boot Script.
Result:
|
Coming from Docker Desktop,
docker images prune
is a reflex for low disk space in moderate to large build environments. In my case, my project has a Cargo/rust deps, Python, Node environments, and several container steps. Each of these create "lots" of ephemeral data, and regardless of workstation disk size require some cleaning every now and then. Every system has some form of "clean up your temp files" command, and after collecting and running all of them, the disk is usable again.After switching to Finch, I was suprised that
finch images -a prune
claimed (and, to be fair, did) remove a bunch of images, but did not return any disk space. This is when I found out the finch VM's carved out 50GB disk. I understand that having that disk image and VM architecture provides many benefits in ability to deploy cross platform, and I probably could live with knowing the 50GB is forever claimed by finch for all time, and update my mental model of my laptop's file system to account for that.But it would be very nice if Finch could find a way to reliably use Apple and Linux sparse files for its disc image :)
The text was updated successfully, but these errors were encountered: