Reduce the target number of vnodes on the freelist from desiredvnodes
(usually a couple of thousand) to 25. The measured impact on cache-hits doesn't justify spending memory this way: Target number of free vnodes versus namecache hit rate in % during a make world: 10 98.5316 200 98.5479 500 98.5546 1000 98.5709 3000 98.6006 4000 98.6126
This commit is contained in:
parent
fcc58b9423
commit
87b1940afa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29853
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.104 1997/09/16 11:43:38 bde Exp $
|
||||
* $Id: vfs_subr.c,v 1.105 1997/09/24 07:46:53 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -95,7 +95,7 @@ int vttoif_tab[9] = {
|
||||
(bp)->b_vnbufs.le_next = NOLIST; \
|
||||
}
|
||||
TAILQ_HEAD(freelst, vnode) vnode_free_list; /* vnode free list */
|
||||
static u_long wantfreevnodes = 0;
|
||||
static u_long wantfreevnodes = 25;
|
||||
SYSCTL_INT(_debug, OID_AUTO, wantfreevnodes, CTLFLAG_RW, &wantfreevnodes, 0, "");
|
||||
static u_long freevnodes = 0;
|
||||
SYSCTL_INT(_debug, OID_AUTO, freevnodes, CTLFLAG_RD, &freevnodes, 0, "");
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
|
||||
* $Id: vfs_subr.c,v 1.104 1997/09/16 11:43:38 bde Exp $
|
||||
* $Id: vfs_subr.c,v 1.105 1997/09/24 07:46:53 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -95,7 +95,7 @@ int vttoif_tab[9] = {
|
||||
(bp)->b_vnbufs.le_next = NOLIST; \
|
||||
}
|
||||
TAILQ_HEAD(freelst, vnode) vnode_free_list; /* vnode free list */
|
||||
static u_long wantfreevnodes = 0;
|
||||
static u_long wantfreevnodes = 25;
|
||||
SYSCTL_INT(_debug, OID_AUTO, wantfreevnodes, CTLFLAG_RW, &wantfreevnodes, 0, "");
|
||||
static u_long freevnodes = 0;
|
||||
SYSCTL_INT(_debug, OID_AUTO, freevnodes, CTLFLAG_RD, &freevnodes, 0, "");
|
||||
|
Loading…
Reference in New Issue
Block a user