From owner-freebsd-current Fri Jan 15 09:33:47 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA13141 for freebsd-current-outgoing; Fri, 15 Jan 1999 09:33:47 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA13136 for ; Fri, 15 Jan 1999 09:33:46 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id JAA01141 for ; Fri, 15 Jan 1999 09:30:40 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199901151730.JAA01141@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: current@FreeBSD.ORG Subject: New NMBCLUSTERS tuning alternative Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 15 Jan 1999 09:30:39 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG With this commit, I'm trialling a simple method for providing tuning hints for otherwise statically-set parameters from the bootloader. You can now say: set kern.ipc.nmbclusters=XXXX to effectively set NMBCLUSTERS to XXXX. I've looked at other approaches, particularly a hook in the SYSCTL_* defines to search the environment and set the variables when the MIB is instantiated, but this won't happen early enough for some things. Any suggestions welcome, of course. ------- Forwarded Message msmith 1999/01/15 09:25:03 PST Modified files: sys/i386/i386 machdep.c Log: Fetch an overide for NMBCLUSTERS from the kernel environment. Never allow the value to be reduced below that defined when the kernel was built. Revision Changes Path 1.322 +7 -1 src/sys/i386/i386/machdep.c Modified files: sys/kern kern_environment.c sys/sys systm.h Log: Add getenv_int(), specifically for retrieving integer values from kernel environment variables. This makes it easy to pass tuning parameters in from the bootloader. Revision Changes Path 1.4 +20 -1 src/sys/kern/kern_environment.c 1.84 +2 -1 src/sys/sys/systm.h ------- End of Forwarded Message -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message