Alan Cox 2e05d89828 Make the maximum number of vnodes a function of both the physical memory
size and the kernel's heap size, specifically, vm_kmem_size.  This
function allows a maximum of 40% of the vm_kmem_size to be used for
vnodes and vm objects.  This is a conservative bound based upon recent
problem reports.  (In other words, a slight increase in this percentage
may be safe.)

Finally, machines with less than ~3GB of RAM should be unaffected
by this change, i.e., the maximum number of vnodes should remain
the same.  If necessary, machines with 3GB or more of RAM can increase
the maximum number of vnodes by increasing vm_kmem_size.

Desired by:	scottl
Tested by:	jake
Approved by:	re (rwatson,scottl)
2003-05-23 19:54:02 +00:00
..
2003-03-25 04:32:52 +00:00
2003-04-09 02:57:29 +00:00
2003-04-28 18:32:19 +00:00
2002-12-22 05:35:03 +00:00
2002-06-29 02:00:02 +00:00
2003-01-07 20:10:04 +00:00
2003-05-02 06:18:55 +00:00
2003-04-16 20:57:35 +00:00
2003-02-12 07:00:59 +00:00
2003-02-20 03:26:11 +00:00
2003-04-09 02:57:29 +00:00
2003-03-07 22:47:32 +00:00
2003-03-23 19:41:34 +00:00