Feature #7938
opendisable LBA weighting on files and SSDs
100%
Description
ZFS on Linux has had a feature "Disable LBA weighting on SSD" since August 2015:
http://open-zfs.org/wiki/Features#Disable_LBA_Weighting_on_files_and_SSDs
https://github.com/zfsonlinux/zfs/commit/fb40095f5f0853946f8150481ca22602d1334dfe
Because we have the device property "device-solid-state" we can port this over. In addition, we can add detection for virtio vioblk device, which should also not use LBA weighting.
On linux, block devices have a "non-rotational" property, so this is a one liner in vdev_disk.c:v->vdev_nonrot = blk_queue_nonrot(bdev_get_queue(vd->vd_bdev));
We do not, so the checks are a little bit more cumbersome but doable (check device-solid-state != 0
and inqury-vendor-id==Virtio
separately)
Parenthetically, perhaps we should have a "non rotational" property for block devices?
Related issues
Updated by Yuri Pankov over 6 years ago
- Blocked by Bug #7940: provide device-rotational property added
Updated by James Blachly almost 6 years ago
Yuri Pankov wrote:
James, are you still working on this?
Yes -- thanks for ping. Got busy with work. Patch is done but I need to do a clean nightly build.
Updated by Yuri Pankov almost 6 years ago
- Subject changed from Port ZOL #3712 disable LBA weighting on files and SSDs to disable LBA weighting on files and SSDs