-
Notifications
You must be signed in to change notification settings - Fork 11
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
Compression is not working? #36
Comments
Thanks for reporting this issue
I imagine the latter may be done during the Volume.Mount plugin operation or something close. However I don't see any option to change how the mount is done by docker. |
It looks like there is a bind-mount of the provided path by docker. I'm wondering whether a bind-mount can change the mount options of the underlying mount... |
I didn't notice this issue. I've never use compression mount option. It is more convenient for me to use attributes
BTW @ccomb thanks for great and simple plugin. I'm using it for almost 3 years without any issue! |
I finally found some time to try enabling compression. I create two volumes with buttervolume :
On one of them, I enable compression:
Then I create a container using these two volumes:
The used disk space is ~717GB:
Now I create a big file full of zeros in the volume supposed to be compressed:
The used disk space is still ~717GB:
So compression seems to work. I do the same in the uncompressed volume:
Now the used disk space is ~726GB:
So I believe it is possible do add the same kind of option as for copy-on-write, but for compression. |
I've tested when
/usr/lib/buttervolume
is mounted withcompress
(also tested withcompress-force
) options. Everything written to plugin-backed volume is not compressed (according to btrfs usage stats andcompsize
utility)In the same time, when I create a native btrfs volume at the same device, mount it locally completely unrelated to docker, and write large files — compression works as expected (according to btrfs and
compsize
).The text was updated successfully, but these errors were encountered: