From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752559Ab3B1CyC (ORCPT ); Wed, 27 Feb 2013 21:54:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2372 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751571Ab3B1Cx7 (ORCPT ); Wed, 27 Feb 2013 21:53:59 -0500 Message-ID: <512EC7F0.60103@redhat.com> Date: Wed, 27 Feb 2013 21:58:56 -0500 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Linus Torvalds CC: Linux Kernel Mailing List , Thomas Gleixner , Steven Rostedt , "Vinod, Chegu" , "Low, Jason" , linux-tip-commits@vger.kernel.org, Peter Zijlstra , "H. Peter Anvin" , Andrew Morton , aquini@redhat.com, Michel Lespinasse , Ingo Molnar Subject: Re: [tip:core/locking] x86/smp: Move waiting on contended ticket lock out of line References: <20130206150403.006e5294@cuia.bos.redhat.com> <511BE4A3.8050607@redhat.com> <511C1204.9040608@redhat.com> <511C24A6.8020409@redhat.com> <512E376D.70105@redhat.com> <512E6443.9050603@redhat.com> <512E80E3.7060800@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/27/2013 05:13 PM, Linus Torvalds wrote: > > On Feb 27, 2013 1:56 PM, "Rik van Riel" > 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.