]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r344936: MFV/ZoL: Disable LBA weighting on files and SSDs
authormav <mav@FreeBSD.org>
Thu, 11 Apr 2019 13:21:10 +0000 (13:21 +0000)
committermav <mav@FreeBSD.org>
Thu, 11 Apr 2019 13:21:10 +0000 (13:21 +0000)
commit0a0c2deb059667bdbc18c0f1981dbb9063c9a3da
tree2682d27eba4627591a4334b13bd80af926da2e1b
parent8dfd8f76b69d4a9f09fd7e0a36844a68172ada0a
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