Skip to content

Commit c25ec96

Browse files
committed
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 VDIv2 workloads. Signed-off-by: Ameer Hamza <[email protected]>
1 parent ce92af2 commit c25ec96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: module/os/linux/zfs/zvol_os.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,7 @@ zvol_queue_limits_init(zvol_queue_limits_t *limits, zvol_state_t *zv,
11931193
limits->zql_max_segment_size = UINT_MAX;
11941194
}
11951195

1196-
limits->zql_io_opt = zv->zv_volblocksize;
1196+
limits->zql_io_opt = DMU_MAX_ACCESS/2;
11971197

11981198
limits->zql_physical_block_size = zv->zv_volblocksize;
11991199
limits->zql_max_discard_sectors =

0 commit comments

Comments
 (0)