Messages in this thread | | | Subject | Re: Preemptable Ticket Spinlock | From | Peter Zijlstra <> | Date | Mon, 22 Apr 2013 23:01:58 +0200 |
| |
On Mon, 2013-04-22 at 16:49 -0400, Rik van Riel wrote: > Given the fairly high cost of rescheduling a VCPU (which is likely > to include an IPI), versus the short hold time of most spinlocks, > I have the strong suspicion that your approach would win.
https://lkml.org/lkml/2012/5/2/101
If you schedule too often your SPIN_THRESHOLD is far too low.
Anyway.. performance can't be that bad, otherwise Jeremey would have spend as much time on it as he did.
| |