namecache: ncnegfactor 16 -> 12
It is used on each new entry addition to decide whether to whack an existing negative entry in order to prevent a blow out in size, but the parameter was set years ago and never revisited. Building with poudriere results in about 400 evictions per second which unnecessarily grab entries from the hot list. With the new parameter there are next to no evictions of the sort.
This commit is contained in:
parent
5d03f1e11f
commit
5644fffa25
@ -194,7 +194,7 @@ static __read_mostly LIST_HEAD(nchashhead, namecache) *nchashtbl;/* Hash Table *
|
||||
static u_long __read_mostly nchash; /* size of hash table */
|
||||
SYSCTL_ULONG(_debug, OID_AUTO, nchash, CTLFLAG_RD, &nchash, 0,
|
||||
"Size of namecache hash table");
|
||||
static u_long __read_mostly ncnegfactor = 16; /* ratio of negative entries */
|
||||
static u_long __read_mostly ncnegfactor = 12; /* ratio of negative entries */
|
||||
SYSCTL_ULONG(_vfs, OID_AUTO, ncnegfactor, CTLFLAG_RW, &ncnegfactor, 0,
|
||||
"Ratio of negative namecache entries");
|
||||
static u_long __exclusive_cache_line numneg; /* number of negative entries allocated */
|
||||
|
Loading…
Reference in New Issue
Block a user