Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_zfetch.c
Show All 12 Lines | |||||
/* max bytes to prefetch indirects for per stream (default 64MB) */ | /* max bytes to prefetch indirects for per stream (default 64MB) */ | ||||
uint32_t zfetch_max_idistance = 64 * 1024 * 1024; | uint32_t zfetch_max_idistance = 64 * 1024 * 1024; | ||||
/* max number of bytes in an array_read in which we allow prefetching (1MB) */ | /* max number of bytes in an array_read in which we allow prefetching (1MB) */ | ||||
uint64_t zfetch_array_rd_sz = 1024 * 1024; | uint64_t zfetch_array_rd_sz = 1024 * 1024; | ||||
SYSCTL_DECL(_vfs_zfs); | SYSCTL_DECL(_vfs_zfs); | ||||
SYSCTL_INT(_vfs_zfs, OID_AUTO, prefetch_disable, CTLFLAG_RW, | SYSCTL_INT(_vfs_zfs, OID_AUTO, prefetch_disable, CTLFLAG_RW, | ||||
&zfs_prefetch_disable, 0, "Disable prefetch"); | &zfs_prefetch_disable, 0, "Disable prefetch"); | ||||
SYSCTL_NODE(_vfs_zfs, OID_AUTO, zfetch, CTLFLAG_RW, 0, "ZFS ZFETCH"); | SYSCTL_NODE(_vfs_zfs, OID_AUTO, zfetch, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"ZFS ZFETCH"); | |||||
SYSCTL_UINT(_vfs_zfs_zfetch, OID_AUTO, max_streams, CTLFLAG_RWTUN, | SYSCTL_UINT(_vfs_zfs_zfetch, OID_AUTO, max_streams, CTLFLAG_RWTUN, | ||||
&zfetch_max_streams, 0, "Max # of streams per zfetch"); | &zfetch_max_streams, 0, "Max # of streams per zfetch"); | ||||
SYSCTL_UINT(_vfs_zfs_zfetch, OID_AUTO, min_sec_reap, CTLFLAG_RWTUN, | SYSCTL_UINT(_vfs_zfs_zfetch, OID_AUTO, min_sec_reap, CTLFLAG_RWTUN, | ||||
&zfetch_min_sec_reap, 0, "Min time before stream reclaim"); | &zfetch_min_sec_reap, 0, "Min time before stream reclaim"); | ||||
SYSCTL_UINT(_vfs_zfs_zfetch, OID_AUTO, max_distance, CTLFLAG_RWTUN, | SYSCTL_UINT(_vfs_zfs_zfetch, OID_AUTO, max_distance, CTLFLAG_RWTUN, | ||||
&zfetch_max_distance, 0, "Max bytes to prefetch per stream"); | &zfetch_max_distance, 0, "Max bytes to prefetch per stream"); | ||||
SYSCTL_UINT(_vfs_zfs_zfetch, OID_AUTO, max_idistance, CTLFLAG_RWTUN, | SYSCTL_UINT(_vfs_zfs_zfetch, OID_AUTO, max_idistance, CTLFLAG_RWTUN, | ||||
&zfetch_max_idistance, 0, "Max bytes to prefetch indirects for per stream"); | &zfetch_max_idistance, 0, "Max bytes to prefetch indirects for per stream"); | ||||
Show All 12 Lines |