natbox.io

Blog / ZFS compression

Your natbox disk holds about twice what it says

30 November 2026 · Update · By Mohammad AlSaraf

Every natbox server's disk lives on ZFS with compression switched on. We measured what that does across all customer servers on 9 November 2026, and the result is simple: typical Linux files take about half the space they would on an ordinary disk. And because your plan's disk limit counts the space actually used, you get to keep the difference.

The numbers

102 customer servers on 9 November 2026: 85.5 GB of files stored in 44.4 GB of disk. Compression ratio 1.89 on server one, 1.98 on server two, 2.01 on server three; the median server compresses 1.99 to 1.

How it works

ZFS compresses every block with LZ4 as it's written and decompresses it as it's read. LZ4 is fast enough that it costs very little CPU, and because less data has to be written to and read from the disk, it can even make your server faster. You don't notice it at all: programs see normal files of their normal size.

Your disk limit counts the compressed size

Each plan's disk is a ZFS quota, and ZFS quotas count the space a server's files actually take on disk, after compression. On a test server of ours, df shows 368 MB used while the files add up to 782 MB. So a plan with a 5 GB disk holds roughly 10 GB of ordinary Linux files: programs, libraries, logs, text, source code, databases.

One thing to know: df and du inside your server show the compressed size, which is what counts against your limit. du --apparent-size shows the real size of your files.

What doesn't shrink

Files that are already compressed gain nothing: photos and videos (JPEG, PNG, MP4), archives (ZIP, gzip, xz), and encrypted data. If your server mostly stores media or backups that are already compressed, count on the plan's disk size as it is. ZFS notices incompressible data and stores it as is, so it never takes more space than without compression.

Also part of the same quota: the nightly snapshots we take of your server. They only store what changed since the previous one, and across all customer servers they currently use about 1.2 GB in total.

Want more room anyway? Bigger plans come with up to 20 GB, which with typical files means about twice that.

Get new tutorials in Telegram. Follow @natboxio: every new post, plus short server tips.

More from the blog: A flood took our client area down, and kept it down, China blocked our IPv4 address overnight, Black Friday 2026: yearly NAT VPS 50% off, for life. RSS feed.