Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 1999 09:39:14 -0800 (PST)
From:      Jaye Mathisen <mrcpu@internetcds.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        current@FreeBSD.ORG
Subject:   Re: New NMBCLUSTERS tuning alternative
Message-ID:  <Pine.NEB.3.95.990115093813.634A-100000@schizo.cdsnet.net>
In-Reply-To: <199901151730.JAA01141@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help

I love it.  Haven't tried it, but the concept is great, and on the
assumption it works, will make things even easier...

Keep 'em coming. :)

On Fri, 15 Jan 1999, Mike Smith wrote:

> 
> 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
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.990115093813.634A-100000>