Re:DwarFS: A fast high compression read-only file system
by david_draco on Sunday November 29, 2020 @11:51AM
(#25246263)
I wish there was a semi-compressed transparent filesystem layer which slowly compresses the least recently used files in the background, and un-compresses files upon use. That way you could store much more mostly unused content than space on the disk, without sacrificing accessibility.
[ Parent
| on HN ]
Re:DwarFS: A fast high compression read-only file system
by bufferoverflow on Sunday November 29, 2020 @07:12PM
(#25249400)
I don't know about you guys, but most of the stuff that takes up space on my drives are:
1) Videos from my DSLR
2) RAW images from my DSLR
3) Various movies / TV series I downloaded
4) Game files (most of which are textures and 3D models)
None of that stuff is really compressible.
Re:DwarFS: A fast high compression read-only file system
by jandrese on Sunday November 29, 2020 @08:45PM
(#25249959)
The RAWs aren't compressible? Are they LZ encoded on the camera?
Re:DwarFS: A fast high compression read-only file system
by kortex on Sunday November 29, 2020 @09:50PM
(#25250300)
RAW imagery I have worked with is about 25-50% losslessly compressible on average. Most of your gains in image compression are from quantizing the gamut in clever, (usually) imperceptible ways.
Raw imagery contains a lot of entropy that usually doesn't affect the appearance perceptually, but still has sig figs that frustrate compression.
Re:DwarFS: A fast high compression read-only file system
by spaetzleesser on Sunday November 29, 2020 @10:56PM
(#25250586)
My Fuji has lossless RAW compression and as far as I know quite a few others too.
Re:DwarFS: A fast high compression read-only file system
by bufferoverflow on Sunday November 29, 2020 @10:43PM
(#25250515)
I just tried compressing one with 7-zip ultra level compression. Saved maybe 5%. Wouldn't get even that with realtime compression.
Re:DwarFS: A fast high compression read-only file system
by rwmj on Sunday November 29, 2020 @11:58AM
(#25246314)
You could probably build something easily in nbdkit to do this. (Note this is at the block layer). An advantage of nbdkit is you could write the whole thing in the high-level language of your choice, even a scripting language such as Python, which might make it easier to rapidly explore designs.
Having said that I did try to implement a deduplication layer for nbdkit, but what I found was that it wasn't very effective. It turns out that duplicate data in typical VM filesystems isn't common, and the other parts of the filesystem (block free lists etc) were not sufficiently similar to deduplicate given my somewhat naive approach.
Re:DwarFS: A fast high compression read-only file system
by yourapostasy on Sunday November 29, 2020 @07:03PM
(#25249341)
I believe the term of art that applies here is "Hierarchical Storage Management". Along with automatically moving data between high-cost and low-cost storage media, the low-cost storage media for your filesystem of choice for the kind of compressing you described can simply be fast disk on a compressing filesystem.
Re:DwarFS: A fast high compression read-only file system
by pjc50 on Sunday November 29, 2020 @12:49PM
(#25246657)
I believe NT file compression works like this, and before that MSDOS "DriveSpace" ...
Re:DwarFS: A fast high compression read-only file system
by Cojen on Sunday November 29, 2020 @02:02PM
(#25247141)
NTFS requires that files be manually converted to the compressed format. They're uncompressed in parts as requested, but this is only kept in RAM. I'm not aware of any built-in background task that converts files to/from the compressed format.
Re:DwarFS: A fast high compression read-only file system
by spaetzleesser on Sunday November 29, 2020 @10:59PM
(#25250599)
You can set the "Compressed" flag of a folder and from then on everything in that folder will be compressed/decompressed transparently. I have most of my disk compressed that way and never have seen problems.
Re:DwarFS: A fast high compression read-only file system
by Cojen on Tuesday December 01, 2020 @10:43AM
(#25266110)
That's cool, I hadn't thought of that. But does it identify "hot"/"cold" files that might benefit from being converted automatically to/from the compressed format? That would be a very nice feature to have.