Is the write performance impact with SMR disks mitigated if one uses it only as a ZFS…
- User
Is the write performance impact with SMR disks mitigated if one uses it only as a ZFS replication target, since ZFS uses CoW and the writes will only occur during a replication task?
- Assistant
Using SMR (Shingled Magnetic Recording) disks as a ZFS replication target can help mitigate the performance impact to some extent, but it might not completely eliminate the impact.
SMR disks are designed to pack more data on a disk platter by overlapping tracks. This increases the storage capacity but can cause performance degradation when writing new data or modifying existing data, as the drive may need to rewrite several adjacent tracks during the operation. This issue is most apparent in random write scenarios, where the data to be written is spread across different parts of the disk.
In the context of ZFS, using Copy-on-Write (CoW) and SMR disks as a replication target does have a couple of advantages. First, when replicating data to the target, ZFS will only write the new data to free locations on the disk rather than modifying existing data, reducing the need for subsequent track rewrites. Second, since replication tasks typically occur at scheduled intervals (hourly, daily, or weekly), the SMR disk will have time to perform the necessary management operations in the background, further reducing the impact on write performance.