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. \\ m...@smith.net.au \\ The race is long, and in the \\ msm...@freebsd.org \\ end it's only with yourself. \\ msm...@cdrom.com To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message