Subject: Re: default vnodes in the system
To: matthew green <>
From: Luke Mewburn <>
List: tech-kern
Date: 06/02/2003 18:58:14
On Mon, Jun 02, 2003 at 06:34:18PM +1000, matthew green wrote:
  | clearly, netbsd allocates far too few vnodes by default in nearly
  | all cases.  this is the current base definition:
  | 	#define       NVNODE  (NPROC + NTEXT + 100)
  | adjusted to about 0.5% of ram (but not less) if NVNODE isn't set
  | in the kernel config file.
  | i think 0.5% is too few.  (was this before UBC?  0.5% probably
  | made more sense back then...)  i'd pick something between 1% and
  | 2% probably...
  | what do people think?  perhaps as a first step raising it to 1%
  | would alleviate most of the problem

seems reasonable to me; i currently crank maxvnodes up on my systems
because of this.

another point to consider is whether to round up to the next power
of two, since the vnode hash table is sized on that boundary.
the various hash/benchmark gurus around will have opinions on the
benefits of that.