Could MSGBUF_SIZE be made a loader tunable?
avg at freebsd.org
Mon Dec 6 15:50:23 UTC 2010
on 06/12/2010 07:20 perryh at pluto.rain.com said the following:
> Would there be some fundamental problem in changing MSGBUF_SIZE
> from a compiled-in constant to a tunable that could be set at the
> loader prompt? (I'm _not_ suggesting that it be adjustable while
> the system is running.)
> The upside would be that, if someone needed a larger buffer
> temporarily to accommodate trace data from a mechanism such as
> kern.geom.debugflags, the size could be adjusted without having
> to rebuild the kernel.
> I didn't see any obvious downside from examining the 8.1-RELEASE
> code, but I could certainly have overlooked some subtle (or even
> blatant) reason why this would be a Bad Idea.
I also don't immediately see why that wouldn't work.
Can you try to come up with a patch?
More information about the freebsd-stable