From owner-cvs-all Sun Aug 19 17:41:18 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5CD3337B411; Sun, 19 Aug 2001 17:41:13 -0700 (PDT) (envelope-from dillon@FreeBSD.org) Received: (from dillon@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7K0fD807805; Sun, 19 Aug 2001 17:41:13 -0700 (PDT) (envelope-from dillon) Message-Id: <200108200041.f7K0fD807805@freefall.freebsd.org> From: Matt Dillon Date: Sun, 19 Aug 2001 17:41:13 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/boot/common loader.8 src/sys/conf options src/sys/i386/i386 machdep.c src/sys/i386/include param.h src/sys/kern subr_param.c src/sys/sys buf.h src/sys/vm swap_pager.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG dillon 2001/08/19 17:41:13 PDT Modified files: 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 Log: 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. Revision Changes Path 1.31 +28 -1 src/sys/boot/common/loader.8 1.289 +3 -1 src/sys/conf/options 1.470 +7 -2 src/sys/i386/i386/machdep.c 1.60 +17 -1 src/sys/i386/include/param.h 1.43 +7 -1 src/sys/kern/subr_param.c 1.119 +3 -1 src/sys/sys/buf.h 1.163 +6 -3 src/sys/vm/swap_pager.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message