mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue