vmstat's entries type

Brian Candler B.Candler at pobox.com
Fri Jul 28 13:47:06 UTC 2006


On Fri, Jul 28, 2006 at 09:28:36AM -0400, John Baldwin wrote:
> 	lock incl counter
> 	jnc 1f
> 	lock incl counter+4
> 1:

That looks safe to me. How expensive is a forward jump like that, i.e. do
you get a pipeline bubble?

The 'polling' argument says just do

    lock incl counter

and poll all counters every 5 minutes, looking for a wrap. I think that's
almost certainly going to be cheaper, as long as you can keep track of where
all these counters are located.

Regards,

Brian.


More information about the freebsd-current mailing list