mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
SEEK_HOLE should not block on txg_wait_synced()
Force flushing of txg's can be painfully slow when competing for disk IO, since this is a process meant to execute asynchronously. Optimize this path via allowing data/hole seeking if the file is clean, but if dirty fall back to old logic. This is a compromise to disabling the feature entirely. Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com> Closes #4306 Closes #5962
This commit is contained in:
committed by
Brian Behlendorf
parent
a44e7faa6c
commit
66aca24730
@@ -1427,6 +1427,20 @@ Enable NOP writes
|
||||
Use \fB1\fR for yes (default) and \fB0\fR to disable.
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
\fBzfs_dmu_offset_next_sync\fR (int)
|
||||
.ad
|
||||
.RS 12n
|
||||
Enable forcing txg sync to find holes. When enabled forces ZFS to act
|
||||
like prior versions when SEEK_HOLE or SEEK_DATA flags are used, which
|
||||
when a dnode is dirty causes txg's to be synced so that this data can be
|
||||
found.
|
||||
.sp
|
||||
Use \fB1\fR for yes and \fB0\fR to disable (default).
|
||||
.RE
|
||||
|
||||
.sp
|
||||
.ne 2
|
||||
.na
|
||||
|
||||
Reference in New Issue
Block a user