mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-05-12 13:41:33 +03:00
zvol_os.c: Increase optimal IO size
Since zvol read and write can process up to (DMU_MAX_ACCESS / 2) bytes in a single operation, the current optimal I/O size is too low. SCST directly reports this value as the optimal transfer length for the target SCSI device. Increasing it from the previous volblocksize results in performance improvement for large block parallel I/O workloads. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Ameer Hamza <ahamza@ixsystems.com> Closes #16750
This commit is contained in:
parent
ee3677d321
commit
4c9f2cec46
@ -1176,7 +1176,7 @@ zvol_queue_limits_init(zvol_queue_limits_t *limits, zvol_state_t *zv,
|
|||||||
limits->zql_max_segment_size = UINT_MAX;
|
limits->zql_max_segment_size = UINT_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
limits->zql_io_opt = zv->zv_volblocksize;
|
limits->zql_io_opt = DMU_MAX_ACCESS / 2;
|
||||||
|
|
||||||
limits->zql_physical_block_size = zv->zv_volblocksize;
|
limits->zql_physical_block_size = zv->zv_volblocksize;
|
||||||
limits->zql_max_discard_sectors =
|
limits->zql_max_discard_sectors =
|
||||||
|
Loading…
Reference in New Issue
Block a user