diff options
author | kmacy <kmacy@FreeBSD.org> | 2009-06-10 21:05:37 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2009-06-10 21:05:37 +0000 |
commit | 4ff84b99d601aeea965a6a53b65a37b96acef5c7 (patch) | |
tree | e08d47becf7c6991e6a4bf9d175ea52933cbb642 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_zfetch.c | |
parent | 3d458aebb237ed48284381415d395204842369a0 (diff) | |
download | FreeBSD-src-4ff84b99d601aeea965a6a53b65a37b96acef5c7.zip FreeBSD-src-4ff84b99d601aeea965a6a53b65a37b96acef5c7.tar.gz |
use default policy for enabling prefetching unless the TUNABLE is set
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_zfetch.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_zfetch.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_zfetch.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_zfetch.c index 3ff6f5e..d2fad07 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_zfetch.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_zfetch.c @@ -37,8 +37,7 @@ * until we can get this working the way we want it to. */ -int zfs_prefetch_disable = 0; -int zfs_prefetch_enable = 0; +int zfs_prefetch_enable = 1; /* max # of streams per zfetch */ uint32_t zfetch_max_streams = 8; @@ -50,10 +49,6 @@ uint32_t zfetch_block_cap = 256; uint64_t zfetch_array_rd_sz = 1024 * 1024; SYSCTL_DECL(_vfs_zfs); -TUNABLE_INT("vfs.zfs.prefetch_disable", &zfs_prefetch_disable); -SYSCTL_INT(_vfs_zfs, OID_AUTO, prefetch_disable, CTLFLAG_RDTUN, - &zfs_prefetch_disable, 0, "Disable prefetch"); -TUNABLE_INT("vfs.zfs.prefetch_enable", &zfs_prefetch_enable); SYSCTL_INT(_vfs_zfs, OID_AUTO, prefetch_enable, CTLFLAG_RDTUN, &zfs_prefetch_enable, 0, "Enable prefetch for systems with less than 4GB"); SYSCTL_NODE(_vfs_zfs, OID_AUTO, zfetch, CTLFLAG_RW, 0, "ZFS ZFETCH"); |