]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r344936: MFV/ZoL: Disable LBA weighting on files and SSDs
authorAlexander Motin <mav@FreeBSD.org>
Thu, 11 Apr 2019 13:20:48 +0000 (13:20 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Thu, 11 Apr 2019 13:20:48 +0000 (13:20 +0000)
commit05c0c163c80ee2370106ae411e9a52390377f5eb
treeaefc8b0eacd5d483e3bbb629bb11184cbb6709d6
parentb845dc7949a8df63bb8bb5556249725234eeaa84
MFC r344936: MFV/ZoL: Disable LBA weighting on files and SSDs

The LBA weighting makes sense on rotational media where the outer tracks
have twice the bandwidth of the inner tracks. However, it is detrimental
on nonrotational media such as solid state disks, where the only effect
is to ensure that metaslabs enter the best-fit allocation behavior
sooner, which is detrimental to performance. It also makes no sense on
files where the underlying filesystem can arrange things however it
wants.

Author: Richard Yao <ryao@gentoo.org>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #3712
zfsonlinux/zfs@fb40095f5f0853946f8150481ca22602d1334dfe

To reduce code divergence this merge replaces equivalent but different
FreeBSD code detecting non-rotating medium vdevs.
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/vdev_impl.h
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_mirror.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c