spinlocks

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Jan 6 08:34:03 EST 2004


On Tue, 2004-01-06 at 05:07, jschopp at austin.ibm.com wrote:
> Based on past experience putting or instructins in locking routines I
> think it is worth doing.  The performance hit isn't from the execution of
> the instructions but from the extra space they take up.  It is not a huge
> difference, but it is measurable.  Spinlocks are called enough that
> anything measurable should be optimized.  Amdahl's law and all.

I tend to think that our spinlocks are so big nowadays that it would
probably be worth un-inlining them....

Ben.


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list