Chris Mason wrote:
My guess is that the improvement happens mostly from the first couple of tries,
not from repeated spinning. And since it is a mutex, you could even do:
I started with lower spin counts, I really didn't want to spin at all
but the current values came from trial and error.
Exactly the problem Steven is saying about adaptive locking.
Using benchmarks (or any test), on a small sample of systems
leads you to conclude "this design/tuning combination is better".
I've been burned repeatedly by that... ugly things happen
as you move away from your design testing center.
I'm not saying your code does not work, just that we need
a lot more proof with different configurations and loads
to see that is "at least no worse".
jim
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html