mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Default to zfs_dmu_offset_next_sync=1
Strict hole reporting was previously disabled by default as a performance optimization. However, this has lead to confusion over the expected behavior and a variety of workarounds being adopted by consumers of ZFS. Change the default behavior to always report holes and force the TXG sync. Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #12746
This commit is contained in:
+4
-4
@@ -1591,12 +1591,12 @@ Allow no-operation writes.
|
||||
The occurrence of nopwrites will further depend on other pool properties
|
||||
.Pq i.a. the checksumming and compression algorithms .
|
||||
.
|
||||
.It Sy zfs_dmu_offset_next_sync Ns = Ns Sy 0 Ns | Ns 1 Pq int
|
||||
.It Sy zfs_dmu_offset_next_sync Ns = Ns Sy 1 Ns | Ns 0 Pq int
|
||||
Enable forcing TXG sync to find holes.
|
||||
When enabled forces ZFS to act like prior versions when
|
||||
When enabled forces ZFS to sync data when
|
||||
.Sy SEEK_HOLE No or Sy SEEK_DATA
|
||||
flags are used, which, when a dnode is dirty,
|
||||
causes TXGs to be synced so that this data can be found.
|
||||
flags are used allowing holes in a file to be accurately reported.
|
||||
When disabled holes will not be reported in recently dirtied files.
|
||||
.
|
||||
.It Sy zfs_pd_bytes_max Ns = Ns Sy 52428800 Ns B Po 50MB Pc Pq int
|
||||
The number of bytes which should be prefetched during a pool traversal, like
|
||||
|
||||
Reference in New Issue
Block a user