summaryrefslogtreecommitdiffstats
path: root/sys/geom/stripe
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-12-09 12:26:47 +0000
committerpjd <pjd@FreeBSD.org>2004-12-09 12:26:47 +0000
commit3342c80c8fb09cce70131f496174f58caa2279e8 (patch)
tree48932893768f79c588c39a6981a2279549b4055e /sys/geom/stripe
parent488882b3e93b211a6c11807cae679fe0ba14ca7c (diff)
downloadFreeBSD-src-3342c80c8fb09cce70131f496174f58caa2279e8.zip
FreeBSD-src-3342c80c8fb09cce70131f496174f58caa2279e8.tar.gz
- Turn off 'fast' mode by default and increase maximum memory to consume
when this mode is used. - Manual page update.
Diffstat (limited to 'sys/geom/stripe')
-rw-r--r--sys/geom/stripe/g_stripe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/stripe/g_stripe.c b/sys/geom/stripe/g_stripe.c
index 647316b..57438e3 100644
--- a/sys/geom/stripe/g_stripe.c
+++ b/sys/geom/stripe/g_stripe.c
@@ -72,7 +72,7 @@ static u_int g_stripe_debug = 0;
TUNABLE_INT("kern.geom.stripe.debug", &g_stripe_debug);
SYSCTL_UINT(_kern_geom_stripe, OID_AUTO, debug, CTLFLAG_RW, &g_stripe_debug, 0,
"Debug level");
-static int g_stripe_fast = 1;
+static int g_stripe_fast = 0;
TUNABLE_INT("kern.geom.stripe.fast", &g_stripe_fast);
static int
g_sysctl_stripe_fast(SYSCTL_HANDLER_ARGS)
@@ -87,7 +87,7 @@ g_sysctl_stripe_fast(SYSCTL_HANDLER_ARGS)
}
SYSCTL_PROC(_kern_geom_stripe, OID_AUTO, fast, CTLTYPE_INT | CTLFLAG_RW,
NULL, 0, g_sysctl_stripe_fast, "I", "Fast, but memory-consuming, mode");
-static u_int g_stripe_maxmem = MAX_IO_SIZE * 50;
+static u_int g_stripe_maxmem = MAX_IO_SIZE * 100;
TUNABLE_INT("kern.geom.stripe.maxmem", &g_stripe_maxmem);
SYSCTL_UINT(_kern_geom_stripe, OID_AUTO, maxmem, CTLFLAG_RD, &g_stripe_maxmem,
0, "Maximum memory that can be allocated in \"fast\" mode (in bytes)");
OpenPOWER on IntegriCloud