On Fri Oct 30 01:47:06 EDT 2009, [email protected] wrote:
> > btw, isn't the lockstats.locks++ in taslock:/^lock
> > broken since >1 loads can happen simultaneously
> > leading to undercounting?
> 
> sure but does it need to be 100% accurate?

probablly not.  but it will be most inaccurate
and cause the most performance impact when
there's a lot of locking going on.  i would think
that's exactly when it would be most interesting.
adding cores will make this worse, as does the
false sharing of the lockstats.

(i've seen some really wild results in my aoe
testing.)

so wouldn't xinc provide more consistent performance?
there would be at most 1 wait for the lockstats cacheline
per stat updated instead of 2.

- erik

Reply via email to