Mike Smith <m...@smith.net.au> writes:

> I just committed a tweak that allows you to say:
> 
>       set kern.vm.kmem.size=<value>
> 
> at the loader prompt or in /boot/loader.rc to override the default 
> VM_KMEM_SIZE value.
> 
> If anyone has any more of these tunables that can easily be enhanced 
> like this, please let me know.
> 
How about all the parameters that are assigned in param.c?  Why not
make them all tweakable in the loader.rc, rather than having to patch
the kernel.

Actually, thinking about this a little more ...
The loader knows where all symbols are in memory.  Why not a general
mechanism to let you reassign the value of any "variable" used in
the kernel or in a module.  I presume that the loader allocates bss
for the kernel and each module as it loads it.  So I presume I can
assign a value to a variable that would ordinarily take on a 0
value, too.

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

Reply via email to