Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
is there any point in using transparent compression on very large files that are frequently modified such as .vdi images?
I've read that btrfs compresses file-by-file not by blocks, so vbox would become very slow if vdi is compressed?
I'd like to create compressed writable filesystem partition just for .vdi
a 21G .qcow2 reported by ( du -h ) as 6.7G
in the VM, df -h / reports 8.6G ( and ncdu / as 8.5G )
I've not benchmarked performance, but I wouldn't describe it as slow
vdi is also sparse?
so I would expect similar compression
which is of course dependent on the actual data
it has been a while since I use btrfs, I think I did turn off compression for images, not sure it made much difference
I do remember you had to make a copy after changing per file attr
or some such similar juggling.
I think I had to set attr of the dir, move file out and then copy back in and delete the "original" file
thanks.
vdi is dynamic.
I've used btrfs with zstd and it seems to work fine, 50% is compressible with force option:
Code:
compsize win7-64.vdi
Type Perc Disk Usage Uncompressed Referenced
TOTAL 59% 13G 23G 23G
none 100% 11G 11G 11G
zstd 20% 2.4G 11G 11G
btrfs wiki says:
"Compression does not work with direct IO (DIO), does work with COW (the default) and does not work for NOCOW files. If a file is opened in DIO mode, it will fall back to buffered IO."
I think vbox uses DIO. I've enabled 'host-caching', it might matter.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.