From owner-cvs-all Wed Dec 12 13:42:54 2001 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 733C737B405; Wed, 12 Dec 2001 13:42:47 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 5891014C53; Wed, 12 Dec 2001 22:42:46 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Matt Dillon Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/config mkoptions.c src/sys/alpha/alpha machdep.c src/sys/alpha/conf GENERIC src/sys/i386/conf GENERIC NEWCARD src/sys/i386/i386 machdep.c src/sys/ia64/conf GENERIC src/sys/ia64/ia64 machdep.c src/sys/kern subr_param.c ... References: <200112090157.fB91v9i60677@freefall.freebsd.org> From: Dag-Erling Smorgrav Date: 12 Dec 2001 22:42:45 +0100 In-Reply-To: <200112090157.fB91v9i60677@freefall.freebsd.org> Message-ID: Lines: 25 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 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 Matt Dillon writes: > Log: > Allow maxusers to be specified as 0 in the kernel config, which will > cause the system to auto-size to between 32 and 512 depending on the > amount of memory. Hmm, one thing I'd like to see in conjunction with this is something that warns you if you set kern.ipc.nmbclusters lower than the default; maybe something like this very rough patch: --- subr_mbuf.c 1 Dec 2001 00:21:30 -0000 1.11 +++ subr_mbuf.c 12 Dec 2001 21:41:44 -0000 @@ -157,6 +157,8 @@ */ nmbclusters = NMBCLUSTERS; TUNABLE_INT_FETCH("kern.ipc.nmbclusters", &nmbclusters); + if (nmbclusters < NMBCLUSTERS) + printf("WARNING: setting nmbclusters lower than default\n"); nmbufs = NMBUFS; TUNABLE_INT_FETCH("kern.ipc.nmbufs", &nmbufs); nsfbufs = NSFBUFS; DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message