Project

General

Profile

Actions

Feature #7938

open

disable LBA weighting on files and SSDs

Added by James Blachly over 6 years ago. Updated almost 6 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
Gerrit CR:
External Bug:

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 propertyClosedYuri Pankov2017-03-05

Actions
Actions #1

Updated by Yuri Pankov over 6 years ago

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

Updated by Yuri Pankov almost 6 years ago

James, are you still working on this?

Actions #3

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.

Actions #4

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
Actions

Also available in: Atom PDF