I know, I know, ZFS on 1GB sounds like a bad idea. Most people immediately say "ARC needs RAM" and walk away. They're not wrong about the defaults. But here's the thing: I have a 1GB HostHatch VPS running ZFS with lz4 on a dataset full of log files and config templates. Compression ratio is 4.21x. Actual disk usage: 180MB for what would be 760MB on ext4. ARC is capped at 64MB. The box is responsive. The secret nobody talks about: zero-filled sparse files and repeated config patterns compress to almost nothing. My application generates 12 identical template files daily. ZFS dedup would murder this box, but lz4 just shrugs. Steps I used:
- Install zfsutils-linux (yes it pulls 200MB, one-time pain)
- Create pool as file on existing ext4 root (nested, I know)
- Set primarycache=metadata, compression=lz4
- Move data, watch ratio climb