3 ms·
It's not just keeping fragmentation in check, above a threshold ZFS switches allocation strategy. The "nearly full" allocator is typically slower, IIRC because
by magicalhippo 4y ago
It's not just keeping fragmentation in check, above a threshold ZFS switches allocation strategy. The "nearly full" allocator is typically slower, IIRC because it tries to find better fitting free-space holes than the default allocator.
I can't recall if the threshold is 80% or 90% right now, but around there.
- rincebrain 4y agoIt is, I believe, 96% full in the spacemap for it to resort to best-fit instead of first-fit. [1] [1] - https://github.com/openzfs/zfs/blob/eaaed26ffb3a14c0c98ce1e6e039e62327ab4447/module/zfs/metaslab.c#L166-L172 https://github.com/openzfs/zfs/blob/eaaed26ffb3a14c0c98ce1e6...