mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
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
This commit is contained in:
parent
d10910e6ce
commit
4ab2a9a022
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189593
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user