The author transitioned a server from an ext4 filesystem on mdadm RAID1 to a ZFS pool with the sync=disabled setting. This change was implemented to address high disk load caused by frequent fsync calls, which force disk cache flushes and degrade performance.

Under the previous ext4 configuration, fsync operations caused significant overhead, with disk cache flushes occurring 10–15 times per second, and up to 30 times during peak loads. The author noted that fsync could delay other I/O operations by up to 40%.

After switching to ZFS with sync=disabled, the disk load decreased by a factor of five, dropping from 13% to 2.7%. Additionally, the average write latency improved, falling from 16 ms to 2 ms.

The ZFS configuration uses a copy-on-write (CoW) mechanism, which groups write operations into transaction groups (txg) and writes them sequentially. With sync=disabled, fsync calls return immediately, though this introduces a risk of losing up to several tens of seconds of data in the event of a system failure.

The author applied specific parameters to the ZFS pool, including ashift=12, compression=zstd, atime=off, xattr=sa, acltype=posixacl, and dnodesize=auto. The server, which hosts approximately ten services, has maintained stability during operation.