Messages in this thread |  | | | Date | Fri, 8 Jan 2010 13:36:47 -0800 (PST) | | From | Linus Torvalds <> | | Subject | Re: [RFC][PATCH 6/8] mm: handle_speculative_fault() |
| |
On Fri, 8 Jan 2010, Christoph Lameter wrote: > > I'd say that the ticket lock sucks for short critical sections vs. a > simple spinlock since it forces the cacheline into shared mode.
Btw, I do agree that it's likely made worse by the fairness of the ticket locks and the resulting extra traffic of people waiting for their turn. Often for absolutely no good reason, since in this case the rwlock itself will then be granted for reading in most cases - and there are no ordering issues on readers.
We worried about the effects of fair spinlocks when introducing the ticket locks, but nobody ever actually had a load that seemed to indicate it made much of a difference, and we did have a few cases where starvation was a very noticeable problem.
Linus
|  |