Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 1999 09:30:39 -0800
From:      Mike Smith <mike@smith.net.au>
To:        current@FreeBSD.ORG
Subject:   New NMBCLUSTERS tuning alternative
Message-ID:  <199901151730.JAA01141@dingo.cdrom.com>

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901151730.JAA01141>