From owner-cvs-all Mon Aug 20 3:28:28 2001 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 5BD1537B41C; Mon, 20 Aug 2001 03:28:19 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id UAA12811; Mon, 20 Aug 2001 20:28:08 +1000 Date: Mon, 20 Aug 2001 20:27:30 +1000 (EST) From: Bruce Evans X-X-Sender: To: Peter Wemm Cc: Matt Dillon , , Subject: Re: 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 In-Reply-To: <20010820075505.D5E6C3811@overcee.netplex.com.au> Message-ID: <20010820194057.Y54152-100000@besplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Mon, 20 Aug 2001, Peter Wemm wrote: > Matt Dillon wrote: > > 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. > > And how about the rest of the platforms? You have broken them by putting > references to a MD include (sys/i386/include/param.h) into a MI file > (subr_param.c). Actually, by not updating all copies of this MD include to define suitable MD constants for VM_BCACHE_SIZE_MAX and VM_SWZONE_SIZE_MAX. These constants need to be MD since the amount of KVM is MD. Except these constants shouldn't exist. Just use a suitable fraction of total KVM. Alternatively, set these constants to "infinity" by default and override them on i386's only. 64-bit machines should have enough KVM to map the buffer cache millions of times. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message