mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
Add vdev property to disable vdev scheduler
Added vdev property to disable the vdev scheduler. The intention behind this property is to improve IOPS performance when using o_direct. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: MigeljanImeri <ImeriMigel@gmail.com> Closes #17358
This commit is contained in:
@@ -326,6 +326,13 @@ vdev_prop_init(void)
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
static const zprop_index_t vdevschedulertype_table[] = {
|
||||
{ "auto", VDEV_SCHEDULER_AUTO },
|
||||
{ "on", VDEV_SCHEDULER_ON },
|
||||
{ "off", VDEV_SCHEDULER_OFF },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
struct zfs_mod_supported_features *sfeatures =
|
||||
zfs_mod_list_supported(ZFS_SYSFS_VDEV_PROPERTIES);
|
||||
|
||||
@@ -484,6 +491,10 @@ vdev_prop_init(void)
|
||||
zprop_register_index(VDEV_PROP_SLOW_IO_EVENTS, "slow_io_events",
|
||||
B_TRUE, PROP_DEFAULT, ZFS_TYPE_VDEV, "on | off",
|
||||
"SLOW_IO_EVENTS", boolean_table, sfeatures);
|
||||
zprop_register_index(VDEV_PROP_SCHEDULER, "scheduler",
|
||||
VDEV_SCHEDULER_AUTO, PROP_DEFAULT, ZFS_TYPE_VDEV,
|
||||
"auto | on | off", "IO_SCHEDULER",
|
||||
vdevschedulertype_table, sfeatures);
|
||||
|
||||
/* hidden properties */
|
||||
zprop_register_hidden(VDEV_PROP_NAME, "name", PROP_TYPE_STRING,
|
||||
|
||||
Reference in New Issue
Block a user