summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/zfs/vdev.c
diff options
context:
space:
mode:
authorahrens <none@none>2006-11-03 11:39:28 -0800
committerahrens <none@none>2006-11-03 11:39:28 -0800
commit614409b5be5411058e7e9b6cc93dddaff9fb13f7 (patch)
tree994d814287dee3e4d808d3f845b3f62e5c99acbc /usr/src/uts/common/fs/zfs/vdev.c
parentada9354b28215e27f2a3b25b9c352681c9cbdfa1 (diff)
downloadillumos-joyent-614409b5be5411058e7e9b6cc93dddaff9fb13f7.tar.gz
6472021 vdev knobs can not be turned
Diffstat (limited to 'usr/src/uts/common/fs/zfs/vdev.c')
-rw-r--r--usr/src/uts/common/fs/zfs/vdev.c117
1 files changed, 0 insertions, 117 deletions
diff --git a/usr/src/uts/common/fs/zfs/vdev.c b/usr/src/uts/common/fs/zfs/vdev.c
index 00eff00202..007833e95e 100644
--- a/usr/src/uts/common/fs/zfs/vdev.c
+++ b/usr/src/uts/common/fs/zfs/vdev.c
@@ -45,15 +45,6 @@
* Virtual device management.
*/
-/*
- * These tunables are for performance analysis, and override the
- * (not-easily-turnable) vdev "knobs".
- */
-int zfs_vdev_cache_max;
-int zfs_vdev_max_pending;
-int zfs_vdev_min_pending;
-int zfs_vdev_time_shift;
-
static vdev_ops_t *vdev_ops_table[] = {
&vdev_root_ops,
&vdev_raidz_ops,
@@ -774,7 +765,6 @@ int
vdev_open(vdev_t *vd)
{
int error;
- vdev_knob_t *vk;
int c;
uint64_t osize = 0;
uint64_t asize, psize;
@@ -791,23 +781,6 @@ vdev_open(vdev_t *vd)
vd->vdev_stat.vs_aux = VDEV_AUX_NONE;
- for (vk = vdev_knob_next(NULL); vk != NULL; vk = vdev_knob_next(vk)) {
- uint64_t *valp = (uint64_t *)((char *)vd + vk->vk_offset);
-
- *valp = vk->vk_default;
- *valp = MAX(*valp, vk->vk_min);
- *valp = MIN(*valp, vk->vk_max);
- }
-
- if (zfs_vdev_cache_max)
- vd->vdev_cache.vc_max = zfs_vdev_cache_max;
- if (zfs_vdev_max_pending)
- vd->vdev_queue.vq_max_pending = zfs_vdev_max_pending;
- if (zfs_vdev_min_pending)
- vd->vdev_queue.vq_min_pending = zfs_vdev_min_pending;
- if (zfs_vdev_time_shift)
- vd->vdev_queue.vq_time_shift = zfs_vdev_time_shift;
-
if (vd->vdev_ops->vdev_op_leaf) {
vdev_cache_init(vd);
vdev_queue_init(vd);
@@ -1748,96 +1721,6 @@ vdev_space_update(vdev_t *vd, int64_t space_delta, int64_t alloc_delta)
}
/*
- * Various knobs to tune a vdev.
- */
-static vdev_knob_t vdev_knob[] = {
- {
- "cache_size",
- "size of the read-ahead cache",
- 0,
- 1ULL << 30,
- 10ULL << 20,
- offsetof(struct vdev, vdev_cache.vc_size)
- },
- {
- "cache_bshift",
- "log2 of cache blocksize",
- SPA_MINBLOCKSHIFT,
- SPA_MAXBLOCKSHIFT,
- 16,
- offsetof(struct vdev, vdev_cache.vc_bshift)
- },
- {
- "cache_max",
- "largest block size to cache",
- 0,
- SPA_MAXBLOCKSIZE,
- 1ULL << 14,
- offsetof(struct vdev, vdev_cache.vc_max)
- },
- {
- "min_pending",
- "minimum pending I/Os to the disk",
- 1,
- 10000,
- 4,
- offsetof(struct vdev, vdev_queue.vq_min_pending)
- },
- {
- "max_pending",
- "maximum pending I/Os to the disk",
- 1,
- 10000,
- 35,
- offsetof(struct vdev, vdev_queue.vq_max_pending)
- },
- {
- "scrub_limit",
- "maximum scrub/resilver I/O queue",
- 0,
- 10000,
- 70,
- offsetof(struct vdev, vdev_queue.vq_scrub_limit)
- },
- {
- "agg_limit",
- "maximum size of aggregated I/Os",
- 0,
- SPA_MAXBLOCKSIZE,
- SPA_MAXBLOCKSIZE,
- offsetof(struct vdev, vdev_queue.vq_agg_limit)
- },
- {
- "time_shift",
- "deadline = pri + (lbolt >> time_shift)",
- 0,
- 63,
- 6,
- offsetof(struct vdev, vdev_queue.vq_time_shift)
- },
- {
- "ramp_rate",
- "exponential I/O issue ramp-up rate",
- 1,
- 10000,
- 2,
- offsetof(struct vdev, vdev_queue.vq_ramp_rate)
- },
-};
-
-vdev_knob_t *
-vdev_knob_next(vdev_knob_t *vk)
-{
- if (vk == NULL)
- return (vdev_knob);
-
- if (++vk == vdev_knob + sizeof (vdev_knob) / sizeof (vdev_knob_t))
- return (NULL);
-
- return (vk);
-}
-
-/*
* Mark a top-level vdev's config as dirty, placing it on the dirty list
* so that it will be written out next time the vdev configuration is synced.
* If the root vdev is specified (vdev_top == NULL), dirty all top-level vdevs.