34037afe24
The Linux block device queue subsystem exposes a number of configurable settings described in Linux block/blk-settings.c. The defaults for these settings are tuned for hard drives, and are not optimized for ZVOLs. Proper configuration of these options would allow upper layers (I/O scheduler) to take better decisions about write merging and ordering. Detailed rationale: - max_hw_sectors is set to unlimited (UINT_MAX). zvol_write() is able to handle writes of any size, so there's no reason to impose a limit. Let the upper layer decide. - max_segments and max_segment_size are set to unlimited. zvol_write() will copy the requests' contents into a dbuf anyway, so the number and size of the segments are irrelevant. Let the upper layer decide. - physical_block_size and io_opt are set to the ZVOL's block size. This has the potential to somewhat alleviate issue #361 for ZVOLs, by warning the upper layers that writes smaller than the volume's block size will be slow. - The NONROT flag is set to indicate this isn't a rotational device. Although the backing zpool might be composed of rotational devices, the resulting ZVOL often doesn't exhibit the same behavior due to the COW mechanisms used by ZFS. Setting this flag will prevent upper layers from making useless decisions (such as reordering writes) based on incorrect assumptions about the behavior of the ZVOL. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> |
||
---|---|---|
.. | ||
dm0-raid0.sh | ||
file-raid0.sh | ||
file-raid10.sh | ||
file-raidz2.sh | ||
file-raidz.sh | ||
hda-raid0.sh | ||
lo-faulty-raid0.sh | ||
lo-faulty-raid10.sh | ||
lo-faulty-raidz2.sh | ||
lo-faulty-raidz3.sh | ||
lo-faulty-raidz.sh | ||
lo-raid0.sh | ||
lo-raid10.sh | ||
lo-raidz2.sh | ||
lo-raidz.sh | ||
Makefile.am | ||
Makefile.in | ||
md0-raid5.sh | ||
md0-raid10.sh | ||
ram0-raid0.sh | ||
scsi_debug-noraid.sh | ||
scsi_debug-raid0.sh | ||
scsi_debug-raid10.sh | ||
scsi_debug-raidz2.sh | ||
scsi_debug-raidz3.sh | ||
scsi_debug-raidz.sh | ||
sda-raid0.sh | ||
zpool-raid0.sh | ||
zpool-raid10.sh | ||
zpool-raidz.sh |