Increase of WITNESS_COUNT

John Baldwin jhb at FreeBSD.org
Wed Dec 15 15:10:06 PST 2004


On Sunday 05 December 2004 03:09 pm, Michal Mertl wrote:
> Hello,
>
> for some time I'm seeing "witness exhausted" message in my logs when I run
> with WITNESS enabled. I know it's nothing new but it's either the bug which
> is causing it is surviving for long time or there's something special in my
> setups or that it's just normal (as more code get fine grained locking more
> witnesses are used).
>
> What are the consequences of increasing WITNESS_COUNT in
> src/sys/kern/subr_witness.c? I don't see any ill effects and I don't get
> the dreaded "witness exhausted" message. Can it be increased by default?

It just uses up more memory, but it doesn't use that much as it is.  It needs 
to be bumped, I just haven't sat down and done it.  What number did you bump 
it to in your testing?

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-current mailing list