vdev_queue.c revision 05b2b3b80d84f3c379ea0df61a0f73fd87db2748
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/zfs_context.h>
#include <sys/vdev_impl.h>
/*
* These tunables are for performance analysis.
*/
/*
* pending to each device. zfs_vdev_min_pending is the initial number
* max_pending).
*/
int zfs_vdev_max_pending = 35;
int zfs_vdev_min_pending = 4;
/* deadline = pri + (lbolt >> time_shift) */
int zfs_vdev_time_shift = 6;
/* exponential I/O issue ramp-up rate */
int zfs_vdev_ramp_rate = 2;
/*
* zfs_vdev_aggregation_limit bytes long.
*/
/*
* Virtual device vector for disk I/O scheduling.
*/
int
{
return (-1);
return (1);
return (-1);
return (1);
return (-1);
return (1);
return (0);
}
int
{
return (-1);
return (1);
return (-1);
return (1);
return (0);
}
void
{
}
void
{
}
static void
{
}
static void
{
}
static void
{
}
}
typedef void zio_issue_func_t(zio_t *);
static zio_t *
{
return (NULL);
}
}
int nagg = 0;
nagg++;
}
dprintf("%5s T=%llu off=%8llx agg=%3d "
"old=%5llx new=%5llx\n",
*funcp = zio_nowait;
return (aio);
}
*funcp = zio_next_stage;
return (fio);
}
zio_t *
{
return (zio);
else
return (nio);
return (NULL);
}
void
{
int i;
for (i = 0; i < zfs_vdev_ramp_rate; i++) {
break;
if (func == zio_next_stage)
}
}