1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00

Removed option EXTRAVNODES. All versions of FreeBSD-2.x have a sysctl

variable `kern.maxvnodes' which gives much better control over vnode
allocation than EXTRAVNODES (except in -current between 1995/10/28 and
1996/11/12, kern.maxvnodes was read-only and thus useless).
This commit is contained in:
Bruce Evans 1997-01-16 13:16:10 +00:00
parent 3b20426160
commit 5131d64e0c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21770
9 changed files with 3 additions and 44 deletions

View File

@ -60,16 +60,6 @@ options OPEN_MAX=128
options "MAXDSIZ=(256*1024*1024)"
options "DFLDSIZ=(256*1024*1024)"
#
# Under some circumstances it is useful to have an extra number of
# vnode data structures allocated at boot time. In particular,
# usenet news servers can benefit if there are enough vnodes to
# cache the busiest newsgroup and overview directories. Beware that
# this is an expensive option, it consumes physical non-pageable ram.
# A busy news server may benefit from 10,000 extra vnodes or so.
#
options EXTRAVNODES=1
#
# A math emulator is mandatory if you wish to run on hardware which
# does not have a floating-point processor. Pick either the original,

View File

@ -34,7 +34,7 @@ UMAPFS opt_dontuse.h
UNION
# Options used only in param.c.
EXTRAVNODES opt_param.h
EXTRAVNODES opt_defunct.h
MSGMAX opt_param.h
MSGMNB opt_param.h
MSGMNI opt_param.h

View File

@ -89,11 +89,6 @@ int maxfiles = NPROC*2; /* system wide open files limit */
int maxfilesperproc = NPROC*2; /* per-process open files limit */
int ncallout = 16 + NPROC; /* maximum # of timer events */
#ifndef EXTRAVNODES
#define EXTRAVNODES 0
#endif
int extravnodes = EXTRAVNODES; /* spare vnodes to allocate */
/* maximum # of mbuf clusters */
#ifndef NMBCLUSTERS
#define NMBCLUSTERS (512 + MAXUSERS * 16)

View File

@ -60,16 +60,6 @@ options OPEN_MAX=128
options "MAXDSIZ=(256*1024*1024)"
options "DFLDSIZ=(256*1024*1024)"
#
# Under some circumstances it is useful to have an extra number of
# vnode data structures allocated at boot time. In particular,
# usenet news servers can benefit if there are enough vnodes to
# cache the busiest newsgroup and overview directories. Beware that
# this is an expensive option, it consumes physical non-pageable ram.
# A busy news server may benefit from 10,000 extra vnodes or so.
#
options EXTRAVNODES=1
#
# A math emulator is mandatory if you wish to run on hardware which
# does not have a floating-point processor. Pick either the original,

View File

@ -60,16 +60,6 @@ options OPEN_MAX=128
options "MAXDSIZ=(256*1024*1024)"
options "DFLDSIZ=(256*1024*1024)"
#
# Under some circumstances it is useful to have an extra number of
# vnode data structures allocated at boot time. In particular,
# usenet news servers can benefit if there are enough vnodes to
# cache the busiest newsgroup and overview directories. Beware that
# this is an expensive option, it consumes physical non-pageable ram.
# A busy news server may benefit from 10,000 extra vnodes or so.
#
options EXTRAVNODES=1
#
# A math emulator is mandatory if you wish to run on hardware which
# does not have a floating-point processor. Pick either the original,

View File

@ -89,11 +89,6 @@ int maxfiles = NPROC*2; /* system wide open files limit */
int maxfilesperproc = NPROC*2; /* per-process open files limit */
int ncallout = 16 + NPROC; /* maximum # of timer events */
#ifndef EXTRAVNODES
#define EXTRAVNODES 0
#endif
int extravnodes = EXTRAVNODES; /* spare vnodes to allocate */
/* maximum # of mbuf clusters */
#ifndef NMBCLUSTERS
#define NMBCLUSTERS (512 + MAXUSERS * 16)

View File

@ -115,8 +115,8 @@ static int vfs_hang_addrlist __P((struct mount *mp, struct netexport *nep,
void
vntblinit()
{
desiredvnodes = maxproc + vm_object_cache_max + extravnodes;
desiredvnodes = maxproc + vm_object_cache_max;
TAILQ_INIT(&vnode_free_list);
CIRCLEQ_INIT(&mountlist);
}

View File

@ -115,8 +115,8 @@ static int vfs_hang_addrlist __P((struct mount *mp, struct netexport *nep,
void
vntblinit()
{
desiredvnodes = maxproc + vm_object_cache_max + extravnodes;
desiredvnodes = maxproc + vm_object_cache_max;
TAILQ_INIT(&vnode_free_list);
CIRCLEQ_INIT(&mountlist);
}

View File

@ -228,7 +228,6 @@ void vhold __P((struct vnode *));
*/
extern struct vnode *rootvnode; /* root (i.e. "/") vnode */
extern int desiredvnodes; /* number of vnodes desired */
extern int extravnodes; /* extra vnodes to allocate at boot */
extern int prtactive; /* nonzero to call vprint() */
extern struct vattr va_null; /* predefined null vattr structure */