freebsd-dev/sys/cddl
Alexander Motin 9373759d13 Fix spa_alloc_tree sorting by offset in r305331.
Original commit "7090 zfs should improve allocation order" declares alloc
queue sorted by time and offset.  But in practice io_offset is always zero,
so sorting happened only by time, while order of writes with equal time was
completely random.  On Illumos this did not affected much thanks to using
high resolution timestamps.  On FreeBSD due to using much faster but low
resolution timestamps it caused bad data placement on disks, affecting
further read performance.

This change switches zio_timestamp_compare() from comparing uninitialized
io_offset to really populated io_bookmark values.  I haven't decided yet
what to do with timestampts, but on simple tests this change gives the
same peformance results by just making code to work as declared.

MFC after:	1 week
2016-12-08 15:58:03 +00:00
..
boot/zfs Bug 212114 - loader: zio_checksum_verify() must test spa for NULL pointer 2016-08-24 16:30:15 +00:00
compat/opensolaris ifndef atomic_cas_* in cddl code in preparation for native implementations 2016-12-06 14:08:49 +00:00
contrib/opensolaris Fix spa_alloc_tree sorting by offset in r305331. 2016-12-08 15:58:03 +00:00
dev Add tunable to disable destructive dtrace 2016-11-23 22:50:20 +00:00