summaryrefslogtreecommitdiffstats
path: root/usr.bin/procstat/procstat_threads.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2016-12-15 08:11:32 +0000
committermav <mav@FreeBSD.org>2016-12-15 08:11:32 +0000
commit43517f2be0582024be83e733f5fd3df56e977dc9 (patch)
treef406d3bf4b4cc0555d69c646d5d07b79f4c14362 /usr.bin/procstat/procstat_threads.c
parent44d7841dbbc1eb424e8c05dda0244b5832238953 (diff)
downloadFreeBSD-src-43517f2be0582024be83e733f5fd3df56e977dc9.zip
FreeBSD-src-43517f2be0582024be83e733f5fd3df56e977dc9.tar.gz
MFC 309714: 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.
Diffstat (limited to 'usr.bin/procstat/procstat_threads.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud