Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_cache.c
Show All 12 Lines | |||||
*/ | */ | ||||
int zfs_vdev_cache_max = 1<<14; /* 16KB */ | int zfs_vdev_cache_max = 1<<14; /* 16KB */ | ||||
int zfs_vdev_cache_size = 0; | int zfs_vdev_cache_size = 0; | ||||
int zfs_vdev_cache_bshift = 16; | int zfs_vdev_cache_bshift = 16; | ||||
#define VCBS (1 << zfs_vdev_cache_bshift) /* 64KB */ | #define VCBS (1 << zfs_vdev_cache_bshift) /* 64KB */ | ||||
SYSCTL_DECL(_vfs_zfs_vdev); | SYSCTL_DECL(_vfs_zfs_vdev); | ||||
SYSCTL_NODE(_vfs_zfs_vdev, OID_AUTO, cache, CTLFLAG_RW, 0, "ZFS VDEV Cache"); | SYSCTL_NODE(_vfs_zfs_vdev, OID_AUTO, cache, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"ZFS VDEV Cache"); | |||||
SYSCTL_INT(_vfs_zfs_vdev_cache, OID_AUTO, max, CTLFLAG_RDTUN, | SYSCTL_INT(_vfs_zfs_vdev_cache, OID_AUTO, max, CTLFLAG_RDTUN, | ||||
&zfs_vdev_cache_max, 0, "Maximum I/O request size that increase read size"); | &zfs_vdev_cache_max, 0, "Maximum I/O request size that increase read size"); | ||||
SYSCTL_INT(_vfs_zfs_vdev_cache, OID_AUTO, size, CTLFLAG_RDTUN, | SYSCTL_INT(_vfs_zfs_vdev_cache, OID_AUTO, size, CTLFLAG_RDTUN, | ||||
&zfs_vdev_cache_size, 0, "Size of VDEV cache"); | &zfs_vdev_cache_size, 0, "Size of VDEV cache"); | ||||
SYSCTL_INT(_vfs_zfs_vdev_cache, OID_AUTO, bshift, CTLFLAG_RDTUN, | SYSCTL_INT(_vfs_zfs_vdev_cache, OID_AUTO, bshift, CTLFLAG_RDTUN, | ||||
&zfs_vdev_cache_bshift, 0, "Turn too small requests into 1 << this value"); | &zfs_vdev_cache_bshift, 0, "Turn too small requests into 1 << this value"); | ||||
kstat_t *vdc_ksp = NULL; | kstat_t *vdc_ksp = NULL; | ||||
Show All 12 Lines |