Lightweight transparent compression filesystem

compressionfilesystems

I have an AMD64 KVM VPS at RamNode, it has 30 GB disk, 256 MB RAM, and 1 "virtual CPU" (I have no idea of the specs of the host CPU). It will be used to store many small, easily compressed files, mostly <50kb, text/HTML. I want to use a compressing filesystem to conserve what little disk space i have. The first that came to mind was ZFS, but from what I've read, ZFS don't play well with anything less than 1-2GB RAM, so I need something more lightweight. As for BTRFS, from what I've read, its heavy on CPU and not yet stable (as for RAM, I have no idea). Any suggestion for the file system? Performance and throughput is not a concern, but disk usage and RAM usage is. As for the operating system, I was thinking Linux Debian 8, but if a fitting FS does not support Debian8/Linux, I can switch (*BSD perhaps?)

Best Answer

I've run both ZFS and BTRFS on Linux in the last two years. My experience is that BTRFS uses less RAM than ZFS for comparable disk usage. Not including RAID5/6, BTRFS has been very stable for me on Ubuntu 14.04 with BTRFS 3.12.

I've been using LZO compression in BTRFS, and it has been just as fast on writes as uncompressed.