From: "David Mosberger" <davidm@napali.hpl.hp.com> > Has anyone studied the impact of doing exponential backoff in > ia64_spinlock_contention. My theory is that it wouldn't buy much _if_ > spinlocks always were in their own cachelines, but since they're not, > not using backoff could cause extra cache-line bouncing. To be > honest, I'd rather not spend time on this myself, since I don't have > convenient access to large machines, but me thinks this is a question > that's long overdue to have a proper answer. We (at SGI) don't have definitive measurements on this, but it's On The List of things to do. I believe that for a NUMA system, one big problem with highly-contended spinlocks is the relative unfairness of the more remote nodes as the waiters race to see the spinlock freed and to be the first to reacquire it. In extreme cases this unfairness becomes a near-starvation. A backoff algorithm would likely produce more fairness in these high-contention cases, although at the expense of potentially lengthening the wait-times for the shortest waiters. John Hawkes - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Thu Mar 25 15:11:02 2004
This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:24 EST