[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <512EC7F0.60103@redhat.com>
Date: Wed, 27 Feb 2013 21:58:56 -0500
From: Rik van Riel <riel@...hat.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
CC: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Steven Rostedt <rostedt@...dmis.org>,
"Vinod, Chegu" <chegu_vinod@...com>,
"Low, Jason" <jason.low2@...com>,
linux-tip-commits@...r.kernel.org,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
"H. Peter Anvin" <hpa@...or.com>,
Andrew Morton <akpm@...ux-foundation.org>, aquini@...hat.com,
Michel Lespinasse <walken@...gle.com>,
Ingo Molnar <mingo@...nel.org>
Subject: Re: [tip:core/locking] x86/smp: Move waiting on contended ticket
lock out of line
On 02/27/2013 05:13 PM, Linus Torvalds wrote:
>
> On Feb 27, 2013 1:56 PM, "Rik van Riel" <riel@...hat.com
> <mailto:riel@...hat.com>> wrote:
>>
>> No argument there, but that does in no way negate the need for some
>> performance robustness.
>
> The very numbers you posted showed that the backoff was *not* more
> robust. Quite the reverse, there was arguably more variability.
On the other hand, both MCS and the fast queue locks
implemented by Michel showed low variability and high
performance.
http://thread.gmane.org/gmane.linux.kernel/1427417
> So I really don't like how you make these sweeping statements
> *again*. Numbers talk, bullshit walks.
If you read all the text in my last mail, you will see the
link to Michel's performance results. The numbers speak for
themselves.
> The fact is, life is complicated. The simple spinlocks tend to work
> really well. People have tried fancy things before, and it turns out
> it's not as simple as they think.
The numbers for both the simple spinlocks and the
spinlock backoff kind of suck. Both of these have
high variability, and both eventually fall down
under heavy load.
The numbers for Michel's MCS and fast queue lock
implementations appear to be both fast and stable.
I agree that we need numbers.
I do not agree that other locks should be dismissed
out of hand without looking at the numbers.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists