summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_kern.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-02-09 17:04:57 +0000
committerphk <phk@FreeBSD.org>2003-02-09 17:04:57 +0000
commitee425616b768cca2e028b7d9cf9b06f11c383e73 (patch)
treec9948b59943ec45a609a2f6bdd484f92a5170557 /sys/geom/geom_kern.c
parentaa5fb3b42f7db355c41e057868665ba93060e768 (diff)
downloadFreeBSD-src-ee425616b768cca2e028b7d9cf9b06f11c383e73.zip
FreeBSD-src-ee425616b768cca2e028b7d9cf9b06f11c383e73.tar.gz
Update the statistics collection code to track busy time instead of
idle time. Statistics now default to "on" and can be turned off with sysctl kern.geom.collectstats=0 Performance impact of statistics collection is on the order of 800 nsec per consumer/provider set on a 700MHz Athlon.
Diffstat (limited to 'sys/geom/geom_kern.c')
-rw-r--r--sys/geom/geom_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_kern.c b/sys/geom/geom_kern.c
index a925d9a..567cded 100644
--- a/sys/geom/geom_kern.c
+++ b/sys/geom/geom_kern.c
@@ -58,7 +58,7 @@ struct sx topology_lock;
static struct proc *g_up_proc;
int g_debugflags;
-int g_collectstats;
+int g_collectstats = 1;
/*
* G_UP and G_DOWN are the two threads which push I/O through the
OpenPOWER on IntegriCloud