]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Limit the amount of KVM reserved for the buffer cache and for swap-meta
authorMatthew Dillon <dillon@FreeBSD.org>
Mon, 20 Aug 2001 00:41:12 +0000 (00:41 +0000)
committerMatthew Dillon <dillon@FreeBSD.org>
Mon, 20 Aug 2001 00:41:12 +0000 (00:41 +0000)
commit2f9e4e8025d489474ae350ac90f08d1879050dc0
tree4f3fc469468f6ff18e20f33a23a0fca03e1113be
parenta35671c1976d41190c8ead51cb7676b155dc5c85
Limit the amount of KVM reserved for the buffer cache and for swap-meta
information.  The default limits only effect machines with > 1GB of ram
and can be overriden with two new kernel conf variables VM_SWZONE_SIZE_MAX
and VM_BCACHE_SIZE_MAX, or with loader variables kern.maxswzone and
kern.maxbcache.  This has the effect of leaving more KVM available for
sizing NMBCLUSTERS and 'maxusers' and should avoid tripups where a sysad
adds memory to a machine and then sees the kernel panic on boot due to
running out of KVM.

Also change the default swap-meta auto-sizing calculation to allocate half
of what it was previously allocating.  The prior defaults were way too high.
Note that we cannot afford to run out of swap-meta structures so we still
stay somewhat conservative here.
sys/amd64/amd64/machdep.c
sys/boot/common/loader.8
sys/conf/options
sys/i386/i386/machdep.c
sys/i386/include/param.h
sys/kern/subr_param.c
sys/sys/buf.h
sys/vm/swap_pager.c