Project

General

Profile

Feature #7938

disable LBA weighting on files and SSDs

Added by James Blachly over 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
zfs - Zettabyte File System
Start date:
2017-03-05
Due date:
% Done:

100%

Estimated time:
1.00 h
Difficulty:
Bite-size
Tags:
complete, needs-review

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

Blocked by illumos gate - Bug #7940: provide device-rotational propertyClosed2017-03-05

Actions

History

#1

Updated by Yuri Pankov over 2 years ago

  • Blocked by Bug #7940: provide device-rotational property added
#2

Updated by Yuri Pankov over 2 years ago

James, are you still working on this?

#3

Updated by James Blachly over 2 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.

#4

Updated by Yuri Pankov about 2 years ago

  • Subject changed from Port ZOL #3712 disable LBA weighting on files and SSDs to disable LBA weighting on files and SSDs

Also available in: Atom PDF