diff options
author | jhb <jhb@FreeBSD.org> | 2009-03-09 19:04:53 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-03-09 19:04:53 +0000 |
commit | b27007efcb6a9d094bb75ec33ed5d4f7375e7214 (patch) | |
tree | 5d65c1749c50eaeeaeaabc0dc72f760e5e6ad230 /sys/kern/vfs_cache.c | |
parent | 71233409ea6a2f4d751847c05e7aad9375278d94 (diff) | |
download | FreeBSD-src-b27007efcb6a9d094bb75ec33ed5d4f7375e7214.zip FreeBSD-src-b27007efcb6a9d094bb75ec33ed5d4f7375e7214.tar.gz |
Move the debug.hashstat sysctl tree under DIAGNOSTIC. I measured the
debug.hashstat.rawnchash sysctl in particular as taking 7 milliseconds on
a 3GHz Intel Xeon (4x2) running 7.1. It accounted for almost a quarter of
the total runtime of 'sysctl -a'. It also performs lots of copyout's while
holding the namecache lock (this does not attempt to fix that).
MFC after: 2 weeks
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r-- | sys/kern/vfs_cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 3c32808..cec1e33 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -184,6 +184,7 @@ static MALLOC_DEFINE(M_VFSCACHE, "vfscache", "VFS name cache entries"); */ #define NCF_WHITE 1 +#ifdef DIAGNOSTIC /* * Grab an atomic snapshot of the name cache hash chain lengths */ @@ -268,6 +269,7 @@ sysctl_debug_hashstat_nchash(SYSCTL_HANDLER_ARGS) SYSCTL_PROC(_debug_hashstat, OID_AUTO, nchash, CTLTYPE_INT|CTLFLAG_RD| CTLFLAG_MPSAFE, 0, 0, sysctl_debug_hashstat_nchash, "I", "nchash chain lengths"); +#endif /* * cache_zap(): |