Using ZFS compression to cut cloud disk bills
ZFS compression on cloud disks can significantly reduce storage costs by reducing the amount of data stored, but it comes at the expense of increased CPU usage.
Cloud storage services like Google Cloud bill users based on the provisioned disk size, not the actual data stored. The ZFS file system, available on Linux via OpenZFS, offers data compression that can lead to cost savings.
By compressing data as it is written, ZFS allows users to either provision smaller disks from the outset or extend the life of existing disks before needing to resize them. This can lead to substantial savings, particularly for data that is written once and rarely accessed. For example, an append-only event dataset compressed 3.20 times with the zstd-1 algorithm.
However, this compression comes at a cost in terms of CPU resources. ZFS utilizes CPU time for both compressing data during writes and decompressing it during reads. While compression can halve disk bills, users must also consider the potential impact on disk performance, as smaller disks may have lower input/output operations per second (IOPS) and throughput limits.
Source: Currents API (free key)



