Difference between revisions of "Features"

Jump to navigation Jump to search
1,789 bytes added ,  13:33, 4 September 2015
m
Add disable LBA weighting description
(Move Feature Flags to individual page.)
m (Add disable LBA weighting description)
Line 521: Line 521:
|'''ZFS on Linux'''
|'''ZFS on Linux'''
|[https://github.com/zfsonlinux/zfs/commit/e8b96c6007bf97cdf34869c1ffbd0ce753873a3d Dec 2013]
|[https://github.com/zfsonlinux/zfs/commit/e8b96c6007bf97cdf34869c1ffbd0ce753873a3d Dec 2013]
|-
|'''OpenZFS on OS X'''
|not yet
|}
==== Disable LBA Weighting on files and SSDs ====
On rotational media, the bandwidth of the outermost tracks is approximately twice that of innermost tracks. A heuristic called LBA weighting was put into the metaslab allocator to account for this by favoring the outermost tracks over the innermost tracks. This has the consequence that metaslabs tend to fill at different rates depending on their location. This causes the metaslabs corresponding to outermost tracks to enter the best-fit allocation strategy.
The best-fit allocation strategy is more CPU intensive than the typical first-fit because it looks for the smallest region of free space able to fulfill an allocation rather than picking the next avaliable one. The CPU time is fairly excessive and is known to harm IOPS, but it exists to minimize use of gang blocks as a metaslab becomes excessively full. Gaining a bandwidth improvement from LBA weighting at the expense of an earlier switch to the best-fit allocation behavior on the weighted metaslabs is reasonable on rotational disks. However, it makes no sense on files, where the underlying filesystem is free to place things however way it sees fit, and on SSDs, where there is no bandwidth difference based on LBA.
With this change, we will more evenly fill metaslabs on pools whose vdevs consist of only files and SSDs, which will minimize the metaslabs that enter the best fit allocation strategy when a pool is mostly full, but still below 96% full. This is particularly important on SSDs, where drops in IOPS are more pronounced.
{| class="wikitable"
|-
|'''illumos'''
|not yet
|-
|'''FreeBSD'''
|not yet
|-
|'''ZFS on Linux'''
|[https://github.com/zfsonlinux/zfs/commit/fb40095f5f0853946f8150481ca22602d1334dfe Aug 2015]
|-
|-
|'''OpenZFS on OS X'''
|'''OpenZFS on OS X'''
Editor
348

edits

Navigation menu