freebsd-dev/sys/cddl/contrib/opensolaris/uts
Xin LI 8c4f41ff34 MFV r287624: 5987 zfs prefetch code needs work
Rewrite the ZFS prefetch code to detect only forward, sequential
streams.

The following kstats have been added:

    kstat.zfs.misc.arcstats.sync_wait_for_async

	How many sync reads have waited for async read
	to complete. (less is better)

    kstat.zfs.misc.arcstats.demand_hit_predictive_prefetch

	How many demand read didn't have to wait for I/O
	because of predictive prefetch.  (more is better)

zfetch kstats have been similified to hits, misses, and max_streams,
with max_streams representing times when we were not able to create
new stream because we already have the maximum number of sequences
for a file.

The sysctl variable/loader tunable vfs.zfs.zfetch.block_cap have been
replaced by vfs.zfs.zfetch.max_distance, which controls maximum bytes
to prefetch per stream.

illumos/illumos-gate@cf6106c8a0

Illumos ZFS issues:

    5987 zfs prefetch code needs work
    https://www.illumos.org/issues/5987
2015-09-12 08:35:51 +00:00
..
aarch64 First cut of DTrace for AArch64. 2015-07-01 15:51:11 +00:00
arm Initial version of DTrace on ARM32. 2015-02-10 19:41:30 +00:00
common MFV r287624: 5987 zfs prefetch code needs work 2015-09-12 08:35:51 +00:00
intel Mechanically convert cddl sun #ifdef's to illumos 2015-01-17 14:44:59 +00:00
mips Add MIPS support to cddl/contrib part: 2012-03-24 04:52:18 +00:00
powerpc Fix a couple bugs in 64-bit powerpc fasttrap argument retrieval. 2015-05-10 04:33:01 +00:00
sparc MFC r270195: 2014-08-20 21:44:48 +00:00