kern/124991: [zfs] [patch] Add two new vfs.zfs.queue tunables
Cy Schubert
cy at FreeBSD.org
Wed Jun 25 22:10:02 UTC 2008
>Number: 124991
>Category: kern
>Synopsis: [zfs] [patch] Add two new vfs.zfs.queue tunables
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 25 22:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Cy Schubert
>Release: FreeBSD-2.0
>Organization:
FreeBSD
>Environment:
System: FreeBSD cwsys 7.0-STABLE FreeBSD 7.0-STABLE #1: Sun Jun 15 11:12:10 PDT 2008 root at cwsys:/export/obj/opt/src/cvs-stable7/src/sys/KOMQUATS i386
>Description:
Add two new tunables to vdev_queue.c, one being similar to a tunable in
Solaris /etc/system.
>How-To-Repeat:
N/A
>Fix:
--- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c.orig 2008-04-16 18:23:33.000000000 -0700
+++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_queue.c 2008-06-25 14:35:19.000000000 -0700
@@ -43,6 +43,15 @@
int zfs_vdev_max_pending = 35;
int zfs_vdev_min_pending = 4;
+SYSCTL_DECL(_vfs_zfs_vdev);
+SYSCTL_NODE(_vfs_zfs_vdev, OID_AUTO, queue, CTLFLAG_RW, 0, "ZFS VDEV Queue");
+TUNABLE_INT("vfs.zfs.vdev.queue.max_pending", &zfs_vdev_max_pending);
+SYSCTL_INT(_vfs_zfs_vdev_queue, OID_AUTO, max_pending, CTLFLAG_RDTUN,
+ &zfs_vdev_max_pending, 0, "The maximum number of i/os concurrently pending to each device");
+TUNABLE_INT("vfs.zfs.vdev.queue.min_pending", &zfs_vdev_min_pending);
+SYSCTL_INT(_vfs_zfs_vdev_queue, OID_AUTO, min_pending, CTLFLAG_RDTUN,
+ &zfs_vdev_min_pending, 0, "The initial number of i/os pending to each device(before ramping up to max_pending)");
+
/* deadline = pri + (lbolt >> time_shift) */
int zfs_vdev_time_shift = 6;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list