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

Read-only FS compression #978

Open
wkozaczuk opened this issue Jun 9, 2018 · 0 comments
Open

Read-only FS compression #978

wkozaczuk opened this issue Jun 9, 2018 · 0 comments

Comments

@wkozaczuk
Copy link
Collaborator

wkozaczuk commented Jun 9, 2018

Current implementation of ROFS does not compress files. Compressing files should make ROFS images smaller and possibly speed up read operation as less data would need to be read from block device.

ROFS compression could use same algorithm as ZFS does - LZ4. Potential implementation could be based on compressing/decompressing files around same boundaries used in "read-around" strategy applied in ROFS caching layer. We could compress each 32K file cache segment and store size of compressed segment as number of 512-bytes blocks in file i-node metadata so that we can load correct data to decompress when particular segment is missed when reading - look here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant